diff options
-rw-r--r-- | ACE-configuration.txt | 148 | ||||
-rw-r--r-- | ACE.ifnames | 1157 | ||||
-rw-r--r-- | acconfig.h | 1370 | ||||
-rw-r--r-- | ace-config.in | 207 | ||||
-rw-r--r-- | ace-diff-config.in | 192 | ||||
-rw-r--r-- | ace/config.h.in | 1337 | ||||
-rw-r--r-- | acinclude.m4 | 856 | ||||
-rw-r--r-- | aclocal.m4 | 1544 | ||||
-rw-r--r-- | apps/gperf/version.texi | 2 | ||||
-rwxr-xr-x | config.guess | 973 | ||||
-rwxr-xr-x | config.sub | 956 | ||||
-rwxr-xr-x | configure | 29276 | ||||
-rw-r--r-- | configure.in | 6121 | ||||
-rwxr-xr-x | install-sh | 251 | ||||
-rwxr-xr-x | libtool | 3694 | ||||
-rwxr-xr-x | missing | 190 | ||||
-rwxr-xr-x | mkinstalldirs | 0 |
17 files changed, 48273 insertions, 1 deletions
diff --git a/ACE-configuration.txt b/ACE-configuration.txt new file mode 100644 index 00000000000..2ed4d444959 --- /dev/null +++ b/ACE-configuration.txt @@ -0,0 +1,148 @@ +---------------------------------------------------------------- +Configuring ACE Using the `configure' Script +---------------------------------------------------------------- + +To help speed development, the work being done by the ACE Configuration Project +is being slowly introduced into the official ACE distribution. Some of the +functionality in the work created by the ACE Configuration Project has been +removed so that ACE may be built in the usual fashion. Once the ACE +Configuration Project work stabilizes on more platforms that removed +functionality may be added to ACE. + +Currently the configure script contains most of the tests that are necessary to +properly configure ACE on most platforms. However, there are still some +autoconf tests that are missing. As such, you may encounter and most likely +will have compilation problems. Please report any problems to the contacts +listed at the end of this document. + +The `configure' script that is currently being used has been modified from the +ACE Configuration Project's `configure' script to prevent makefiles from +being automatically generated since there are still some issues that must be +addressed before automatically generated makefiles are incorporated into the +official ACE distribution. + +A listing of available configure script options can be shown by entering + + ./configure --help + +at the command line. The output should look something like the following: + +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print `checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [/usr/local] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +--enable and --with options recognized: + --enable-static[=PKGS] build static libraries [default=no] + --enable-shared[=PKGS] build shared libraries [default=yes] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --disable-libtool-lock force libtool not to do file locking + --enable-debug enable debugging [default=yes] + --enable-exceptions enable C++ exception handling [default=yes] + --enable-fast enable -fast flag, e.g. Sun C++ [default=no] + --enable-inline enable code inlining [default=yes] + --enable-log-msg-prop enable threads inheriting + ACE_Log_Msg properties from parent + thread [default=yes] + --enable-logging enable ACE logging macros [default=yes] + --enable-malloc-stats enable malloc statistics + collection [default=no] + --enable-optimize enable additional optimizations [default=yes] + --enable-probe enable ACE_Timeprobes [default=no] + --enable-profile enable profiling [default=no] + --enable-purify Purify all executables [default=no] + --enable-quantify Quantify all executables [default=no] + --enable-reentrant enable reentrant functions [default=yes] + --enable-repo use GNU template repository + GNU C++ with repo patches and + EGCS only [default=no] + --enable-rtti enable run-time type + identification + *Currently only for Sun C++ [default=no] + --enable-static-obj-mgr enable static Object_Manager [default=yes] + --enable-threads enable thread support [default=yes] + --enable-verb-not-sup enable verbose ENOTSUP reports [default=no] + --enable-trace enable ACE tracing [default=no] + --enable-xt-reactor build support for the XtReactor [default=no] + --with-x use the X Window System + --with-gperf compile the gperf program [default=yes] + --with-orbix[=DIR] compile ACE with Orbix [default=no] + --with-tli-device[=DEV] device for TCP on TLI [default=/dev/tcp] + +To enable debugging and disable code inlining, for example, just enter the +following on the command line: + + ./configure --enable-debug --disable-inline + +This will generate a configuration header file `ace/config.h' to be used when +compiling ACE that will enable ACE debugging macros and disable code inlining +during compilation of ACE. + +Once the `ace/config.h' header has been created you will have to select a +platform macros file. Please read the ACE installation documents for more +information about this. + +---------------------------------------------------------------- +Caveats +---------------------------------------------------------------- +Much of the power of the `configure' script will not be useful until the +automatically generated makefiles are enabled in ACE. Configuration options +such as "--prefix" will not be useful for this reason. + +The `configure' script will check for libraries that contain certain functions. +If it finds a library that isn't listed in your platform_macros.GNU file you +will have to add that library to the list of libraries to link against. + +---------------------------------------------------------------- +Contacts +---------------------------------------------------------------- +If you do have problems please e-mail the ACE Configuration Project maintainer +at: + + Ossama Othman <othman@cs.wustl.edu> + +or send mail to the ACE mailing list. + +For more information take at a look at the ACE Configuration Project web page +at: + + http://www.cs.wustl.edu/~othman/aceconf + diff --git a/ACE.ifnames b/ACE.ifnames new file mode 100644 index 00000000000..36ee955ee00 --- /dev/null +++ b/ACE.ifnames @@ -0,0 +1,1157 @@ +ACE_ACCEPTOR_C +ACE_ACCEPTOR_H +ACE_ACE_H +ACE_ACTIVATION_QUEUE_H +ACE_ACTIVE_MAP_MANAGER_H +ACE_ACTIVE_MAP_MANAGER_T_C +ACE_ACTIVE_MAP_MANAGER_T_H +ACE_ADDR_H +ACE_APPLICATION_PREALLOCATED_ARRAY_DECLARATIONS +ACE_APPLICATION_PREALLOCATED_ARRAY_DEFINITIONS +ACE_APPLICATION_PREALLOCATED_ARRAY_DELETIONS +ACE_APPLICATION_PREALLOCATED_OBJECT_DECLARATIONS +ACE_APPLICATION_PREALLOCATED_OBJECT_DEFINITIONS +ACE_APPLICATION_PREALLOCATED_OBJECT_DELETIONS +ACE_ARGUMENT_VECTOR_H +ACE_ARG_SHIFTER_H +ACE_ARRAY_H +ACE_ASYNCH_ACCEPTOR_C +ACE_ASYNCH_ACCEPTOR_H +ACE_ASYNCH_IO_H +ACE_AUTO_PTR_C +ACE_AUTO_PTR_H +ACE_BASIC_TYPES_H +ACE_BIG_ENDIAN +ACE_BUILD_DLL +ACE_BUILD_SVC_DLL +ACE_CACHE_HASH_T_CPP +ACE_CACHE_HASH_T_H +ACE_CACHE_HEAP_T_CPP +ACE_CACHE_HEAP_T_H +ACE_CACHE_MANAGER_H +ACE_CACHE_MANAGER_T_CPP +ACE_CACHE_MANAGER_T_H +ACE_CACHE_OBJECT_H +ACE_CAST_CONST +ACE_CC_BETA_VERSION +ACE_CC_MAJOR_VERSION +ACE_CC_MINOR_VERSION +ACE_CC_NAME +ACE_CDR_H +ACE_COMPILE_TIMEPROBES +ACE_CONFIG_CRAY_H +ACE_CONFIG_FSU_PTHREAD_H +ACE_CONFIG_H +ACE_CONFIG_IRIX6X_COMMON_H +ACE_CONFIG_IRIX6X_H +ACE_CONFIG_IRIX6X_NTHR_H +ACE_CONFIG_MIT_PTHREAD_H +ACE_CONFIG_ORBIX_H +ACE_CONFIG_SCO_5_0_0_H +ACE_CONFIG_WINCE_H +ACE_CONNECTOR_C +ACE_CONNECTOR_H +ACE_CONTAINERS_H +ACE_CONTAINERS_T_C +ACE_CONTAINERS_T_H +ACE_CORBA_HANDLER_H +ACE_CORBA_HAS_EXCEPTIONS +ACE_CORBA_REF_C +ACE_CORBA_REF_H +ACE_CTIME_R_RETURNS_INT +ACE_CYGWIN32_COMMON_H +ACE_DATE_TIME_H +ACE_DEFAULT_ARGV_BUFSIZ +ACE_DEFAULT_BACKING_STORE +ACE_DEFAULT_BASE_ADDR +ACE_DEFAULT_BROADCAST_PORT +ACE_DEFAULT_CLOSE_ALL_HANDLES +ACE_DEFAULT_DIR_PERMS +ACE_DEFAULT_FILE_PERMS +ACE_DEFAULT_FREE_LIST_HWM +ACE_DEFAULT_FREE_LIST_INC +ACE_DEFAULT_FREE_LIST_LWM +ACE_DEFAULT_FREE_LIST_PREALLOC +ACE_DEFAULT_GLOBALNAME +ACE_DEFAULT_GLOBALNAME_A +ACE_DEFAULT_GLOBALNAME_W +ACE_DEFAULT_HTTP_PORT +ACE_DEFAULT_HTTP_SERVER_PORT +ACE_DEFAULT_LOCALNAME +ACE_DEFAULT_LOCALNAME_A +ACE_DEFAULT_LOCALNAME_W +ACE_DEFAULT_LOCAL_PORT +ACE_DEFAULT_LOCAL_PORT_STR +ACE_DEFAULT_LOGFILE +ACE_DEFAULT_LOGGER_KEY +ACE_DEFAULT_LOGGING_SERVER_PORT +ACE_DEFAULT_LOGGING_SERVER_PORT_STR +ACE_DEFAULT_MAP_SIZE +ACE_DEFAULT_MAX_SEGMENTS +ACE_DEFAULT_MAX_SOCKET_BUFSIZ +ACE_DEFAULT_MULTICAST_ADDR +ACE_DEFAULT_MULTICAST_PORT +ACE_DEFAULT_MUTEX +ACE_DEFAULT_MUTEX_A +ACE_DEFAULT_MUTEX_W +ACE_DEFAULT_NAMESPACE_DIR +ACE_DEFAULT_NAMESPACE_DIR_A +ACE_DEFAULT_NAMESPACE_DIR_W +ACE_DEFAULT_NAME_SERVER_PORT +ACE_DEFAULT_NAME_SERVER_PORT_STR +ACE_DEFAULT_RENDEZVOUS +ACE_DEFAULT_SEGMENT_SIZE +ACE_DEFAULT_SELECT_REACTOR_SIZE +ACE_DEFAULT_SEM_KEY +ACE_DEFAULT_SERVER_HOST +ACE_DEFAULT_SERVER_PORT +ACE_DEFAULT_SERVER_PORT_STR +ACE_DEFAULT_SERVICE_PORT +ACE_DEFAULT_SHM_KEY +ACE_DEFAULT_SVC_CONF +ACE_DEFAULT_SYNCH_TYPE +ACE_DEFAULT_TEMP_FILE +ACE_DEFAULT_THREADS +ACE_DEFAULT_THREAD_KEYS +ACE_DEFAULT_THREAD_MANAGER_HWM +ACE_DEFAULT_THREAD_MANAGER_INC +ACE_DEFAULT_THREAD_MANAGER_LOCK +ACE_DEFAULT_THREAD_MANAGER_LWM +ACE_DEFAULT_THREAD_MANAGER_PREALLOC +ACE_DEFAULT_THREAD_PRIORITY +ACE_DEFAULT_THR_LOGGING_SERVER_PORT +ACE_DEFAULT_THR_LOGGING_SERVER_PORT_STR +ACE_DEFAULT_THR_PORT +ACE_DEFAULT_TIMEOUT +ACE_DEFAULT_TIMERS +ACE_DEFAULT_TIMER_HASH_TABLE_SIZE +ACE_DEFAULT_TIMER_WHEEL_RESOLUTION +ACE_DEFAULT_TIMER_WHEEL_SIZE +ACE_DEFAULT_TIME_SERVER_PORT +ACE_DEFAULT_TIME_SERVER_PORT_STR +ACE_DEFAULT_TIME_SERVER_STR +ACE_DEFAULT_TOKEN_SERVER_PORT +ACE_DEFAULT_TOKEN_SERVER_PORT_STR +ACE_DEFINES_DEFAULT_WIN32_SECURITY_ATTRIBUTES +ACE_DEV_ADDR_H +ACE_DEV_CONNECTOR_H +ACE_DEV_H +ACE_DEV_IO_H +ACE_DIFFTIME +ACE_DIRECTORY_SEPARATOR_CHAR +ACE_DIRECTORY_SEPARATOR_STR +ACE_DIRENT_H +ACE_DISABLE_DEBUG_DLL_CHECK +ACE_DISABLE_SWAP_ON_READ +ACE_DLL_H +ACE_DLL_PREFIX +ACE_DLL_SUFFIX +ACE_DOESNT_INSTANTIATE_NONSTATIC_OBJECT_MANAGER +ACE_DUMP_H +ACE_DUMP_T_C +ACE_DUMP_T_H +ACE_DYNAMIC_H +ACE_DYNAMIC_SERVICE_C +ACE_DYNAMIC_SERVICE_H +ACE_ENABLE_SWAP_ON_WRITE +ACE_ENABLE_TIMEPROBES +ACE_ENV_VALUE_T_C +ACE_ENV_VALUE_T_H +ACE_EVENT_HANDLER_H +ACE_EVENT_HANDLER_T_H +ACE_FIFO_H +ACE_FIFO_RECV_H +ACE_FIFO_RECV_MSG_H +ACE_FIFO_SEND_H +ACE_FIFO_SEND_MSG_H +ACE_FILECACHE_H +ACE_FILE_ADDR_H +ACE_FILE_CONNECTOR_H +ACE_FILE_H +ACE_FILE_IO_H +ACE_FREE_LIST_C +ACE_FREE_LIST_H +ACE_FUNCTOR_C +ACE_FUNCTOR_H +ACE_FUNCTOR_T_C +ACE_FUNCTOR_T_H +ACE_FUTURE_CPP +ACE_FUTURE_H +ACE_GET_OPT_H +ACE_GNUG_COMMON_H +ACE_HANDLE_SET_H +ACE_HASH_BUCKET_T_CPP +ACE_HASH_BUCKET_T_H +ACE_HASH_MAP_MANAGER_H +ACE_HASH_MAP_MANAGER_T_CPP +ACE_HASH_MAP_MANAGER_T_H +ACE_HASH_PURGABLE_MAP_MANAGER_T_CPP +ACE_HASH_PURGABLE_MAP_MANAGER_T_H +ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R +ACE_HAS_4_4BSD_SENDMSG_RECVMSG +ACE_HAS_AIO_CALLS +ACE_HAS_AIX_BROKEN_SOCKET_HEADER +ACE_HAS_AIX_HI_RES_TIMER +ACE_HAS_ALLOCA +ACE_HAS_ALLOCA_H +ACE_HAS_ALLOC_HOOKS +ACE_HAS_ALPHA_TIMER +ACE_HAS_ANSI_CASTS +ACE_HAS_AUTOMATIC_INIT_FINI +ACE_HAS_BIG_FD_SET +ACE_HAS_BROKEN_BITSHIFT +ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS +ACE_HAS_BROKEN_CONVERSIONS +ACE_HAS_BROKEN_CTIME +ACE_HAS_BROKEN_ENUMS +ACE_HAS_BROKEN_HPUX_TEMPLATES +ACE_HAS_BROKEN_IF_HEADER +ACE_HAS_BROKEN_MMAP_H +ACE_HAS_BROKEN_MSG_H +ACE_HAS_BROKEN_NAMESPACES +ACE_HAS_BROKEN_NESTED_TEMPLATES +ACE_HAS_BROKEN_NETBSD_MSYNC +ACE_HAS_BROKEN_NON_BLOCKING_CONNECTS +ACE_HAS_BROKEN_NOOP_DTORS +ACE_HAS_BROKEN_POSIX_TIME +ACE_HAS_BROKEN_RANDR +ACE_HAS_BROKEN_READV +ACE_HAS_BROKEN_R_ROUTINES +ACE_HAS_BROKEN_SAP_ANY +ACE_HAS_BROKEN_SENDMSG +ACE_HAS_BROKEN_SETRLIMIT +ACE_HAS_BROKEN_TIMESPEC_MEMBERS +ACE_HAS_BROKEN_T_ERRNO +ACE_HAS_BROKEN_WRITEV +ACE_HAS_BROKEN_XTI_MACROS +ACE_HAS_BSTRING +ACE_HAS_BYTESEX_H +ACE_HAS_CHARPTR_DL +ACE_HAS_CHARPTR_SOCKOPT +ACE_HAS_CHARPTR_SPRINTF +ACE_HAS_CLOCK_GETTIME +ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES +ACE_HAS_CPLUSPLUS_HEADERS +ACE_HAS_CYGWIN32_SOCKET_H +ACE_HAS_DEFERRED_TIMER_COMMANDS +ACE_HAS_DIRENT +ACE_HAS_DLFCN_H_BROKEN_EXTERN_C +ACE_HAS_DLL +ACE_HAS_EXCEPTIONS +ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION +ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_FILE +ACE_HAS_FSU_PTHREADS +ACE_HAS_GETPAGESIZE +ACE_HAS_GETRUSAGE +ACE_HAS_GETRUSAGE_PROTO +ACE_HAS_GNUC_BROKEN_TEMPLATE_INLINE_FUNCTIONS +ACE_HAS_GNU_CSTRING_H +ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT +ACE_HAS_HI_RES_TIMER +ACE_HAS_H_ERRNO +ACE_HAS_IDTYPE_T +ACE_HAS_INLINED_OSCALLS +ACE_HAS_INTERLOCKED_EXCHANGEADD +ACE_HAS_IP_MULTICAST +ACE_HAS_IRIX62_THREADS +ACE_HAS_IRIX_53_SIGNALS +ACE_HAS_LIMITED_RUSAGE_T +ACE_HAS_LONG_MAP_FAILED +ACE_HAS_LYNXOS_SIGNALS +ACE_HAS_MALLOC_STATS +ACE_HAS_MFC +ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION +ACE_HAS_MOSTLY_UNICODE_APIS +ACE_HAS_MSG +ACE_HAS_MT_ORBIX +ACE_HAS_MT_SAFE_MKTIME +ACE_HAS_NONCONST_GETBY +ACE_HAS_NONCONST_MSGSND +ACE_HAS_NONCONST_READLINK +ACE_HAS_NONCONST_SELECT_TIMEVAL +ACE_HAS_NONSCALAR_THREAD_KEY_T +ACE_HAS_NONSTATIC_OBJECT_MANAGER +ACE_HAS_OLD_MALLOC +ACE_HAS_ONE_DEFINITION_RULE +ACE_HAS_ONLY_SCHED_OTHER +ACE_HAS_OPTIMIZED_MESSAGE_QUEUE +ACE_HAS_ORBIX +ACE_HAS_OSF1_GETTIMEOFDAY +ACE_HAS_OSF_TIMOD_H +ACE_HAS_PENTIUM +ACE_HAS_POLL +ACE_HAS_POSIX_NONBLOCK +ACE_HAS_POSIX_SEM +ACE_HAS_POSIX_TIME +ACE_HAS_POWERPC_TIMER +ACE_HAS_PRIOCNTL +ACE_HAS_PROC_FS +ACE_HAS_PRUSAGE_T +ACE_HAS_PTHREADS +ACE_HAS_PTHREADS_DRAFT4 +ACE_HAS_PTHREADS_DRAFT6 +ACE_HAS_PTHREADS_DRAFT7 +ACE_HAS_PTHREADS_STD +ACE_HAS_PTHREAD_CONDATTR_SETKIND_NP +ACE_HAS_PTHREAD_MUTEXATTR_SETKIND_NP +ACE_HAS_PTHREAD_PROCESS_ENUM +ACE_HAS_PTHREAD_SIGMASK +ACE_HAS_PURIFY +ACE_HAS_P_READ_WRITE +ACE_HAS_READV_TIMEDWAIT +ACE_HAS_READ_TIMEDWAIT +ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS +ACE_HAS_RECVFROM_TIMEDWAIT +ACE_HAS_RECVMSG_TIMEDWAIT +ACE_HAS_RECV_TIMEDWAIT +ACE_HAS_REENTRANT_FUNCTIONS +ACE_HAS_REGEX +ACE_HAS_RLIMIT_RESOURCE_ENUM +ACE_HAS_RUSAGE_WHO_ENUM +ACE_HAS_SELECT_H +ACE_HAS_SEMUN +ACE_HAS_SENDMSG_TIMEDWAIT +ACE_HAS_SENDTO_TIMEDWAIT +ACE_HAS_SEND_TIMEDWAIT +ACE_HAS_SET_T_ERRNO +ACE_HAS_SGIDLADD +ACE_HAS_SHM_OPEN +ACE_HAS_SIGINFO_T +ACE_HAS_SIGISMEMBER_BUG +ACE_HAS_SIGNAL_OBJECT_AND_WAIT +ACE_HAS_SIGNAL_SAFE_OS_CALLS +ACE_HAS_SIGTHREADMASK +ACE_HAS_SIGWAIT +ACE_HAS_SIG_ATOMIC_T +ACE_HAS_SIG_C_FUNC +ACE_HAS_SIG_MACROS +ACE_HAS_SIN_LEN +ACE_HAS_SIZET_SOCKET_LEN +ACE_HAS_SOCKADDR_MSG_NAME +ACE_HAS_SOCKIO_H +ACE_HAS_SOCKLEN_T +ACE_HAS_SPARCWORKS_401_SIGNALS +ACE_HAS_SSIZE_T +ACE_HAS_STANDARD_CPP_LIBRARY +ACE_HAS_STATIC_PREALLOCATION +ACE_HAS_STDARG_THR_DEST +ACE_HAS_STDCPP_STL_INCLUDES +ACE_HAS_STHREADS +ACE_HAS_STL_MAP_CONFLICT +ACE_HAS_STL_QUEUE_CONFLICT +ACE_HAS_STRBUF_T +ACE_HAS_STRDUP_EMULATION +ACE_HAS_STREAMS +ACE_HAS_STREAM_PIPES +ACE_HAS_STRERROR +ACE_HAS_STRICT +ACE_HAS_STRINGS +ACE_HAS_STRING_CLASS +ACE_HAS_STRUCT_NETDB_DATA +ACE_HAS_SUNOS4_GETTIMEOFDAY +ACE_HAS_SUNOS4_SIGNAL_T +ACE_HAS_SVC_DLL +ACE_HAS_SVR4_DYNAMIC_LINKING +ACE_HAS_SVR4_GETTIMEOFDAY +ACE_HAS_SVR4_SIGNAL_T +ACE_HAS_SVR4_TLI +ACE_HAS_SYSCALL_GETRUSAGE +ACE_HAS_SYSCALL_H +ACE_HAS_SYSENT_H +ACE_HAS_SYSINFO +ACE_HAS_SYSV_IPC +ACE_HAS_SYS_ERRLIST +ACE_HAS_SYS_FILIO_H +ACE_HAS_SYS_SIGLIST +ACE_HAS_SYS_XTI_H +ACE_HAS_TANDEM_SIGNALS +ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA +ACE_HAS_TEMPLATE_SPECIALIZATION +ACE_HAS_TEMPLATE_TYPEDEFS +ACE_HAS_TERM_IOCTLS +ACE_HAS_TEXT_MACRO_CONFLICT +ACE_HAS_THREADS +ACE_HAS_THREAD_SELF +ACE_HAS_THREAD_SPECIFIC_STORAGE +ACE_HAS_THR_C_DEST +ACE_HAS_THR_C_FUNC +ACE_HAS_THR_KEYDELETE +ACE_HAS_THR_MINSTACK +ACE_HAS_THR_YIELD +ACE_HAS_TIMEZONE_GETTIMEOFDAY +ACE_HAS_TIMOD_H +ACE_HAS_TIUSER_H +ACE_HAS_TIUSER_H_BROKEN_EXTERN_C +ACE_HAS_TLI +ACE_HAS_TLI_PROTOTYPES +ACE_HAS_TSS_EMULATION +ACE_HAS_TYPENAME_KEYWORD +ACE_HAS_UALARM +ACE_HAS_UCONTEXT_T +ACE_HAS_UNICODE +ACE_HAS_UNION_WAIT +ACE_HAS_UNIXWARE_SVR4_SIGNAL_T +ACE_HAS_USING_KEYWORD +ACE_HAS_UTIME +ACE_HAS_VERBOSE_NOTSUP +ACE_HAS_VOIDPTR_MMAP +ACE_HAS_VOIDPTR_SOCKOPT +ACE_HAS_WCHAR_TYPEDEFS_CHAR +ACE_HAS_WCHAR_TYPEDEFS_USHORT +ACE_HAS_WIN32 +ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS +ACE_HAS_WIN32_TRYLOCK +ACE_HAS_WINCE +ACE_HAS_WINNT4 +ACE_HAS_WINSOCK2 +ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR +ACE_HAS_WRITEV_TIMEDWAIT +ACE_HAS_WRITE_TIMEDWAIT +ACE_HAS_WTHREADS +ACE_HAS_X86_STAT_MACROS +ACE_HAS_XLI +ACE_HAS_XPG4_MULTIBYTE_CHAR +ACE_HAS_XT +ACE_HAS_XTI +ACE_HIGH_RES_TIMER_H +ACE_HOSTENT_DATA_SIZE +ACE_INC_USER_CONFIG_H +ACE_INET_ADDR_H +ACE_INFINITE +ACE_INLINE +ACE_IOSFWD_H +ACE_IOSTREAM_C +ACE_IOSTREAM_H +ACE_IOSTREAM_T_C +ACE_IOSTREAM_T_H +ACE_IO_CNTL_MSG_H +ACE_IO_SAP_H +ACE_IPC_SAP_H +ACE_KCC_COMMON_H +ACE_LACKS_ACCESS +ACE_LACKS_ACE_IOSTREAM +ACE_LACKS_AUTO_MMAP_REPLACEMENT +ACE_LACKS_BSEARCH +ACE_LACKS_CMSG_DATA_MACRO +ACE_LACKS_CMSG_DATA_MEMBER +ACE_LACKS_CONDATTR_PSHARED +ACE_LACKS_COND_T +ACE_LACKS_COND_TIMEDWAIT_RESET +ACE_LACKS_CONST_STRBUF_PTR +ACE_LACKS_CONST_TIMESPEC_PTR +ACE_LACKS_DIFFTIME +ACE_LACKS_EXEC +ACE_LACKS_FCNTL +ACE_LACKS_FILELOCKS +ACE_LACKS_FLOATING_POINT +ACE_LACKS_FORK +ACE_LACKS_FSYNC +ACE_LACKS_GETOPT_PROTO +ACE_LACKS_GETPGID +ACE_LACKS_GETSERVBYNAME +ACE_LACKS_INLINE_FUNCTIONS +ACE_LACKS_IOSTREAM_FX +ACE_LACKS_IOSTREAM_TOTALLY +ACE_LACKS_IP_ADD_MEMBERSHIP +ACE_LACKS_ISATTY +ACE_LACKS_KEY_T +ACE_LACKS_LINEBUFFERED_STREAMBUF +ACE_LACKS_LONGLONG_T +ACE_LACKS_LSTAT +ACE_LACKS_MADVISE +ACE_LACKS_MALLOC_H +ACE_LACKS_MEMORY_H +ACE_LACKS_METHOD_DEFINITIONS_IN_CLASS_TEMPLATE +ACE_LACKS_MKFIFO +ACE_LACKS_MKTEMP +ACE_LACKS_MMAP +ACE_LACKS_MODE_MASKS +ACE_LACKS_MPROTECT +ACE_LACKS_MSGBUF_T +ACE_LACKS_MSG_ACCRIGHTS +ACE_LACKS_MSYNC +ACE_LACKS_MUTEXATTR_PSHARED +ACE_LACKS_NAMED_POSIX_SEM +ACE_LACKS_NETDB_REENTRANT_FUNCTIONS +ACE_LACKS_PARAM_H +ACE_LACKS_POSIX_PROTOTYPES +ACE_LACKS_PRAGMA_ONCE +ACE_LACKS_PRI_T +ACE_LACKS_PTHREAD_CANCEL +ACE_LACKS_PTHREAD_CLEANUP +ACE_LACKS_PTHREAD_KILL +ACE_LACKS_PTHREAD_THR_SIGSETMASK +ACE_LACKS_PTHREAD_YIELD +ACE_LACKS_PWD_FUNCTIONS +ACE_LACKS_PWD_REENTRANT_FUNCTIONS +ACE_LACKS_QSORT +ACE_LACKS_READDIR_R +ACE_LACKS_READLINK +ACE_LACKS_READV +ACE_LACKS_RECVMSG +ACE_LACKS_REWINDDIR +ACE_LACKS_RLIMIT +ACE_LACKS_RLIMIT_PROTOTYPE +ACE_LACKS_RTTI +ACE_LACKS_RWLOCK_T +ACE_LACKS_SBRK +ACE_LACKS_SCHED_H +ACE_LACKS_SEEKDIR +ACE_LACKS_SEMBUF_T +ACE_LACKS_SENDMSG +ACE_LACKS_SETDETACH +ACE_LACKS_SETSCHED +ACE_LACKS_SIGACTION +ACE_LACKS_SIGINFO_H +ACE_LACKS_SIGNED_CHAR +ACE_LACKS_SIGSET +ACE_LACKS_SIGSET_DEFINITIONS +ACE_LACKS_SI_ADDR +ACE_LACKS_SOCKETPAIR +ACE_LACKS_SOME_POSIX_PROTOTYPES +ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES +ACE_LACKS_STRCASECMP +ACE_LACKS_STRRCHR +ACE_LACKS_STRRECVFD +ACE_LACKS_SYSCALL +ACE_LACKS_SYSTIME_H +ACE_LACKS_SYSV_MSG_H +ACE_LACKS_SYSV_MSQ_PROTOS +ACE_LACKS_SYSV_SHMEM +ACE_LACKS_SYS_NERR +ACE_LACKS_SYS_TYPES_H +ACE_LACKS_TCP_H +ACE_LACKS_TELLDIR +ACE_LACKS_TEMPNAM +ACE_LACKS_THREAD_PROCESS_SCOPING +ACE_LACKS_THREAD_STACK_ADDR +ACE_LACKS_THREAD_STACK_SIZE +ACE_LACKS_TIMEDWAIT_PROTOTYPES +ACE_LACKS_TIMESPEC_T +ACE_LACKS_TRUNCATE +ACE_LACKS_T_ERRNO +ACE_LACKS_UALARM_PROTOTYPE +ACE_LACKS_UCONTEXT_H +ACE_LACKS_UNBUFFERED_STREAMBUF +ACE_LACKS_UNISTD_H +ACE_LACKS_UNIX_DOMAIN_SOCKETS +ACE_LACKS_UNIX_SIGNALS +ACE_LACKS_UTSNAME_T +ACE_LACKS_U_LONGLONG_T +ACE_LACKS_WCHAR_T +ACE_LACKS_WILDCARD_BIND +ACE_LACKS_WRITEV +ACE_LD_SEARCH_PATH +ACE_LD_SEARCH_PATH_SEPARATOR_STR +ACE_LINUX_COMMON_H +ACE_LITTLE_ENDIAN +ACE_LOCAL_MUTEX_H +ACE_LOCAL_NAME_SPACE_C +ACE_LOCAL_NAME_SPACE_H +ACE_LOCAL_NAME_SPACE_T_C +ACE_LOCAL_NAME_SPACE_T_H +ACE_LOCAL_SOCK_ACCEPTOR_H +ACE_LOCAL_SOCK_CODGRAM_H +ACE_LOCAL_SOCK_CONNECTOR_H +ACE_LOCAL_SOCK_DGRAM_H +ACE_LOCAL_SOCK_H +ACE_LOCAL_SOCK_STREAM_H +ACE_LOCK_SOCK_ACCEPTOR_CPP +ACE_LOCK_SOCK_ACCEPTOR_H +ACE_LOG_MSG_H +ACE_LOG_PRIORITY_H +ACE_LOG_RECORD_H +ACE_MAIN +ACE_MALLOC_ALIGN +ACE_MALLOC_BASE_H +ACE_MALLOC_C +ACE_MALLOC_H +ACE_MALLOC_T_C +ACE_MALLOC_T_H +ACE_MANAGED_OBJECT_CPP +ACE_MANAGED_OBJECT_H +ACE_MAP_FIXED +ACE_MAP_H +ACE_MAP_MANAGER_C +ACE_MAP_MANAGER_H +ACE_MAP_PRIVATE +ACE_MAP_SHARED +ACE_MAP_T_C +ACE_MAP_T_H +ACE_MAXLOGMSGLEN +ACE_MAX_DEFAULT_PORT +ACE_MAX_DGRAM_SIZE +ACE_MAX_FULLY_QUALIFIED_NAME_LEN +ACE_MAX_MANAGED_OBJECTS +ACE_MEMORY_POOL_H +ACE_MEM_MAP_H +ACE_MESSAGE_BLOCK_H +ACE_MESSAGE_BLOCK_T_C +ACE_MESSAGE_BLOCK_T_H +ACE_MESSAGE_QUEUE_C +ACE_MESSAGE_QUEUE_H +ACE_MESSAGE_QUEUE_T_C +ACE_MESSAGE_QUEUE_T_H +ACE_METHOD_OBJECT_H +ACE_METHOD_REQUEST_H +ACE_MODULE_C +ACE_MODULE_H +ACE_MSG_WFMO_REACTOR_H +ACE_MT_SAFE +ACE_MT_TIMEPROBES +ACE_MULTIPLEXOR_H +ACE_NAME_PROXY_H +ACE_NAME_REQUEST_REPLY_H +ACE_NAME_SERVER_MAP +ACE_NAME_SPACE_H +ACE_NAMING_CONTEXT_H +ACE_NDEBUG +ACE_NEEDS_DEV_IO_CONVERSION +ACE_NEEDS_FTRUNCATE +ACE_NEEDS_FUNC_DEFINITIONS +ACE_NEEDS_HUGE_THREAD_STACKSIZE +ACE_NEEDS_LWP_PRIO_SET +ACE_NEW_THROWS_EXCEPTIONS +ACE_NLOGGING +ACE_NON_BLOCKING_BUG_DELAY +ACE_NO_INLINE +ACE_NO_THREAD_ADAPTER +ACE_NO_TSS_TOKENS +ACE_NSIG +ACE_NTRACE +ACE_NT_SERVICE_H +ACE_NT_SERVICE_START_TIMEOUT +ACE_OBJECT_MANAGER_H +ACE_OBSTACK_H +ACE_ORBIX_HAS_NAMESPACES +ACE_OS_EXTRA_MMAP_FLAGS +ACE_OS_H +ACE_PAIR_H +ACE_PAIR_T_C +ACE_PAIR_T_H +ACE_PARSE_NODE_H +ACE_PIPE_H +ACE_PLATFORM +ACE_PLATFORM_EXE_SUFFIX +ACE_POLL_IS_BROKEN +ACE_PRIORITY_REACTOR_H +ACE_PROACTOR_H +ACE_PROCESS_H +ACE_PROCESS_MANAGER_H +ACE_PROC_PRI_FIFO_DEF +ACE_PROC_PRI_OTHER_DEF +ACE_PROC_PRI_RR_DEF +ACE_PROFILE_TIMER_H +ACE_PROTOENT_DATA_SIZE +ACE_PSOS +ACE_PSOSIM +ACE_PSOS_CANT_USE_SYS_TYPES +ACE_PSOS_LACKS_ARGC_ARGV +ACE_PSOS_LACKS_PHILE +ACE_PSOS_LACKS_PREPC +ACE_PSOS_PROVIDES_ERROR_SYMBOLS_TM +ACE_PSOS_SNARFS_HEADER_INFO +ACE_PSOS_TBD +ACE_PSOS_TM +ACE_RB_TREE_C +ACE_RB_TREE_H +ACE_RCSID +ACE_REACTOR_H +ACE_REACTOR_IMPL_H +ACE_READ_BUFFER_H +ACE_REDEFINES_XTI_FUNCTIONS +ACE_REGISTRY_H +ACE_REGISTRY_NAME_SPACE_H +ACE_REMOTE_MUTEX_H +ACE_REMOTE_NAME_SPACE_H +ACE_SCHED_PARAMS_H +ACE_SEH_DEFAULT_EXCEPTION_HANDLING_ACTION +ACE_SELECT_REACTOR_BASE_H +ACE_SELECT_REACTOR_H +ACE_SELECT_REACTOR_HAS_DEADLOCK_DETECTION +ACE_SELECT_REACTOR_T_C +ACE_SELECT_REACTOR_T_H +ACE_SELECT_USES_INT +ACE_SERVENT_DATA_SIZE +ACE_SERVICE_CONFIG_H +ACE_SERVICE_MANAGER_H +ACE_SERVICE_OBJECT_H +ACE_SERVICE_REPOSITORY_H +ACE_SERVICE_TYPE_H +ACE_SHARED_MALLOC_MM_H +ACE_SHARED_MALLOC_SV_H +ACE_SHARED_MEMORY_H +ACE_SHARED_OBJECT_H +ACE_SIGINFO_IS_SIGINFO_T +ACE_SIGNAL_HANDLER_H +ACE_SINGLETON_C +ACE_SINGLETON_H +ACE_SIZEOF_DOUBLE +ACE_SIZEOF_FLOAT +ACE_SIZEOF_INT +ACE_SIZEOF_LONG +ACE_SIZEOF_LONG_DOUBLE +ACE_SIZEOF_LONG_LONG +ACE_SIZEOF_SHORT +ACE_SIZEOF_VOID_P +ACE_SOCK_ACCEPTOR_H +ACE_SOCK_CODGRAM_H +ACE_SOCK_CONNECTOR_H +ACE_SOCK_DGRAM_BCAST_H +ACE_SOCK_DGRAM_H +ACE_SOCK_DGRAM_MCAST_H +ACE_SOCK_H +ACE_SOCK_IO_H +ACE_SOCK_STREAM_H +ACE_SPIPE_ACCEPTOR_H +ACE_SPIPE_ADDR_H +ACE_SPIPE_CONNECTOR_H +ACE_SPIPE_H +ACE_SPIPE_STREAM_H +ACE_SSTRING_H +ACE_STATS_H +ACE_STRATEGIES_C +ACE_STRATEGIES_H +ACE_STRATEGIES_T_C +ACE_STRATEGIES_T_H +ACE_STREAMS_H +ACE_STREAM_C +ACE_STREAM_H +ACE_STREAM_MODULES +ACE_STREAM_MODULES_C +ACE_SVC_CONF_ECHO +ACE_SVC_CONF_H +ACE_SVC_HANDLER_C +ACE_SVC_HANDLER_H +ACE_SV_MESSAGE_H +ACE_SV_MESSAGE_QUEUE_H +ACE_SV_SEMAPHORE_COMPLEX_H +ACE_SV_SEMAPHORE_SIMPLE_H +ACE_SV_SHARED_MEMORY_H +ACE_SYNCH_C +ACE_SYNCH_H +ACE_SYNCH_OPTIONS_H +ACE_SYNCH_T_C +ACE_SYNCH_T_H +ACE_SYSTEM_TIME_H +ACE_TASK_H +ACE_TASK_T_C +ACE_TASK_T_H +ACE_TEMPLATES_REQUIRE_PRAGMA +ACE_TEMPLATES_REQUIRE_SOURCE +ACE_TEXT +ACE_THREADS_DONT_INHERIT_LOG_MSG +ACE_THREAD_H +ACE_THREAD_MANAGER_H +ACE_THREAD_MAX_PRIORITY +ACE_THREAD_MIN_PRIORITY +ACE_THR_PRI_FIFO_DEF +ACE_THR_PRI_OTHER_DEF +ACE_THR_PRI_RR_DEF +ACE_TIMEPROBE_H +ACE_TIMEPROBE_T_C +ACE_TIMEPROBE_T_H +ACE_TIMER_HASH_C +ACE_TIMER_HASH_H +ACE_TIMER_HASH_T_C +ACE_TIMER_HASH_T_H +ACE_TIMER_HEAP_C +ACE_TIMER_HEAP_H +ACE_TIMER_HEAP_T_C +ACE_TIMER_HEAP_T_H +ACE_TIMER_LIST_C +ACE_TIMER_LIST_H +ACE_TIMER_LIST_T_C +ACE_TIMER_LIST_T_H +ACE_TIMER_QUEUE_ADAPTERS_C +ACE_TIMER_QUEUE_ADAPTERS_H +ACE_TIMER_QUEUE_C +ACE_TIMER_QUEUE_H +ACE_TIMER_QUEUE_T_C +ACE_TIMER_QUEUE_T_H +ACE_TIMER_SKEW +ACE_TIMER_WHEEL_C +ACE_TIMER_WHEEL_H +ACE_TIMER_WHEEL_T_C +ACE_TIMER_WHEEL_T_H +ACE_TIME_REQUEST_REPLY_H +ACE_TIME_VALUE_H +ACE_TLI_ACCEPTOR_H +ACE_TLI_CONNECTOR_H +ACE_TLI_H +ACE_TLI_STREAM_H +ACE_TLI_TCP_DEVICE +ACE_TOKEN_COLLECTION_H +ACE_TOKEN_H +ACE_TOKEN_INVARIANTS_H +ACE_TOKEN_MANAGER_H +ACE_TOKEN_REQUEST_REPLY_H +ACE_TOKEN_USES_SEMAPHORE +ACE_TP_REACTOR_H +ACE_TRACE_H +ACE_TRY_ENV +ACE_TSS_TIMEPROBES +ACE_TTY_IO_H +ACE_TYPED_MESSAGE_QUEUE_H +ACE_TYPED_SV_MESSAGE_C +ACE_TYPED_SV_MESSAGE_H +ACE_TYPED_SV_MESSAGE_QUEUE_C +ACE_UINT64_FORMAT_SPECIFIER +ACE_UINT64_TYPEDEF +ACE_UNIQUE_NAME_LEN +ACE_UNIX_ADDR_H +ACE_UPIPE_ACCEPTOR_H +ACE_UPIPE_ADDR_H +ACE_UPIPE_CONNECTOR_H +ACE_UPIPE_STREAM_H +ACE_USES_ASM_SYMBOL_IN_DLSYM +ACE_USES_OBSOLETE_GUARD_CLASSES +ACE_USES_OLD_IOSTREAMS +ACE_USES_STATIC_MFC +ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB +ACE_USES_WINCE_SEMA_SIMULATION +ACE_USE_MSG_WFMO_REACTOR_FOR_REACTOR_IMPL +ACE_USE_ONE_SHOT_AT_THREAD_EXIT +ACE_USE_POLL +ACE_USE_RCSID +ACE_USE_SHIFT_FOR_EFFICIENCY +ACE_USE_THREAD_MANAGER_ADAPTER +ACE_USE_TP_REACTOR_FOR_REACTOR_IMPL +ACE_WFMO_REACTOR_H +ACE_WIN32 +ACE_WIN32_BORLAND_H +ACE_WIN32_COMMON_H +ACE_WSOCK_VERSION +ACE_WTHREADS +ACE_XTREACTOR_H +ACE_YYDEBUG +ACE_YYDEBUG_DISCARD_STATE +ACE_YYDEBUG_DISCARD_TOKEN +ACE_YYDEBUG_INDENT +ACE_YYDEBUG_INDENT_STRING +ACE_YYDEBUG_LEXER_TEXT +ACE_YYDEBUG_LOOK_AHEAD +ACE_YYDEBUG_REDUCE +ACE_YYDEBUG_REDUCE_STRING +ACE_YYDEBUG_SHIFT_ERROR_LEXEME +ACE_YYDEBUG_SHIFT_LEXEME +ACE_YYMAXDEPTH +ACE_YYSTACKSIZE +ACE_YY_BREAK +ACE_YY_DECL +ACE_YY_FATAL_ERROR +ACE_YY_INPUT +ACE_YY_MALLOC_DECL +ACE_YY_READ_BUF_SIZE +ACE_YY_START_STACK_INCR +ACE_YY_USER_ACTION +ACE_YY_USER_INIT +ACE_YY_USES_REJECT +ACE_YY_USE_CONST +ACE_YY_USE_PROTOS +AF_FILE +AIX +ALL_WARNINGS +ASYS_INLINE +BIG_ENDIAN +BUFSIZ +BYTE_ORDER +CHORUS +CLOCK_REALTIME +CREAD +CRTSCTS +CYGWIN32 +DBL_MAX_EXP +DEBUG +DEBUGGING +DEC_CXX +DIGITAL_UNIX +EBUSY +EDEADLK +EIDRM +ENOSYS +ENOTSUP +ESUCCESS +ETIME +ETIMEDOUT +EVENT_HANDLER_T_C +FASYNC +FD_SETSIZE +FILENAME_MAX +FILE_ATTRIBUTE_NORMAL +FILE_BEGIN +FILE_CURRENT +FILE_END +FILE_FLAG_OVERLAPPED +FILE_FLAG_SEQUENTIAL_SCAN +FILE_SHARE_READ +FIONREAD +FLT_MAX_EXP +F_GETFL +F_OK +F_SETFD +F_SETOWN +FreeBSD_2_1 +GENERIC_READ +GETALL +GETVAL +HPUX +HPUX_10 +HPUX_VERS +IOV_MAX +IPC_CREAT +IPC_EXCL +IPC_NOWAIT +IPC_PRIVATE +IPC_RMID +IPC_STAT +IP_ADD_MEMBERSHIP +IP_DROP_MEMBERSHIP +IRIX6 +I_PUSH +JCEJ +JINLU +LDBL_DIG +LDBL_MAX_EXP +LITTLE_ENDIAN +LPSECURITY_ATTRIBUTES +MAP_FAILED +MAXHOSTNAMELEN +MAXIMUM_WAIT_OBJECTS +MAXNAMELEN +MAXNAMLEN +MAXPATHLEN +MS_SYNC +M_UNIX +NOMINMAX +NONNATIVE_LONGDOUBLE +OPEN_EXISTING +O_NONBLOCK +PIPE_BUF +PRIORITY_MAX +PRI_FIFO_MAX +PRI_FIFO_MIN +PRI_OTHER_MAX +PRI_OTHER_MIN +PRI_RR_MAX +PRI_RR_MIN +PROT_RDWR +PTHREAD_CANCEL_ASYNCHRONOUS +PTHREAD_CANCEL_DEFERRED +PTHREAD_CANCEL_DISABLE +PTHREAD_CANCEL_ENABLE +PTHREAD_CREATE_DETACHED +PTHREAD_CREATE_JOINABLE +PTHREAD_CREATE_UNDETACHED +PTHREAD_MAX_PRIORITY +PTHREAD_MUTEXTYPE_FAST +PTHREAD_PROCESS_PRIVATE +PTHREAD_PROCESS_SHARED +PTHREAD_STACK_MIN +RLIMIT_NOFILE +RLIMIT_OFILE +RLIM_INFINITY +RTLD_LAZY +R_OK +SA_RESTART +SA_SIGACTION +SA_SIGINFO +SCHED_IO +SCHED_OTHRE +SCHED_RR +SCO +SEEK_CUR +SEEK_END +SEEK_SET +SEM_UNDO +SETALL +SETVAL +SH3 +SIGALRM +SIGCHLD +SIGCLD +SIGHUP +SIGINT +SIGIO +SIGPIPE +SIGQUIT +SIGSEGV +SIGURG +SIGUSR1 +SIGUSR2 +SIG_BLOCK +SIG_DFL +SIG_ERR +SIG_IGN +SIG_PF +SIG_SETMASK +SIG_UNBLOCK +SIOCGIFADDR +SIOCGIFBRDADDR +SIOCGIFNUM +SO_REUSEPORT +STRICT +TCGETA +TCGETS +TCSETA +TCSETS +TLS_MINIMUM_AVAILABLE +TM +UINT_MAX +ULLONG_MAX +ULONGLONG_MAX +ULONG_MAX +UNDER_CE +UNICODE +UNIXWARE +UNIXWARE_2_0 +USER_INCLUDE_SYS_TIME_TM +USHRT_MAX +USYNC_PROCESS +USYNC_THREAD +VMETRO_TIME_TEST +VSB +VXWORKS +WCOREDUMP +WEXITSTATUS +WIFCONTINUED +WIFEXITED +WIFSIGNALED +WIFSTOPPED +WIN32 +WIN32_LEAN_AND_MEAN +WNOHANG +WSTOPSIG +WTERMSIG +W_OK +X_OK +_AFXDLL +_AIX +_ALL_SOURCE +_CLOCKID_T +_COMPILER_VERSION +_CRAYMPP +_CRAYT3E +_DEBUG +_GNU_SOURCE +_HPUX_SOURCE +_INC_WINDOWS +_MIPS_SIM +_MIPS_SIM_ABI32 +_MIPS_SIM_ABI64 +_MIPS_SIM_NABI32 +_MSC_VER +_MSWSOCK_ +_MT +_M_IX86 +_M_UNIX +_POSIX4A_DRAFT10_SOURCE +_POSIX_C_SOURCE +_POSIX_PTHREAD_SEMANTICS +_POSIX_RTSIG_MAX +_POSIX_THREADS +_POSIX_THREAD_PROCESS_SHARED +_POSIX_THREAD_SAFE_FUNCTIONS +_REENTRANT +_SC_OPEN_MAX +_SC_PAGESIZE +_SC_THREAD_STACK_MIN +_SC_TIMER_MAX +_SEM_SEMUN_UNDEFINED +_THREAD_SAFE +_UNICODE +_UNICOS +_WIN32_WINNT +_WINDLL +_WINSOCK2API_ +_WINSOCKAPI_ +_WS2TCPIP_H_ +_XOPEN_EXTENDED_SOURCE +__ACE_INLINE__ +__BIG_ENDIAN +__BORLANDC__ +__BYTE_ORDER +__COMPILER_VER__ +__CYGWIN32__ +__Chorus +__DECCXX +__DECCXX_VER +__DGUX +__DIAB +__EXCEPTIONS +__FreeBSD__ +__FreeBSD_version +__GLIBC_MINOR__ +__GLIBC__ +__GNUC_MINOR__ +__GNUC__ +__GNUG__ +__KCC +__LITTLE_ENDIAN +__LP64__ +__LYNXOS_SDK_VERSION +__Lynx__ +__MIPS__ +__MVS__ +__OPTIMIZE__ +__RTTI +__STANDARD_CXX +__STDC__ +__SUNPRO_CC +__TURBOC__ +__USE_XOPEN_EXTENDED +__X86__ +__alpha +__alpha__ +__cplusplus +__hpux +__i386__ +__powerpc__ +__rational__ +__sgi +__unix +__x86__ +__xlC__ +_sys_siglist +ace_yyterminate +ace_yytext_ptr +and +broken +c_plusplus +const +currently +difftime +does +exit +fdopen +fileno +ghs +have +higher +howmany +i386 +in +is +lint +linux +log +m88k +msg_accrights +msg_accrightslen +not +or +ppc +pthread_equal +pthread_getspecific +r2 +rewinddir +same +sap_any +simulator +sparc +sun +support +system +time +unused +value diff --git a/acconfig.h b/acconfig.h new file mode 100644 index 00000000000..2e1d49a341b --- /dev/null +++ b/acconfig.h @@ -0,0 +1,1370 @@ +/* -*- C++ -*- */ +#ifndef ACE_CONFIG_H +#define ACE_CONFIG_H + +/* ACE configuration header file */ + +/* @TOP@ */ +/* All lines above "@TOP@" will be placed at the top of config.h.in. */ + +/* + $Id$ + + This file, "acconfig.h," contains additional preprocessor symbols that + autoheader may encounter. +*/ + +/* Name of package */ +#ifndef PACKAGE +# undef PACKAGE +#endif + +/* Version of package */ +#ifndef VERSION +# undef VERSION +#endif + +/* Define _REENTRANT if reentrant functions should be used. */ +#ifndef _REENTRANT +# undef _REENTRANT +#endif + +#ifndef _POSIX_THREADS +# undef _POSIX_THREADS +#endif + +#ifndef _POSIX_THREAD_SAFE_FUNCTIONS +# undef _POSIX_THREAD_SAFE_FUNCTIONS +#endif + +/* Some platforms need _POSIX_PTHREAD_SEMANTICS to make some functions work */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif + +/* Some platforms require _GNU_SOURCE to be defined to make some functions + declaration "visible." */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif + +/* ACE currently doesn't use these; however the configure script does */ +#undef ACE_LACKS_SYSTIMES_H +#undef ACE_LACKS_UNBUFFERED_STREAMBUF +#undef ACE_HAS_STDCPP_STL_INCLUDES + +#undef ACE_HAS_LIBC_H +#undef ACE_HAS_OSFCN_H +#undef ACE_HAS_NEW_NO_H +#undef ACE_HAS_NEW_H +#undef ACE_HAS_STDEXCEPT_NO_H +#undef ACE_HAS_EXCEPTION_H +#undef ACE_HAS_IOMANIP_NO_H + +/* Platform provides <sys/ioctl.h> header */ +#undef ACE_HAS_SYS_IOCTL_H + +/* + * Deprecated! (or soon to be?) + */ +#undef ACE_HAS_OSF1_GETTIMEOFDAY /* timezone* 2nd parameter & no prototype */ +#undef ACE_HAS_LYNXOS_SIGNALS +#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 + +/* ///////////////////// OSSAMA'S NEW STUFF ////////////////// */ +/* + THIS STUFF WILL REPLACE THE ABOVE OLDER STUFF AND/OR WILL BE MERGED INTO IT +*/ + +/* results from checks for programs */ +/* results from checks for libraries */ +/* results from checks for header files */ +/* results from checks for typedefs */ +/* results from checks for structures */ +/* results from checks for variables */ +/* results from checks for compiler characteristics */ +/* results from checks for library functions */ +/* results from checks for system services */ + +/* AIX specific configuration parameters */ +#undef AIX +#undef _BSD +#undef _BSD_INCLUDES + +/* Cray specific configuration parameters */ +/* + The following predefined macros are used within ACE ifdefs. + These are defined when using the Cray compilers. _CRAYMPP + is defined, for example, if you are running on a Cray T3E + massively parallel machine. Moreover, in the case of the T3E, + _CRAYT3E will be defined. This is used to determine the + ACE_SIZEOF defines for primitive types. + + _UNICOS is defined as either the major version of UNICOS being run, + e.g. 9 or 10 on the vector machines (e.g. C90, T90, J90, YMP, ...) + or the major+minor+level UNICOS/mk version, e.g. 2.0.3 => 203, + being run on an MPP machine. + + Summary: + + _CRAYMPP (defined only if running on MPP machine, e.g. T3E, UNICOS/mk) + _CRAYT3E (defined specifically if compiling on a Cray T3E) + _UNICOS (defined if running UNICOS or UNICOS/mk) + + Tested on UNICOS 10.0.0.2, UNICOS/mk 2.0.3.10 + + Contributed by Doug Anderson <doug@clark.net> +*/ +#undef _CRAYMPP +#undef _CRAYT3E +#undef _UNICOS + +/* DG/UX specific configuration parameters */ +#undef ACE_DGUX +#undef _DGUX_SOURCE +#undef _POSIX4A_DRAFT10_SOURCE +#undef _POSIX4_DRAFT_SOURCE + +/* FreeBSD specific configuration parameters */ +/* Nothing yet */ + +/* HP/UX specific configuration parameters */ +#undef HPUX +#undef HPUX_10 +#undef HPUX_11 +#undef _HPUX_SOURCE + +/* Irix specific configuration parameters */ +#undef IRIX5 +#undef IRIX6 +#undef _BSD_TYPES +#undef _SGI_MP_SOURCE +#undef _MODERN_C_ + +/* Linux specific configuration parameters */ +/* Nothing yet */ + +/* LynxOS specific configuration parameters */ +#undef __NO_INCLUDE_WARN__ +#undef _POSIX_THREADS_CALLS + +/* M88K specific configuration parameters */ +#undef m88k +#undef __m88k__ + +/* MVS specific configuration parameters */ +/* Nothing yet */ + +/* NetBSD specific configuration parameters */ +#undef ACE_NETBSD + +/* OSF/1 and Digital Unix specific configuration parameters */ +#undef DEC_CXX +#undef DIGITAL_UNIX + +/* pSOS specific configuration parameters */ +#undef ACE_PSOS +#undef ACE_PSOSIM +#undef ACE_PSOSTBD + +/* SCO specific configuration parameters */ +#undef SCO +#undef _SVID3 + +/* SunOS / Solaris specific configuration parameters */ +/* Nothing yet */ + +/* Tandem specific configuration parameters */ +/* Nothing yet */ + +/* UnixWare specific configuration parameters */ +#undef UNIXWARE +#undef UNIXWARE_2_0 +#undef UNIXWARE_2_1 + +/* VXWorks specific configuration parameters */ +#undef VXWORKS + +/* Win32 specific configuration parameters */ +#undef ACE_WIN32 + +/* ACE internals */ +#undef ACE_DEFAULT_BASE_ADDR +#undef ACE_DEFAULT_BASE_ADDRL +#undef ACE_DEFAULT_CLOSE_ALL_HANDLES +#undef ACE_DEFAULT_MAX_SOCKET_BUFSIZ +#undef ACE_DEFAULT_SELECT_REACTOR_SIZE +#undef ACE_MALLOC_ALIGN +#undef ACE_MAP_PRIVATE +#undef ACE_THR_PRI_FIFO_DEF +#undef ACE_TIMER_SKEW +#undef ACE_UINT64_FORMAT_SPECIFIER +#undef ACE_USE_RCSID +#undef IP_ADD_MEMBERSHIP +#undef IP_DROP_MEMBERSHIP + +/* Specify sizes of given built-in types. If a size isn't defined here, + then ace/Basic_Types.h will attempt to deduce the size. */ +/* #undef ACE_SIZEOF_CHAR */ +#undef ACE_SIZEOF_SHORT +#undef ACE_SIZEOF_INT +#undef ACE_SIZEOF_LONG +#undef ACE_SIZEOF_LONG_LONG +#undef ACE_SIZEOF_VOID_P +#undef ACE_SIZEOF_FLOAT +#undef ACE_SIZEOF_DOUBLE +#undef ACE_SIZEOF_LONG_DOUBLE + +/* typedef for ACE_UINT64 */ +/* + We only make the typedef if ACE_UINT64_TYPEDEF is defined and + ACE_LACKS_LONGLONG_T isn't defined . Otherwise, + let ace/Basic_Types.h do the work for us. ACE_UINT64_TYPEDEF is + defined during the initial configuration process if a 64 bit unsigned int + was found. +*/ +#undef ACE_UINT64_TYPEDEF +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +/* Enable ACE inlining */ +#undef __ACE_INLINE__ + +/* Explicitly disable ACE inlining */ +#undef ACE_NO_INLINE + +/* Enable ACE_Timeprobes */ +#undef ACE_COMPILE_TIMEPROBES + +/* Enable use of GNU template repositories. GNU C++ w/repo patch + and EGCS only */ +#undef ACE_HAS_GNU_REPO + +/* Define this if you don't want debug version ACE search for debug version + DLLs first before looking for the DLL names specified. */ +#undef ACE_DISABLE_DEBUG_DLL_CHECK + +/* Platform supports new C++ style casts (dynamic_cast, static_cast, + reinterpret_cast and const_cast) */ +#undef ACE_HAS_ANSI_CASTS + +/* Platform supports Asynchronous IO calls */ +#undef ACE_HAS_AIO_CALLS + +/* Number of TSS keys, with ACE_HAS_TSS_EMULATION _only_. Defaults to 64. */ +#undef ACE_DEFAULT_THREAD_KEYS + +/* Specify this if you don't want threads to inherit parent thread's + ACE_Log_Msg properties. */ +#undef ACE_THREADS_DONT_INHERIT_LOG_MSG + +/* Compiler enforces C++ One Definition Rule */ +#undef ACE_HAS_ONE_DEFINITION_RULE + +/* OS has priocntl (2) */ +#undef ACE_HAS_PRIOCNTL + +/* Platform has the MIT pthreads APIs for timed send/recv operations */ +#undef ACE_HAS_RECV_TIMEDWAIT +#undef ACE_HAS_RECVFROM_TIMEDWAIT +#undef ACE_HAS_RECVMSG_TIMEDWAIT +#undef ACE_HAS_SEND_TIMEDWAIT +#undef ACE_HAS_SENDTO_TIMEDWAIT +#undef ACE_HAS_SENDMSG_TIMEDWAIT +#undef ACE_HAS_READ_TIMEDWAIT +#undef ACE_HAS_READV_TIMEDWAIT +#undef ACE_HAS_WRITE_TIMEDWAIT +#undef ACE_HAS_WRITEV_TIMEDWAIT + +/* Platform has enum instead of int for first argument to ::{get,set}rlimit (). + The value of this macro is the enum definition, e.g., + enum __rlimit_resource, for Linux glibc 2.0. */ +#undef ACE_HAS_RLIMIT_RESOURCE_ENUM + +/* Platform has enum instead of int for first argument to ::getrusage (). The + value of this macro is the enum definition, e.g., enum __rusage_who, for + Linux glibc 2.0. */ +#undef ACE_HAS_RUSAGE_WHO_ENUM + +/* Platform also has __TEXT defined */ +#undef ACE_HAS_TEXT_MACRO_CONFLICT + +/* Platform has void (*)(...) prototype for pthread_key_create() destructor + (e.g., LynxOS). */ +#undef ACE_HAS_STDARG_THR_DEST + +/* Used when users want to compile ACE with STL and STL map class conflicts + with <net/if.h> map struct. */ +#undef ACE_HAS_STL_MAP_CONFLICT + +/* Used when users want to compile ACE with STL and STL queue class conflicts + with <netinet/in.h> queue struct. */ +#undef ACE_HAS_STL_QUEUE_CONFLICT + +/* Platform/compiler supports Win32 structural exceptions */ +#undef ACE_HAS_WIN32_STRUCTURAL_EXCEPTIONS + +/* Platform has BSD 4.4 sendmsg()/recvmsg() APIs. */ +#undef ACE_HAS_4_4BSD_SENDMSG_RECVMSG + +/* Platform has pread() and pwrite() support */ +#undef ACE_HAS_P_READ_WRITE + +/* Platform, such as AIX4, needs to wrap #include of sys/socket.h with + #undef/#define of __cplusplus. */ +#undef ACE_HAS_AIX_BROKEN_SOCKET_HEADER + +/* Platform has AIX4 ::read_real_time () */ +#undef ACE_HAS_AIX_HI_RES_TIMER + +/* Compiler/platform supports alloca() */ +#undef ACE_HAS_ALLOCA + +/* Compiler/platform has <alloca.h> */ +#undef ACE_HAS_ALLOCA_H + +/* CPU is an Alpha, with the rpcc instruction to read the tick timer. */ +#undef ACE_HAS_ALPHA_TIMER + +/* Compiler/platform correctly calls init()/fini() for shared libraries */ +#undef ACE_HAS_AUTOMATIC_INIT_FINI + +/* Compiler handles explicit calling of template destructor correctly. + See "ace/OS.h" for details. */ +#undef ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR + +/* Compiler/platform doesn't support namespaces (or the support is not fully + implemented.) */ +#undef ACE_HAS_BROKEN_NAMESPACES + +/* Compiler has integer overflow problem with bit-shift operations. */ +#undef ACE_HAS_BROKEN_BITSHIFT + +/* Compiler can't handle const char * as rvalue in conditional operator. */ +#undef ACE_HAS_BROKEN_CONDITIONAL_STRING_CASTS + +/* Compiler can't handle calls like foo->operator T *() */ +#undef ACE_HAS_BROKEN_CONVERSIONS + +/* Compiler/platform uses macro for ctime (e.g., MVS) */ +#undef ACE_HAS_BROKEN_CTIME + +/* Earlier versions of HP/UX C++ are damned... */ +#undef ACE_HAS_BROKEN_HPUX_TEMPLATES + +/* Platform headers don't support <msg.h> prototypes */ +#undef ACE_HAS_BROKEN_MSG_H + +/* HP/UX does not wrap the mmap(2) header files with extern "C". */ +#undef ACE_HAS_BROKEN_MMAP_H + +/* MSVC has trouble with defining STL containers for nested structs and + classes */ +#undef ACE_HAS_BROKEN_NESTED_TEMPLATES + +/* Platform has a bug with non-blocking connects (e.g., WinNT 4.0) */ +#undef ACE_HAS_BROKEN_NON_BLOCKING_CONNECTS + +/* Platform defines struct timespec in <sys/timers.h> */ +#undef ACE_HAS_BROKEN_POSIX_TIME + +/* Platform defines ctime_r, asctime_r, rand_r and getpwnam_r as macros */ +#undef ACE_HAS_BROKEN_R_ROUTINES + +/* OS/compiler's header files are inconsistent with libC definition of + rand_r(). */ +#undef ACE_HAS_BROKEN_RANDR + +/* OS/Compiler's header files are not consistent with readv() definition. */ +#undef ACE_HAS_BROKEN_READV + +/* Compiler can't handle the static ACE_Addr::sap_any construct. */ +#undef ACE_HAS_BROKEN_SAP_ANY + +/* OS/compiler omits the const from the sendmsg() prototype. */ +#undef ACE_HAS_BROKEN_SENDMSG + +/* OS/compiler omits the const from the rlimit parameter in the setrlimit() + prototype. */ +#undef ACE_HAS_BROKEN_SETRLIMIT + +/* Platform doesn't define _terrno() even though it should (only for TLI) */ +#undef ACE_HAS_BROKEN_T_ERRNO + +/* platform define struct timespec members as ts_sec and ts_nsec instead of + tv_sec and tv_nsec. This is highly non-portable. Currently only + FreeBSD 2.1.x uses it. */ +#undef ACE_HAS_BROKEN_TIMESPEC_MEMBERS + +/* OS/compiler omits the const from the iovec parameter in the writev() + prototype. */ +#undef ACE_HAS_BROKEN_WRITEV + +/* OS header files have some problems with XTI (HP/UX 11). */ +#undef ACE_HAS_BROKEN_XTI_MACROS + +/* Platform has <bstring.h> (which contains bzero() prototype) */ +#undef ACE_HAS_BSTRING + +/* Platform has <bytesex.h>. */ +#undef ACE_HAS_BYTESEX_H + +/* Platform has <features.h> */ +#undef ACE_HAS_FEATURES_H + +/* Platform supports the Win32 CancelIO() function (WinNT 4.0 and beyond). */ +#undef ACE_HAS_CANCEL_IO + +/* OS/platform uses char * for dlopen/dlsym args, rather than const char *. */ +#undef ACE_HAS_CHARPTR_DL + +/* OS/platform uses char * for sockopt, rather than const char * */ +#undef ACE_HAS_CHARPTR_SOCKOPT + +/* sprintf() returns char * rather than int (e.g., SunOS 4.x) */ +#undef ACE_HAS_CHARPTR_SPRINTF + +/* Platform supports POSIX 1.b clock_gettime () */ +#undef ACE_HAS_CLOCK_GETTIME + +/* Prototypes for both signal() and struct sigaction are consistent. */ +#undef ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES + +/* Compiler/platform has correctly prototyped header files */ +#undef ACE_HAS_CPLUSPLUS_HEADERS + +/* Platform has cygwin32 socket.h */ +#undef ACE_HAS_CYGWIN32_SOCKET_H + +/* Platform supports operations on directories via struct dirent, + readdir_r, etc. */ +#undef ACE_HAS_DIRENT + +/* For platforms, e.g., RedHat 4.2/Linux 2.0.30/Alpha, that don't declare dl* + functions as extern "C" in dlfcn.h.*/ +#undef ACE_HAS_DLFCN_H_BROKEN_EXTERN_C + +/* Build ACE using the frigging PC DLL nonsense... */ +#undef ACE_HAS_DLL + +/* Compiler supports C++ exception handling */ +#undef ACE_HAS_EXCEPTIONS + +/* Platform supports getpagesize() call (otherwise, ACE_PAGE_SIZE must be + defined, except on Win32) */ +#undef ACE_HAS_GETPAGESIZE + +/* Platform supports the getrusage() system call. */ +#undef ACE_HAS_GETRUSAGE + +/* Platform has a getrusage () prototype in sys/resource.h that differs from + the one in ace/OS.i. */ +#undef ACE_HAS_GETRUSAGE_PROTO + +/* GNUC 2.7.3 mistakenly takes the template definition as the place where an + inline function of an argument class is first used. */ +#undef ACE_HAS_GNUC_BROKEN_TEMPLATE_INLINE_FUNCTIONS + +/* Denotes that GNU has cstring.h as standard which redefines memchr() */ +#undef ACE_HAS_GNU_CSTRING_H + +/* The GPERF utility is compiled for this platform */ +#undef ACE_HAS_GPERF + +/* Optimize ACE_Handle_Set::count_bits for select() operations (common case) */ +#undef ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT + +/* Compiler/platform supports SunOS high resolution timers */ +#undef ACE_HAS_HI_RES_TIMER + +/* Compiler/platform supports idtype_t. */ +#undef ACE_HAS_IDTYPE_T + +/* Inline all the static class OS methods to remove call overhead */ +/* Note: This gets defined by OS.h if __ACE_INLINE__ is defined */ +#undef ACE_HAS_INLINED_OSCALLS + +/* Platform supports IP multicast */ +#undef ACE_HAS_IP_MULTICAST + +/* Platform supports the very odd IRIX 6.2 threads... */ +#undef ACE_HAS_IRIX62_THREADS + +/* Causes the ACE_Object_Manager instance to be created in + main (int, char *[]), instead of as a static (global) instance. */ +#undef ACE_HAS_NONSTATIC_OBJECT_MANAGER + +/* Platform supports thr_keydelete (e.g,. UNIXWARE) */ +#undef ACE_HAS_THR_KEYDELETE + +/* Platform calls thr_minstack() rather than thr_min_stack() (e.g., Tandem). */ +#undef ACE_HAS_THR_MINSTACK + +/* The rusage_t structure has only two fields. */ +#undef ACE_HAS_LIMITED_RUSAGE_T + +/* Compiler/platform has "big" fd_set, i.e. large number of bits set + in fd_set passed back from select(). */ +#undef ACE_HAS_BIG_FD_SET + +/* Platform defines MAP_FAILED as a long constant. */ +#undef ACE_HAS_LONG_MAP_FAILED + +/* Enabled malloc statistics collection. */ +#undef ACE_HAS_MALLOC_STATS + +/* Avoid #including ace/streams.h in OS.h. Users must include ace/streams.h, + <iostream>, or <iostream.h> explicitly in their code. Some platforms, such + as g++/VxWorks, have trouble compiling templates and iostreams header + because of static variables in the stream headers. This flag will also + avoid extra compilation and runtime overheads on some platforms. */ +#undef ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION + +/* Some files, such as ace/streams.h, want to include new style C++ stream + headers. These headers are iomanip, ios, iostream, istream, ostream, + fstream and streambuf. If _all_ of these headers aren't available, then + assume that only iostream.h and fstream.h are available. */ +#undef ACE_USES_OLD_IOSTREAMS + +/* Platform supports Microsoft Foundation Classes */ +#undef ACE_HAS_MFC + +/* Platform supports recvmsg and sendmsg */ +#undef ACE_HAS_MSG + +/* Platform supports MT safe mktime() call (do any of them?) */ +#undef ACE_HAS_MT_SAFE_MKTIME + +/* Sockets may be called in multi-threaded programs */ +#undef ACE_HAS_MT_SAFE_SOCKETS + +/* Platform uses non-const char * in calls to gethostbyaddr, gethostbyname, + getservbyname */ +#undef ACE_HAS_NONCONST_GETBY + +/* Platform has a non-const parameter to msgsnd() (e.g., SCO). */ +#undef ACE_HAS_NONCONST_MSGSND + +/* Platform's select() uses non-const timeval* (only found on Linux right + now) */ +#undef ACE_HAS_NONCONST_SELECT_TIMEVAL + +/* Platform has "old" GNU compiler, i.e. does not completely support + standard C++. (compiling with g++ prior to version 2.8.0) */ +#undef ACE_HAS_GNUG_PRE_2_8 + +/* Compiler/platform uses old malloc()/free() prototypes (ugh) */ +#undef ACE_HAS_OLD_MALLOC + +/* Uses ctime_r & asctime_r with only two parameters vs. three. */ +#undef ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R + +/* Platform, e.g., Solaris 2.5, only supports SCHED_OTHER POSIX scheduling + policy. */ +#undef ACE_HAS_ONLY_SCHED_OTHER + +/* Use the semaphore implementation of ACE_Message_Queue rather than the + emulated condition variable (NT and VxWorks). */ +#undef ACE_HAS_OPTIMIZED_MESSAGE_QUEUE + +/* Platform has Orbix CORBA implementation */ +#undef ACE_HAS_ORBIX + +/* Platform supports the OSF TLI timod STREAMS module */ +#undef ACE_HAS_OSF_TIMOD_H + +/* Platform is an Intel Pentium microprocessor. */ +#undef ACE_HAS_PENTIUM + +/* Platform contains <poll.h> */ +#undef ACE_HAS_POLL + +/* Platform supports POSIX O_NONBLOCK semantics */ +#undef ACE_HAS_POSIX_NONBLOCK + +/* Platform supports POSIX real-time semaphores (e.g., VxWorks and Solaris) */ +#undef ACE_HAS_POSIX_SEM + +/* Platform supports the POSIX struct timespec type */ +#undef ACE_HAS_POSIX_TIME + +/* Platform supports the /proc file system and defines tid_t + in <sys/procfs.h> */ +#undef ACE_HAS_PROC_FS + +/* Platform supports PowerPC time-base register. */ +#undef ACE_HAS_POWERPC_TIMER + +/* Platform supports the prusage_t struct */ +#undef ACE_HAS_PRUSAGE_T + +/* Platform supports POSIX Threads */ +#undef ACE_HAS_PTHREADS + +/* Platform supports POSIX Threads .4a Draft 4 */ +#undef ACE_HAS_PTHREADS_DRAFT4 + +/* Platform supports POSIX Threads .4a Draft 6 */ +#undef ACE_HAS_PTHREADS_DRAFT6 + +/* Platform supports POSIX Threads .1c Draft 7 */ +#undef ACE_HAS_PTHREADS_DRAFT7 + +/* Platform supports POSIX.1c-1995 threads */ +#undef ACE_HAS_PTHREADS_STD + +/* Platform has pthread_condattr_setkind_np(). */ +#undef ACE_HAS_PTHREAD_CONDATTR_SETKIND_NP + +/* Platform has pthread_mutexattr_setkind_np(). */ +#undef ACE_HAS_PTHREAD_MUTEXATTR_SETKIND_NP + +/* pthread.h declares an enum with PTHREAD_PROCESS_PRIVATE and + PTHREAD_PROCESS_SHARED values */ +#undef ACE_HAS_PTHREAD_PROCESS_ENUM + +/* Platform has pthread_sigmask() defined. */ +#undef ACE_HAS_PTHREAD_SIGMASK + +/* Purify'ing. Defined on command line. */ +#undef ACE_HAS_PURIFY + +/* Quantify'ing. Defined on command line. */ +#undef ACE_HAS_QUANTIFY + +/* Platform will recurse infinitely on thread exits from TSS cleanup routines + (e.g., AIX) */ +#undef ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS + +/* Platform supports reentrant functions (i.e., all the POSIX *_r + functions). */ +#undef ACE_HAS_REENTRANT_FUNCTIONS + +/* Compiler typedefs wchar with char. */ +#undef ACE_HAS_WCHAR_TYPEDEFS_CHAR + +/* Solaris for intel uses macros for fstat() and stat(), these are wrappers for + _fxstat() and _xstat() uses of the macros. Causes compile and runtime + problems. */ +#undef ACE_HAS_X86_STAT_MACROS + +/* Platform has support for multi-byte character support compliant with the + XPG4 Worldwide Portability Interface wide-character classification. */ +#undef ACE_HAS_XPG4_MULTIBYTE_CHAR + +/* No system support for replacing any previous mappings. */ +#undef ACE_LACKS_AUTO_MMAP_REPLACEMENT + +/* Compiler/platform lacks the standard C library bsearch() function */ +#undef ACE_LACKS_BSEARCH + +/* Platform has ACE_HAS_4_4BSD_SENDMSG_RECVMSG but does not define + CMSG_DATA (cmsg) macro. */ +#undef ACE_LACKS_CMSG_DATA_MACRO + +/* Platform has ACE_HAS_4_4BSD_SENDMSG_RECVMSG but its cmsghdr structure does + not contain an 'unsigned char cmsg_data[0]' member. (This may be + 'unsigned char __cmsg_data[0]' on some platforms, in which case we need + another macro.) */ +#undef ACE_LACKS_CMSG_DATA_MEMBER + +/* Compiler/platform lacks the standard C library qsort() function */ +#undef ACE_LACKS_QSORT + +/* Platform lacks POSIX-style fcntl () */ +#undef ACE_LACKS_FCNTL + +/* Platform lacks fsync() */ +#undef ACE_LACKS_FSYNC + +/* Compiler does not support dynamic_cast. Usually used + with ACE_HAS_ANSI_CASTS */ +#undef ACE_LACKS_RTTI + +/* Platform lacks readdir_r() */ +#undef ACE_LACKS_READDIR_R + +/* Platform lacks seekdir() */ +#undef ACE_LACKS_SEEKDIR + +/* Platform lacks telldir() */ +#undef ACE_LACKS_TELLDIR + +/* Platform can't handle "inline" keyword correctly. */ +#undef ACE_LACKS_INLINE_FUNCTIONS + +/* Iostreams are not supported adequately on the given platform. */ +#undef ACE_LACKS_IOSTREAM_TOTALLY + +/* Platform does not support reentrant netdb functions (getprotobyname_r, + getprotobynumber_r, gethostbyaddr_r, gethostbyname_r, getservbyname_r). */ +#undef ACE_LACKS_NETDB_REENTRANT_FUNCTIONS + +/* Platform supports the POSIX regular expression library */ +#undef ACE_HAS_REGEX + +/* Platform has special header for select(). */ +#undef ACE_HAS_SELECT_H + +/* For Win32: Use Select_Reactor as default implementation of Reactor instead + of WFMO_Reactor. */ +#undef ACE_USE_SELECT_REACTOR_FOR_REACTOR_IMPL + +/* Compiler/platform defines a union semun for SysV shared memory */ +#undef ACE_HAS_SEMUN + +/* Platform has a function to set t_errno (e.g., Tandem). */ +#undef ACE_HAS_SET_T_ERRNO + +/* Platform has shm_open() */ +#undef ACE_HAS_SHM_OPEN + +/* Platform supports SVR4 extended signals */ +#undef ACE_HAS_SIGINFO_T + +/* Platform has bug with sigismember() (HP/UX 11). */ +#undef ACE_HAS_SIGISMEMBER_BUG + +/* Platform/compiler has macros for sig{empty,fill,add,del}set (e.g., SCO and + FreeBSD) */ +#undef ACE_HAS_SIG_MACROS + +/* Platform supports the Win32 SignalObjectAndWait() function (WinNT 4.0 and + beyond). */ +#undef ACE_HAS_SIGNAL_OBJECT_AND_WAIT + +/* Automatically restart OS system calls when EINTR occurs */ +#undef ACE_HAS_SIGNAL_SAFE_OS_CALLS + +/* Platform/compiler has the sigwait(2) prototype */ +#undef ACE_HAS_SIGWAIT + +/* Compiler/platform defines the sig_atomic_t typedef */ +#undef ACE_HAS_SIG_ATOMIC_T + +/* Compiler requires extern "C" functions for signals. */ +#undef ACE_HAS_SIG_C_FUNC + +/* Platform supports new BSD inet_addr len field. */ +#undef ACE_HAS_SIN_LEN + +/* OS/compiler uses size_t * rather than int * for socket lengths */ +#undef ACE_HAS_SIZET_SOCKET_LEN + +/* Platform requires (struct sockaddr *) for msg_name field of + struct msghdr. */ +#undef ACE_HAS_SOCKADDR_MSG_NAME + +/* Compiler/platform provides the sys/sockio.h file */ +#undef ACE_HAS_SOCKIO_H + +/* Platform provides socklen_t type, such as Linux with glibc2. */ +#undef ACE_HAS_SOCKLEN_T + +/* Compiler has brain-damaged SPARCwork SunOS 4.x signal prototype... */ +#undef ACE_HAS_SPARCWORKS_401_SIGNALS + +/* Compiler supports the ssize_t typedef */ +#undef ACE_HAS_SSIZE_T + +/* Platform supports UNIX International Threads */ +#undef ACE_HAS_STHREADS + +/* Platform has thr_yield() */ +#undef ACE_HAS_THR_YIELD + +/* Platform/compiler supports Standard C++ Library */ +#undef ACE_HAS_STANDARD_CPP_LIBRARY + +/* Compiler/platform supports struct strbuf */ +#undef ACE_HAS_STRBUF_T + +/* Platform/compiler lacks strdup() (e.g., VxWorks, Chorus, WinCE) */ +#undef ACE_HAS_STRDUP_EMULATION + +/* Platform supports STREAMS */ +#undef ACE_HAS_STREAMS + +/* Platform s +#undef ACE_HAS_STREAM_PIPES + +/* Compiler/platform supports strerror () */ +#undef ACE_HAS_STRERROR + +/* Use the STRICT compilation mode on Win32. */ +#undef ACE_HAS_STRICT + +/* Platform/Compiler supports a String class (e.g., GNU or Win32). */ +#undef ACE_HAS_STRING_CLASS + +/* Platform has <strings.h> (which contains bzero() prototype) */ +#undef ACE_HAS_STRINGS + +/* Compiler/platform has strange hostent API for socket *_r() calls */ +#undef ACE_HAS_STRUCT_NETDB_DATA + +/* Platform has void * as second parameter to gettimeofday and a has a + prototype */ +#undef ACE_HAS_SUNOS4_GETTIMEOFDAY + +/* Compiler has horrible SunOS 4.x signal handlers... */ +#undef ACE_HAS_SUNOS4_SIGNAL_T + +/* Compiler/platform supports SVR4 dynamic linking semantics */ +#undef ACE_HAS_SVR4_DYNAMIC_LINKING + +/* Compiler/platform supports SVR4 gettimeofday() prototype but doesn't have + a prototype */ +#undef ACE_HAS_SVR4_GETTIMEOFDAY + +/* Compiler/platform supports SVR4 signal typedef */ +#undef ACE_HAS_SVR4_SIGNAL_T + +/* Compiler/platform supports SVR4 TLI (in particular, T_GETNAME stuff)... */ +#undef ACE_HAS_SVR4_TLI + +/* HP/UX has an undefined syscall for GETRUSAGE... */ +#undef ACE_HAS_SYSCALL_GETRUSAGE + +/* Compiler/platform contains the <sys/syscall.h> file. */ +#undef ACE_HAS_SYSCALL_H + +/* Platform provides <sysent.h> header */ +#undef ACE_HAS_SYSENT_H + +/* Platform supports system configuration information */ +#undef ACE_HAS_SYSINFO + +/* Platform supports System V IPC (most versions of UNIX, but not Win32) */ +#undef ACE_HAS_SYSV_IPC + +/* Platform/compiler supports _sys_errlist symbol */ +#undef ACE_HAS_SYS_ERRLIST + +/* Platform provides <sys/filio.h> header */ +#undef ACE_HAS_SYS_FILIO_H + +/* Compiler/platform supports _sys_siglist array */ +#undef ACE_HAS_SYS_SIGLIST + +/* Platform provides <sys/xti.h> header */ +#undef ACE_HAS_SYS_XTI_H + +/* Compiler implements template specialization */ +#undef ACE_HAS_TEMPLATE_SPECIALIZATION + +/* Compiler implements templates that support typedefs inside of classes used + as formal arguments to a template class. */ +#undef ACE_HAS_TEMPLATE_TYPEDEFS + +/* Platform has terminal ioctl flags like TCGETS and TCSETS. */ +#undef ACE_HAS_TERM_IOCTLS + +/* Platform supports threads */ +#undef ACE_HAS_THREADS + +/* Platform allows multiple threads to call accept() on the same port + (e.g., WinNT). */ +#undef ACE_HAS_THREAD_SAFE_ACCEPT + +/* Platform has thread_self() rather than pthread_self() (e.g., DCETHREADS + and AIX) */ +#undef ACE_HAS_THREAD_SELF + +/* Compiler/platform has thread-specific storage */ +#undef ACE_HAS_THREAD_SPECIFIC_STORAGE + +/* The pthread_keycreate() routine *must* take extern C functions. */ +#undef ACE_HAS_THR_C_DEST + +/* The pthread_create() routine *must* take extern C functions. */ +#undef ACE_HAS_THR_C_FUNC + +/* Platform/compiler supports timezone * as second parameter to + gettimeofday() and has a prototype*/ +#undef ACE_HAS_TIMEZONE_GETTIMEOFDAY + +/* Platform supports TLI timod STREAMS module */ +#undef ACE_HAS_TIMOD_H + +/* Platform supports TLI tiuser header */ +#undef ACE_HAS_TIUSER_H + +/* Platform does not protect <tiuser.h> with extern "C" */ +#undef ACE_HAS_TIUSER_H_BROKEN_EXTERN_C + +/* Platform supports TLI. Also see ACE_TLI_TCP_DEVICE. */ +#undef ACE_HAS_TLI + +/* Platform provides TLI function prototypes */ +#undef ACE_HAS_TLI_PROTOTYPES + +/* ACE provides TSS emulation. See also ACE_DEFAULT_THREAD_KEYS. */ +#undef ACE_HAS_TSS_EMULATION + +/* Platform supports ualarm() */ +#undef ACE_HAS_UALARM + +/* Platform supports ucontext_t (which is used in the extended signal API). */ +#undef ACE_HAS_UCONTEXT_T + +/* The wait() system call takes a (union wait *) rather than int * */ +#undef ACE_HAS_UNION_WAIT + +/* Has inconsistent SVR4 signal stuff, but not the same as the other + platforms */ +#undef ACE_HAS_UNIXWARE_SVR4_SIGNAL_T + +/* Platform/compiler supports UNICODE */ +#undef ACE_HAS_UNICODE + +/* Platform has <utime.h> header file */ +#undef ACE_HAS_UTIME + +/* Most APIs in platform/compiler supports UNICODE. (No char version + available.) */ +#undef ACE_HAS_MOSTLY_UNICODE_APIS + +/* Compiler supports the C++ typename keyword */ +#undef E_HAS_TYPENAME_KEYWORD + +/* Compiler supports the new using keyword for C++ namespaces. */ +#undef ACE_HAS_USING_KEYWORD + +/* Prints out console message in ACE_NOTSUP. Useful for tracking down origin + of ACE_NOTSUP. */ +#undef ACE_HAS_VERBOSE_NOTSUP + +/* Platform requires void * for mmap(). */ +#undef ACE_HAS_VOIDPTR_MMAP + +/* OS/compiler uses void * arg 4 setsockopt() rather than const char * */ +#undef ACE_HAS_VOIDPTR_SOCKOPT + +/* The Win32 platform support TryEnterCriticalSection() (WinNT 4.0 and + beyond) */ +#undef ACE_HAS_WIN32_TRYLOCK + +/* The Win32 platform supports WinSock 2.0 */ +#undef ACE_HAS_WINSOCK2 + +/* Platform has the XLI version of TLI */ +#undef ACE_HAS_XLI + +/* Platform has Xt Intrinsics Toolkit */ +#undef ACE_HAS_XT + +/* Platform does not have Motif X toolkit available */ +#undef ACE_LACKS_MOTIF + +/* Platform has XTI (X/Open-standardized superset of TLI). Implies + ACE_HAS_TLI but uses a different header file. */ +#undef ACE_HAS_XTI + +/* Platform lacks access() (e.g., VxWorks and Chorus) */ +#undef ACE_LACKS_ACCESS + +/* Platform can not build ace/IOStream{,_T}.cpp. This does not necessarily + mean that the platform does not support iostreams. */ +#undef ACE_LACKS_ACE_IOSTREAM + +/* Platform lacks condition variables (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_COND_T + +/* pthread_cond_timedwait does *not* reset the time argument when + the lock is acquired. */ +#undef ACE_LACKS_COND_TIMEDWAIT_RESET + +/* Platform has no implementation of pthread_condattr_setpshared(), even + though it supports pthreads! */ +#undef ACE_LACKS_CONDATTR_PSHARED + +/* Platform uses struct strbuf * rather than const struct strbuf * (e.g., + HP/UX 10.x) */ +#undef ACE_LACKS_CONST_STRBUF_PTR + +/* Platform forgot const in cond_timewait (e.g., HP/UX). */ +#undef ACE_LACKS_CONST_TIMESPEC_PTR + +/* Platform lacks difftime() implementation */ +#undef ACE_LACKS_DIFFTIME + +/* Platform lacks the exec() family of system calls (e.g., Win32, VxWorks, + Chorus) */ +#undef ACE_LACKS_EXEC + +/* Platform lacks file locking mechanism */ +#undef ACE_LACKS_FILELOCKS + +/* Platform does not support floating point operations */ +#undef ACE_LACKS_FLOATING_POINT + +/* Platform lacks the fork() system call (e.g., Win32, VxWorks, Chorus) */ +#undef ACE_LACKS_FORK + +/* Platform lacks the getopt() prototype (e.g., LynxOS) */ +#undef ACE_LACKS_GETOPT_PROTO + +/* Platform lacks getpgid() call (e.g., Win32, Chorus, and FreeBSD). */ +#undef ACE_LACKS_GETPGID + +/* Platforms lacks getservbyname() (e.g., VxWorks and Chorus). */ +#undef ACE_LACKS_GETSERVBYNAME + +/* iostream header does not declare ipfx (), opfx (), etc. */ +#undef ACE_LACKS_IOSTREAM_FX + +/* Platform lacks streambuf "linebuffered ()". */ +#undef ACE_LACKS_LINEBUFFERED_STREAMBUF + +/* Compiler/platform does not support the unsigned long long datatype. */ +#undef ACE_LACKS_LONGLONG_T + +/* Platform lacks the lstat() function. */ +#undef ACE_LACKS_LSTAT + +/* Platform does not have u_longlong_t typedef */ +#undef ACE_LACKS_U_LONGLONG_T + +/* Platform lacks madvise() (e.g., Linux) */ +#undef ACE_LACKS_MADVISE + +/* Platform lacks malloc.h */ +#undef ACE_LACKS_MALLOC_H + +/* Platform lacks memory.h (e.g., VxWorks and Chorus) */ +#undef ACE_LACKS_MEMORY_H + +/* Platform lacks mkfifo(), e.g. VxWorks, Chorus, pSoS, and WinNT. */ +#undef ACE_LACKS_MKFIFO + +/* ACE has no mktemp() */ +#undef ACE_LACKS_MKTEMP + +/* The platform doesn't have mmap(2) (e.g., SCO UNIX). */ +#undef ACE_LACKS_MMAP + +/* Platform/compiler doesn't have open() mode masks. */ +#undef ACE_LACKS_MODE_MASKS + +/* The platform doesn't have mprotect(2) (e.g., EPLX real time OS from CDC + (based on LYNX)) */ +#undef ACE_LACKS_MPROTECT + +/* Platform defines ACE_HAS_MSG, but lacks msg_accrights{,len}. */ +#undef ACE_LACKS_MSG_ACCRIGHTS + +/* Platform lacks struct msgbuf (e.g., NT and MSV). */ +#undef ACE_LACKS_MSGBUF_T + +/* Platform lacks msync() */ +#undef ACE_LACKS_MSYNC + +/* Platform doesn't support "sync" third argument to msync (?) */ +#undef ACE_HAS_BROKEN_NETBSD_MSYNC + +/* Platform doesn't support tempnam */ +#undef ACE_LACKS_TEMPNAM + +/* Platform lacks pthread_mutexattr_setpshared(). */ +#undef ACE_LACKS_MUTEXATTR_PSHARED + +/* Platform lacks <sys/param.h> (e.g., MVS) */ +#undef ACE_LACKS_PARAM_H + +/* Platform lacks named POSIX semaphores (e.g., Chorus) */ +#undef ACE_LACKS_NAMED_POSIX_SEM + +/* Platform/compiler lacks {get,set}rlimit() function (e.g., VxWorks, Chorus, + and SCO UNIX) */ +#undef ACE_LACKS_RLIMIT + +/* Platform/compiler lacks {get,set}rlimit() prototypes (e.g., Tandem) */ +#undef ACE_LACKS_RLIMIT_PROTOTYPE + +/* Platform lacks POSIX prototypes for certain System V functions like shared + memory and message queues. */ +#undef ACE_LACKS_POSIX_PROTOTYPES + +/* Platform lacks POSIX prototypes for certain System V functions like shared + memory and message queues. */ +#undef ACE_LACKS_SOME_POSIX_PROTOTYPES + +/* Compiler complains about "#pragma once" */ +#undef ACE_LACKS_PRAGMA_ONCE + +/* Platform lacks pri_t (e.g., Tandem NonStop UNIX). */ +#undef ACE_LACKS_PRI_T + +/* Platform lack pthread_attr_setstackaddr() */ +#undef ACE_LACKS_THREAD_STACK_ADDR + +/* Platform lacks pthread_cancel(). */ +#undef ACE_LACKS_PTHREAD_CANCEL + +/* Platform lacks pthread_thr_sigsetmask (e.g., MVS, HP/UX, and OSF/1 3.2) */ +#undef ACE_LACKS_PTHREAD_THR_SIGSETMASK + +/* Platfrom lack pthread_yield() support. */ +#undef ACE_LACKS_PTHREAD_YIELD + +/* Platform lacks, getpwnam(), etc. */ +#undef ACE_LACKS_PWD_FUNCTIONS + +/* Platform lacks getpwnam_r() methods (e.g., SGI 6.2). */ +#undef ACE_LACKS_PWD_REENTRANT_FUNCTIONS + +/* Platform lacks the readlink() function. */ +#undef ACE_LACKS_READLINK + +/* Platform lacks recvmsg() */ +#undef ACE_LACKS_RECVMSG + +/* Platform lacks readers/writer locks. */ +#undef ACE_LACKS_RWLOCK_T + +/* Platform lacks a working sbrk() (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_SBRK + +/* Platform lacks struct sembuf (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_SEMBUF_T + +/* Platform lacks pthread_attr_setdetachstate() (e.g., HP/UX 10.x) */ +#undef ACE_LACKS_SETDETACH + +/* Platform lacks pthread_attr_setsched() (e.g. MVS) */ +#undef ACE_LACKS_SETSCHED + +/* Platform lacks struct sigaction (e.g., Win32 and Chorus) */ +#undef ACE_LACKS_SIGACTION + +/* Platform lacks "signed char" type (broken!) */ +#undef ACE_LACKS_SIGNED_CHAR + +/* Platform lacks signal sets (e.g., Chorus and Win32) */ +#undef ACE_LACKS_SIGSET + +/* Platform/compiler lacks strrchr () function. */ +#undef ACE_LACKS_STRRCHR + +/* Platforms/compiler lacks the sys_nerr variable (e.g., VxWorks and MVS). */ +#undef ACE_LACKS_SYS_NERR + +/* Platform lacks sys/msg.h (e.g., Chorus and VxWorks) */ +#undef ACE_LACKS_SYSV_MSG_H + +/* Platform lacks SYSV message queue prototypes */ +#undef ACE_LACKS_SYSV_MSQ_PROTOS + +/* Platform lacks key_t (e.g., Chorus, VxWorks, Win32) */ +#undef ACE_LACKS_KEY_T + +/* Platform lacks sendmsg() */ +#undef ACE_LACKS_SENDMSG + +/* Platform lacks the si_addr field of siginfo_t (e.g., VxWorks and + HP/UX 10.x) */ +#undef ACE_LACKS_SI_ADDR + +/* Platform lacks System V shared memory (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_SYSV_SHMEM + +/* Platform lacks the siginfo.h include file (e.g., MVS) */ +#undef ACE_LACKS_SIGINFO_H + +/* Platform doesn't support SO_SNDBUF/SO_RCVBUF (used in TAO) */ +#undef ACE_LACKS_SOCKET_BUFSIZ + +/* Platform lacks the socketpair() call (e.g., SCO UNIX) */ +#undef ACE_LACKS_SOCKETPAIR + +/* Compiler doesn't support static data member templates */ +#undef ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES + +/* Compiler/platform lacks strcasecmp() (e.g., DG/UX, UNIXWARE, VXWORKS) */ +#undef ACE_LACKS_STRCASECMP + +/* Platform doesn't define struct strrecvfd. */ +#undef ACE_LACKS_STRRECVFD + +/* Platform doesn't have syscall() prototype */ +#undef ACE_LACKS_SYSCALL + +/* Platform lacks <sys/types.h> header file */ +#undef ACE_LACKS_SYS_TYPES_H + +/* Header files lack t_errno for TLI */ +#undef ACE_LACKS_T_ERRNO + +/* Platform doesn't have netinet/tcp.h */ +#undef ACE_LACKS_TCP_H + +/* Platform lacks pthread_attr_setscope() */ +#undef ACE_LACKS_THREAD_PROCESS_SCOPING + +/* Platform lacks pthread_attr_setstacksize() (e.g., Linux pthreads) */ +#undef ACE_LACKS_THREAD_STACK_SIZE + +/* MIT pthreads platform lacks the timedwait prototypes */ +#undef ACE_LACKS_TIMEDWAIT_PROTOTYPES + +/* Platform does not define timepec_t as a typedef for struct timespec. */ +#undef ACE_LACKS_TIMESPEC_T + +/* Platform doesn't have truncate() (e.g., vxworks) */ +#undef ACE_LACKS_TRUNCATE + +/* Platform/compiler lacks the ualarm() prototype (e.g., Solaris) */ +#undef ACE_LACKS_UALARM_PROTOTYPE + +/* Platform lacks the ucontext.h file */ +#undef ACE_LACKS_UCONTEXT_H + +/* Platform lacks the unistd.h file (e.g., VxWorks and Win32) */ +#undef ACE_LACKS_UNISTD_H + +/* ACE platform has no UNIX domain sockets */ +#undef ACE_LACKS_UNIX_DOMAIN_SOCKETS + +/* Platform lacks full signal support (e.g., Win32 and Chorus). */ +#undef ACE_LACKS_UNIX_SIGNALS + +/* Platform lacks struct utsname (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_UTSNAME_T + +/* Platform lacks wchar_t typedef */ +#undef ACE_LACKS_WCHAR_T + +/* The bind() call will not select the port if it's 0. */ +#undef ACE_LACKS_WILDCARD_BIND + +/* Renames "main (int, char *[])", for platforms such as g++/VxWorks that + don't allow main. Requires the use of ACE_HAS_NONSTATIC_OBJECT_MANAGER. */ +#undef ACE_MAIN + +/* Compile using multi-thread libraries */ +#undef ACE_MT_SAFE + +/* Turns off debugging features */ +#undef ACE_NDEBUG + +/* Necessary with some compilers to pass ACE_TTY_IO as parameter to + DEV_Connector. */ +#undef ACE_NEEDS_DEV_IO_CONVERSION + +/* Required by platforms with small default stacks. */ +#undef ACE_NEEDS_HUGE_THREAD_STACKSIZE + +/* OS has LWPs, and when the priority of a bound thread is set, then the LWP + priority must be set also. */ +#undef ACE_NEEDS_LWP_PRIO_SET + +/* Platform doesn't define readv, so use our own */ +#undef ACE_LACKS_READV + +/* Platform doesn't define writev, so use our own */ +#undef ACE_LACKS_WRITEV + +/* Platform needs regexpr.h for regular expression support */ +#undef ACE_NEEDS_REGEXPR_H + +/* Platform needs to #include <sched.h> to get thread scheduling defs. */ +#undef ACE_LACKS_SCHED_H + +/* <time.h> doesn't automatically #include <sys/time.h> */ +#undef ACE_LACKS_SYSTIME_H + +/* Compiler's 'new' throws exception on failure (ANSI C++ behavior). */ +#undef ACE_NEW_THROWS_EXCEPTIONS + +/* Turns off the LM_DEBUG and LM_ERROR logging macros... */ +#undef ACE_NLOGGING + +/* Turns off the tracing feature. */ +#undef ACE_NTRACE + +/* Defines the page size of the system (not used on Win32 or with + ACE_HAS_GETPAGESIZE). */ +#undef ACE_PAGE_SIZE + +/* Platform redefines the t_... names (UnixWare) */ +#undef ACE_REDEFINES_XTI_FUNCTIONS + +/* Platform uses int for select() rather than fd_set */ +#undef ACE_SELECT_USES_INT + +/* Compiler's template mechanism must use a pragma. This is used for AIX's + C++ compiler. */ +#undef ACE_TEMPLATES_REQUIRE_PRAGMA + +/* Compiler's template mechanim must see source code (i.e., .cpp files). This + is used for GNU G++. */ +#undef ACE_TEMPLATES_REQUIRE_SOURCE + +/* Compiler's template instantiation mechanism supports the use of explicit + C++ specializations for all used templates. This is also used for GNU G++ + if you don't use the "repo" patches. */ +#undef ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION + +/* Compiler's template instantiation mechanism supports the use of + "#pragma instantiate". Edison Design Group compilers, e.g., SGI C++ and + Green Hills 1.8.8 and later, support this. */ +#undef ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA + +/* Compiler requires a definition for a "hidden" function, e.g., a private, + unimplemented copy constructor or assignment operator. The SGI C++ + compiler needs this, in template classes, with + ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA. */ +#undef ACE_NEEDS_FUNC_DEFINITIONS + +/* Device the platform uses for TCP on TLI. Only needed if not /dev/tcp. */ +#undef ACE_TLI_TCP_DEVICE + +/* The OS/platform supports the poll() event demultiplexor */ +#undef ACE_USE_POLL + +/* Platform has broken poll() */ +#undef ACE_POLL_IS_BROKEN + +/* Platform uses assembly symbols instead of C symbols in dlsym() */ +#undef ACE_USES_ASM_SYMBOL_IN_DLSYM + +/* When linking MFC as a static library is desired */ +#undef ACE_USES_STATIC_MFC + +/* Platform has its standard c++ library in the namespace std. */ +#undef ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB + +/* A parameter list indicating the version of WinSock (e.g., "1, 1" is + version 1.1). */ +#undef ACE_WSOCK_VERSION + + + +/* @BOTTOM@ */ +/* All lines below "@BOTTOM@" will be placed at the bottom of config.h.in. */ + + +#endif /* ACE_CONFIG_H */ diff --git a/ace-config.in b/ace-config.in new file mode 100644 index 00000000000..110e452c943 --- /dev/null +++ b/ace-config.in @@ -0,0 +1,207 @@ +#!/bin/sh + +set -e + +prefix=@prefix@ +exec_prefix=@exec_prefix@ + +bindir=@bindir@ +sbindir=@sbindir@ +libexecdir=@libexecdir@ +datadir=@datadir@ +sysconfdir=@sysconfdir@ +sharedstatedir=@sharedstatedir@ +localstatedir=@localstatedir@ +libdir=@libdir@ +infodir=@infodir@ +mandir=@mandir@ +includedir=@includedir@ + +pkgdatadir=${datadir}/@PACKAGE@ +pkglibdir=${libdir}/@PACKAGE@ +pkgincludedir=${includedir}/@PACKAGE@ + +usage() +{ + cat <<EOF +Usage: ace-config [OPTIONS]... [LIBRARY]... + +Generic options + --version output ACE version information + --help display this help and exit + +Compilation support options + --cxx print C++ compiler used for compiling + --cxxflags print C++ pre-processor and compiler flags + --libs print library linking information + --libs-only-L only print the -L/-R part of --libs + --libs-only-l only print the -l part of --libs + +Install directories ace-libs was configured to + --prefix --exec-prefix --bindir --sbindir --libexecdir --datadir + --sysconfdir --sharedstatedir --localstatedir --libdir --infodir + --mandir --includedir + +Known values for LIBRARY are: + + ace + netsvcs + tao (calls tao-config) + +If LIBRARY is none of these, + + ${libdir}/<LIBRARY>Conf.sh + +is looked in for the necessary information. +EOF + + exit $1 +} + +if test $# -eq 0; then + usage 1 +fi + +cxx=false +cxxflags=false +libs_L=false +libs_l=false + +while test $# -gt 0; do + case "$1" in + -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + case $1 in + --version) + echo @PACKAGE@ @VERSION@ + exit 0 + ;; + --exec-prefix) + echo $exec_prefix + exit 0 + ;; + --prefix) + echo $prefix + exit 0 + ;; + --*dir) + dirname=\$`echo $1 | sed -e 's,^--,,'` + dirname=`eval echo $dirname` + test -z "$dirname" && exit 1 + echo $dirname + exit 0 + ;; + --help) + usage 0 + ;; + --cxx) + cxx=true + ;; + --cxxflags) + cxxflags=true + ;; + --libs) + libs_L=true + libs_l=true + ;; + --libs-only-L) + libs_L=true + ;; + --libs-only-l) + libs_l=true + ;; + --*) + usage 1 + ;; + ace) + the_compiler="@CXX@" + the_libs="$the_libs @ACE_LIBDIR@ @ACE_LIBS@" + the_flags="$the_flags @ACE_INCLUDEDIR@ @CXXFLAGS@" + ;; + netsvcs) + echo "Currently unsupported." + exit 1 +# the_libs="$the_libs @ACE_LIBDIR@ @NETSVCS_LIBS@" +# the_flags="$the_flags @ACE_INCLUDEDIR@ @CXXFLAGS@" + ;; + tao) + # The TAO compiler should be the same as ACE's compiler! + the_compiler="`tao-config --cxx tao`" + the_libs="$the_libs `tao-config --libs tao`" + the_flags="$the_flags `tao-config --cxxflags tao`" + ;; + *) + cnf_sh=${libdir}/${1}Conf.sh + if test -f ${cnf_sh}; then + . ${cnf_sh} + up_name=`echo $1 | tr a-z A-Z` + cnf_compiler=\$${up_name}_COMPILER + cnf_libdir=\$${up_name}_LIBDIR + cnf_libs=\$${up_name}_LIBS + cnf_flags=\$${up_name}_INCLUDEDIR + the_compiler="`eval echo $cnf_compiler`" + the_libs="$the_libs `eval echo $cnf_libdir` `eval echo $cnf_libs`" + the_flags="$the_flags `eval echo $cnf_flags`" + else + echo Unknown library \`$1\' 1>&2 + fi + ;; + esac + shift +done + +if $cxx; then + all_flags="$the_compiler" +fi + +if $cxxflags; then + all_flags="$all_flags $the_flags" +fi + +if $libs_L || $libs_l; then + all_flags="$all_flags $the_libs" +fi + +if test -z "$all_flags" || test "x$all_flags" = "x "; then + exit 1 +fi + +# Straight out any possible duplicates, but be careful to +# get `-lfoo -lbar -lbaz' for `-lfoo -lbaz -lbar -lbaz' +other_flags= +lib_L_flags= +rev_libs= +for i in $all_flags; do + case "$i" in + # a library, save it for later, in reverse order + -l*) rev_libs="$i $rev_libs" ;; + -L*|-R*) + if $libs_L; then + case " $lib_L_flags " in + *\ $i\ *) ;; # already there + *) lib_L_flags="$lib_L_flags $i" ;; # add it to output + esac + fi;; + *) + case " $other_flags " in + *\ $i\ *) ;; # already there + *) other_flags="$other_flags $i" ;; # add it to output + esac ;; + esac +done + +ord_libs= +if $libs_l; then + for i in $rev_libs; do + case " $ord_libs " in + *\ $i\ *) ;; # already there + *) ord_libs="$i $ord_libs" ;; # add it to output in reverse order + esac + done +fi + +echo $other_flags $lib_L_flags $ord_libs + +exit 0 diff --git a/ace-diff-config.in b/ace-diff-config.in new file mode 100644 index 00000000000..3ac2c46f335 --- /dev/null +++ b/ace-diff-config.in @@ -0,0 +1,192 @@ +#!/bin/sh + +# ------------------------------------------------------------------------- +# $Id$ +# +# ace-diff-config script - use to compare ACE macro definitions in +# ACE configuration headers +# +# ------------------------------------------------------------------------- + +# Copyright (C) 1998 Ossama Othman +# +# All Rights Reserved +# +# This library is free software; you can redistribute it and/or +# modify it under the current ACE distribution terms. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# This is a script that can be used to determine differences between two ACE +# configuration headers. The file `ACE.ifnames' contains a list of all of the +# identifiers used in ACE's preprocessor conditionals (generated with +# GNU Autoconf's "ifnames" program). The script will go through the list in +# ACE.ifnames and determine if the given macro was defined in only one of the +# two headers being headers being compared. +# +# The C++ pre-processor is used when comparing so that macros from "#included" +# headers will also be checked. + +set -e + +INCLUDES="@top_srcdir@" +CXXCPP="@CXXCPP@ -I. -I$INCLUDES" +MACRO_LIST_FILE="ACE.ifnames" +RESULTS_FILE=ace-diff-config.results +TEST_FILE="ace-diff-config.test.cpp" + +usage() +{ + cat <<EOF +Usage: ace-diff-config HEADER1 HEADER2 + e.g.: ./ace-diff-config ace/config-linux-lxpthreads.h ace/config.h + +EOF + + exit $1 +} + +if test $# -eq 0; then + usage 1 +fi + +if test -f $RESULTS_FILE; then + mv $RESULTS_FILE $RESULTS_FILE.bak +fi + +if test -f $1; then + : +else + echo "error: $1 does not exist" + exit 1 +fi + +if test -f $2; then + : +else + echo "error: $2 does not exist" + exit 1 +fi + +# Process the first header +echo "" +echo -n "Processing $1 " + +echo "Macros that are defined in $1" >> $RESULTS_FILE +echo "but not in $2" >> $RESULTS_FILE +echo "-------------------------------------------------------" >> $RESULTS_FILE + +list=`cat $MACRO_LIST_FILE`; for p in $list; do + # Provide some output + echo -n "." + cat > $TEST_FILE <<EOF + +#include "$1" + +#ifdef $p +DEFINED +#endif + +EOF + + if (eval "$CXXCPP $TEST_FILE") | + egrep "DEFINED" >/dev/null; then + defined=true + else + defined=false + fi + + # now check if it is defined in header #2 + if test $defined = true; then + cat > $TEST_FILE <<EOF + +#include "$2" + +#ifdef $p +DEFINED +#endif + +EOF + + if (eval "$CXXCPP $TEST_FILE") | + egrep "DEFINED" >/dev/null; then + defined=true + else + defined=false + fi + + # if "defined" is false then, the first header is the only header that + # defines the macro. + if test $defined = false; then + echo $p >> $RESULTS_FILE + fi + fi + +done + + +# Process the second header +echo "" +echo -n "Processing $2 " + +echo "" >> $RESULTS_FILE +echo "Macros that are defined in $2" >> $RESULTS_FILE +echo "but not in $1" >> $RESULTS_FILE +echo "-------------------------------------------------------" >> $RESULTS_FILE + +list=`cat $MACRO_LIST_FILE`; for p in $list; do + # Provide some output + echo -n "." + + cat > $TEST_FILE <<EOF + +#include "$2" + +#ifdef $p +DEFINED +#endif + +EOF + + if (eval "$CXXCPP $TEST_FILE") | + egrep "DEFINED" >/dev/null; then + defined=true + else + defined=false + fi + + # now check if it is defined in header #1 + if test $defined = true; then + cat > $TEST_FILE <<EOF + +#include "$1" + +#ifdef $p +DEFINED +#endif + +EOF + + if (eval "$CXXCPP $TEST_FILE") | + egrep "DEFINED" >/dev/null; then + defined=true + else + defined=false + fi + + # if "defined" is false then, the second header is the only header that + # defines the macro. + if test $defined = false; then + echo $p >> $RESULTS_FILE + fi + fi + +done + +rm $TEST_FILE + +echo "" +echo "Results are in $RESULTS_FILE." +echo "" diff --git a/ace/config.h.in b/ace/config.h.in new file mode 100644 index 00000000000..3a4077a9ad4 --- /dev/null +++ b/ace/config.h.in @@ -0,0 +1,1337 @@ +/* ace/config.h.in. Generated automatically from configure.in by autoheader. */ +/* -*- C++ -*- */ +#ifndef ACE_CONFIG_H +#define ACE_CONFIG_H + +/* ACE configuration header file */ + + +/* Define if on AIX 3. + System headers sometimes define this. + We just want to avoid a redefinition error message. */ +#ifndef _ALL_SOURCE +#undef _ALL_SOURCE +#endif + +/* Define if using alloca.c. */ +#undef C_ALLOCA + +/* Define if the closedir function returns void instead of int. */ +#undef CLOSEDIR_VOID + +/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. + This function is required for alloca.c support on those systems. */ +#undef CRAY_STACKSEG_END + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef gid_t + +/* Define if you have alloca, as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ +#undef HAVE_ALLOCA_H + +/* Define if system calls automatically restart after interruption + by a signal. */ +#undef HAVE_RESTARTABLE_SYSCALLS + +/* Define if you have the strftime function. */ +#undef HAVE_STRFTIME + +/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */ +#undef HAVE_SYS_WAIT_H + +/* Define as __inline if that's what the C compiler calls it. */ +#undef inline + +/* Define if on MINIX. */ +#undef _MINIX + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef mode_t + +/* Define if your C compiler doesn't accept -c and -o together. */ +#undef NO_MINUS_C_MINUS_O + +/* Define to `long' if <sys/types.h> doesn't define. */ +#undef off_t + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef pid_t + +/* Define if the system does not provide POSIX.1 features except + with this defined. */ +#undef _POSIX_1_SOURCE + +/* Define if you need to in order for stat and other things to work. */ +#undef _POSIX_SOURCE + +/* Define to `unsigned' if <sys/types.h> doesn't define. */ +#undef size_t + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at run-time. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown + */ +#undef STACK_DIRECTION + +/* Define if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to `int' if <sys/types.h> doesn't define. */ +#undef uid_t + +/* Define if your processor stores words with the most significant + byte first (like Motorola and SPARC, unlike Intel and VAX). */ +#undef WORDS_BIGENDIAN + +/* Define if the X Window System is missing or not being used. */ +#undef X_DISPLAY_MISSING + +/* Define if lex declares yytext as a char * by default, not a char[]. */ +#undef YYTEXT_POINTER + +/* Define _REENTRANT if reentrant functions should be used. */ +#ifndef _REENTRANT +# undef _REENTRANT +#endif + +#ifndef _POSIX_THREADS +# undef _POSIX_THREADS +#endif + +#ifndef _POSIX_THREAD_SAFE_FUNCTIONS +# undef _POSIX_THREAD_SAFE_FUNCTIONS +#endif + +/* Some platforms need _POSIX_PTHREAD_SEMANTICS to make some functions work */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif + +/* Some platforms require _GNU_SOURCE to be defined to make some functions + declaration "visible." */ +#ifndef _GNU_SOURCE +# undef _GNU_SOURCE +#endif + +/* ACE currently doesn't use these; however the configure script does */ +#undef ACE_LACKS_SYSTIMES_H +#undef ACE_LACKS_UNBUFFERED_STREAMBUF +#undef ACE_HAS_STDCPP_STL_INCLUDES + +#undef ACE_HAS_LIBC_H +#undef ACE_HAS_OSFCN_H +#undef ACE_HAS_NEW_NO_H +#undef ACE_HAS_NEW_H +#undef ACE_HAS_STDEXCEPT_NO_H +#undef ACE_HAS_EXCEPTION_H +#undef ACE_HAS_IOMANIP_NO_H + +/* Platform provides <sys/ioctl.h> header */ +#undef ACE_HAS_SYS_IOCTL_H + +/* + * Deprecated! (or soon to be?) + */ +#undef ACE_HAS_OSF1_GETTIMEOFDAY /* timezone* 2nd parameter & no prototype */ +#undef ACE_HAS_LYNXOS_SIGNALS +#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 + +/* AIX specific configuration parameters */ +#undef AIX +#undef _BSD +#undef _BSD_INCLUDES + +/* Cray specific configuration parameters */ +/* + The following predefined macros are used within ACE ifdefs. + These are defined when using the Cray compilers. _CRAYMPP + is defined, for example, if you are running on a Cray T3E + massively parallel machine. Moreover, in the case of the T3E, + _CRAYT3E will be defined. This is used to determine the + ACE_SIZEOF defines for primitive types. + + _UNICOS is defined as either the major version of UNICOS being run, + e.g. 9 or 10 on the vector machines (e.g. C90, T90, J90, YMP, ...) + or the major+minor+level UNICOS/mk version, e.g. 2.0.3 => 203, + being run on an MPP machine. + + _CRAYMPP (defined only if running on MPP machine, e.g. T3E, UNICOS/mk) + _CRAYT3E (defined specifically if compiling on a Cray T3E) + _UNICOS (defined if running UNICOS or UNICOS/mk) + + Contributed by Doug Anderson <doug +clark.net> +*/ +#undef _CRAYMPP +#undef _CRAYT3E +#undef _UNICOS + +/* DG/UX specific configuration parameters */ +#undef ACE_DGUX +#undef _DGUX_SOURCE +#undef _POSIX4A_DRAFT10_SOURCE +#undef _POSIX4_DRAFT_SOURCE + +/* HP/UX specific configuration parameters */ +#undef HPUX +#undef HPUX_10 +#undef HPUX_11 +#undef _HPUX_SOURCE + +/* Irix specific configuration parameters */ +#undef IRIX5 +#undef IRIX6 +#undef _BSD_TYPES +#undef _SGI_MP_SOURCE +#undef _MODERN_C_ + +/* LynxOS specific configuration parameters */ +#undef __NO_INCLUDE_WARN__ +#undef _POSIX_THREADS_CALLS + +/* M88K specific configuration parameters */ +#undef m88k +#undef __m88k__ + +/* NetBSD specific configuration parameters */ +#undef ACE_NETBSD + +/* OSF/1 and Digital Unix specific configuration parameters */ +#undef DEC_CXX +#undef DIGITAL_UNIX + +/* pSOS specific configuration parameters */ +#undef ACE_PSOS +#undef ACE_PSOSIM +#undef ACE_PSOSTBD + +/* SCO specific configuration parameters */ +#undef SCO +#undef _SVID3 + +/* UnixWare specific configuration parameters */ +#undef UNIXWARE +#undef UNIXWARE_2_0 +#undef UNIXWARE_2_1 + +/* VXWorks specific configuration parameters */ +#undef VXWORKS + +/* Win32 specific configuration parameters */ +#undef ACE_WIN32 + +/* ACE internals */ +#undef ACE_DEFAULT_BASE_ADDR +#undef ACE_DEFAULT_BASE_ADDRL +#undef ACE_DEFAULT_CLOSE_ALL_HANDLES +#undef ACE_DEFAULT_MAX_SOCKET_BUFSIZ +#undef ACE_DEFAULT_SELECT_REACTOR_SIZE +#undef ACE_MALLOC_ALIGN +#undef ACE_MAP_PRIVATE +#undef ACE_THR_PRI_FIFO_DEF +#undef ACE_TIMER_SKEW +#undef ACE_UINT64_FORMAT_SPECIFIER +#undef ACE_USE_RCSID +#undef IP_ADD_MEMBERSHIP +#undef IP_DROP_MEMBERSHIP + +/* Specify sizes of given built-in types. If a size isn't defined here, + then ace/Basic_Types.h will attempt to deduce the size. */ +/* #undef ACE_SIZEOF_CHAR */ +#undef ACE_SIZEOF_SHORT +#undef ACE_SIZEOF_INT +#undef ACE_SIZEOF_LONG +#undef ACE_SIZEOF_LONG_LONG +#undef ACE_SIZEOF_VOID_P +#undef ACE_SIZEOF_FLOAT +#undef ACE_SIZEOF_DOUBLE +#undef ACE_SIZEOF_LONG_DOUBLE + +/* typedef for ACE_UINT64 */ +/* + We only make the typedef if ACE_UINT64_TYPEDEF is defined and + ACE_LACKS_LONGLONG_T isn't defined . Otherwise, + let ace/Basic_Types.h do the work for us. ACE_UINT64_TYPEDEF is + defined during the initial configuration process if a 64 bit unsigned int + was found. +*/ +#undef ACE_UINT64_TYPEDEF +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +/* Enable ACE inlining */ +#undef __ACE_INLINE__ + +/* Explicitly disable ACE inlining */ +#undef ACE_NO_INLINE + +/* Enable ACE_Timeprobes */ +#undef ACE_COMPILE_TIMEPROBES + +/* Enable use of GNU template repositories. GNU C++ w/repo patch + and EGCS only */ +#undef ACE_HAS_GNU_REPO + +/* Platform supports new C++ style casts (dynamic_cast, static_cast, + reinterpret_cast and const_cast) */ +#undef ACE_HAS_ANSI_CASTS + +/* Platform supports Asynchronous IO calls */ +#undef ACE_HAS_AIO_CALLS + +/* Number of TSS keys, with ACE_HAS_TSS_EMULATION _only_. Defaults to 64. */ +#undef ACE_DEFAULT_THREAD_KEYS + +/* Specify this if you don't want threads to inherit parent thread's + ACE_Log_Msg properties. */ +#undef ACE_THREADS_DONT_INHERIT_LOG_MSG + +/* OS has priocntl (2) */ +#undef ACE_HAS_PRIOCNTL + +/* Platform has the MIT pthreads APIs for timed send/recv operations */ +#undef ACE_HAS_RECV_TIMEDWAIT +#undef ACE_HAS_RECVFROM_TIMEDWAIT +#undef ACE_HAS_RECVMSG_TIMEDWAIT +#undef ACE_HAS_SEND_TIMEDWAIT +#undef ACE_HAS_SENDTO_TIMEDWAIT +#undef ACE_HAS_SENDMSG_TIMEDWAIT +#undef ACE_HAS_READ_TIMEDWAIT +#undef ACE_HAS_READV_TIMEDWAIT +#undef ACE_HAS_WRITE_TIMEDWAIT +#undef ACE_HAS_WRITEV_TIMEDWAIT + +/* Platform has enum instead of int for first argument to ::{get,set}rlimit (). + The value of this macro is the enum definition, e.g., + enum __rlimit_resource, for Linux glibc 2.0. */ +#undef ACE_HAS_RLIMIT_RESOURCE_ENUM + +/* Platform has enum instead of int for first argument to ::getrusage (). The + value of this macro is the enum definition, e.g., enum __rusage_who, for + Linux glibc 2.0. */ +#undef ACE_HAS_RUSAGE_WHO_ENUM + +/* Used when users want to compile ACE with STL and STL map class conflicts + with <net/if.h> map struct. */ +#undef ACE_HAS_STL_MAP_CONFLICT + +/* Used when users want to compile ACE with STL and STL queue class conflicts + with <netinet/in.h> queue struct. */ +#undef ACE_HAS_STL_QUEUE_CONFLICT + +/* Platform has BSD 4.4 sendmsg()/recvmsg() APIs. */ +#undef ACE_HAS_4_4BSD_SENDMSG_RECVMSG + +/* Platform has pread() and pwrite() support */ +#undef ACE_HAS_P_READ_WRITE + +/* Platform, such as AIX4, needs to wrap #include of sys/socket.h with + #undef/#define of __cplusplus. */ +#undef ACE_HAS_AIX_BROKEN_SOCKET_HEADER + +/* Platform has AIX4 ::read_real_time () */ +#undef ACE_HAS_AIX_HI_RES_TIMER + +/* Compiler/platform supports alloca() */ +#undef ACE_HAS_ALLOCA + +/* Compiler/platform has <alloca.h> */ +#undef ACE_HAS_ALLOCA_H + +/* CPU is an Alpha, with the rpcc instruction to read the tick timer. */ +#undef ACE_HAS_ALPHA_TIMER + +/* Compiler/platform correctly calls init()/fini() for shared libraries */ +#undef ACE_HAS_AUTOMATIC_INIT_FINI + +/* Compiler handles explicit calling of template destructor correctly. + See "ace/OS.h" for details. */ +#undef ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR + +/* Compiler/platform uses macro for ctime (e.g., MVS) */ +#undef ACE_HAS_BROKEN_CTIME + +/* Platform headers don't support <msg.h> prototypes */ +#undef ACE_HAS_BROKEN_MSG_H + +/* HP/UX does not wrap the mmap(2) header files with extern "C". */ +#undef ACE_HAS_BROKEN_MMAP_H + +/* Platform defines struct timespec in <sys/timers.h> */ +#undef ACE_HAS_BROKEN_POSIX_TIME + +/* Platform defines ctime_r, asctime_r, rand_r and getpwnam_r as macros */ +#undef ACE_HAS_BROKEN_R_ROUTINES + +/* Compiler can't handle the static ACE_Addr::sap_any construct. */ +#undef ACE_HAS_BROKEN_SAP_ANY + +/* OS/compiler omits the const from the sendmsg() prototype. */ +#undef ACE_HAS_BROKEN_SENDMSG + +/* OS/compiler omits the const from the rlimit parameter in the setrlimit() + prototype. */ +#undef ACE_HAS_BROKEN_SETRLIMIT + +/* Platform doesn't define _terrno() even though it should (only for TLI) */ +#undef ACE_HAS_BROKEN_T_ERRNO + +/* platform define struct timespec members as ts_sec and ts_nsec instead of + tv_sec and tv_nsec. This is highly non-portable. Currently only + FreeBSD 2.1.x uses it. */ +#undef ACE_HAS_BROKEN_TIMESPEC_MEMBERS + +/* OS/compiler omits the const from the iovec parameter in the writev() + prototype. */ +#undef ACE_HAS_BROKEN_WRITEV + +/* Platform has <bstring.h> (which contains bzero() prototype) */ +#undef ACE_HAS_BSTRING + +/* Platform has <bytesex.h>. */ +#undef ACE_HAS_BYTESEX_H + +/* Platform supports the Win32 CancelIO() function (WinNT 4.0 and beyond). */ +#undef ACE_HAS_CANCEL_IO + +/* OS/platform uses char * for dlopen/dlsym args, rather than const char *. */ +#undef ACE_HAS_CHARPTR_DL + +/* OS/platform uses char * for sockopt, rather than const char * */ +#undef ACE_HAS_CHARPTR_SOCKOPT + +/* sprintf() returns char * rather than int (e.g., SunOS 4.x) */ +#undef ACE_HAS_CHARPTR_SPRINTF + +/* Platform supports POSIX 1.b clock_gettime () */ +#undef ACE_HAS_CLOCK_GETTIME + +/* Prototypes for both signal() and struct sigaction are consistent. */ +#undef ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES + +/* Compiler/platform has correctly prototyped header files */ +#undef ACE_HAS_CPLUSPLUS_HEADERS + +/* Platform has cygwin32 socket.h */ +#undef ACE_HAS_CYGWIN32_SOCKET_H + +/* Platform supports operations on directories via struct dirent, + readdir_r, etc. */ +#undef ACE_HAS_DIRENT + +/* For platforms, e.g., RedHat 4.2/Linux 2.0.30/Alpha, that don't declare dl* + functions as extern "C" in dlfcn.h.*/ +#undef ACE_HAS_DLFCN_H_BROKEN_EXTERN_C + +/* Compiler supports C++ exception handling */ +#undef ACE_HAS_EXCEPTIONS + +/* Platform supports getpagesize() call (otherwise, ACE_PAGE_SIZE must be + defined, except on Win32) */ +#undef ACE_HAS_GETPAGESIZE + +/* Platform supports the getrusage() system call. */ +#undef ACE_HAS_GETRUSAGE + +/* Platform has a getrusage () prototype in sys/resource.h that differs from + the one in ace/OS.i. */ +#undef ACE_HAS_GETRUSAGE_PROTO + +/* GNUC 2.7.3 mistakenly takes the template definition as the place where an + inline function of an argument class is first used. */ +#undef ACE_HAS_GNUC_BROKEN_TEMPLATE_INLINE_FUNCTIONS + +/* Denotes that GNU has cstring.h as standard which redefines memchr() */ +#undef ACE_HAS_GNU_CSTRING_H + +/* The GPERF utility is compiled for this platform */ +#undef ACE_HAS_GPERF + +/* Optimize ACE_Handle_Set::count_bits for select() operations (common case) */ +#undef ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT + +/* Compiler/platform supports SunOS high resolution timers */ +#undef ACE_HAS_HI_RES_TIMER + +/* Compiler/platform supports idtype_t. */ +#undef ACE_HAS_IDTYPE_T + +/* Inline all the static class OS methods to remove call overhead */ +/* Note: This gets defined by OS.h if __ACE_INLINE__ is defined */ +#undef ACE_HAS_INLINED_OSCALLS + +/* Platform supports IP multicast */ +#undef ACE_HAS_IP_MULTICAST + +/* Platform supports the very odd IRIX 6.2 threads... */ +#undef ACE_HAS_IRIX62_THREADS + +/* Causes the ACE_Object_Manager instance to be created in + main (int, char *[]), instead of as a static (global) instance. */ +#undef ACE_HAS_NONSTATIC_OBJECT_MANAGER + +/* Platform supports thr_keydelete (e.g,. UNIXWARE) */ +#undef ACE_HAS_THR_KEYDELETE + +/* Platform calls thr_minstack() rather than thr_min_stack() (e.g., Tandem). */ +#undef ACE_HAS_THR_MINSTACK + +/* The rusage_t structure has only two fields. */ +#undef ACE_HAS_LIMITED_RUSAGE_T + +/* Compiler/platform has "big" fd_set, i.e. large number of bits set + in fd_set passed back from select(). */ +#undef ACE_HAS_BIG_FD_SET + +/* Platform defines MAP_FAILED as a long constant. */ +#undef ACE_HAS_LONG_MAP_FAILED + +/* Enabled malloc statistics collection. */ +#undef ACE_HAS_MALLOC_STATS + +/* Avoid #including ace/streams.h in OS.h. Users must include ace/streams.h, + <iostream>, or <iostream.h> explicitly in their code. Some platforms, such + as g++/VxWorks, have trouble compiling templates and iostreams header + because of static variables in the stream headers. This flag will also + avoid extra compilation and runtime overheads on some platforms. */ +#undef ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION + +/* Platform supports recvmsg and sendmsg */ +#undef ACE_HAS_MSG + +/* Platform uses non-const char * in calls to gethostbyaddr, gethostbyname, + getservbyname */ +#undef ACE_HAS_NONCONST_GETBY + +/* Platform has a non-const parameter to msgsnd() (e.g., SCO). */ +#undef ACE_HAS_NONCONST_MSGSND + +/* Platform's select() uses non-const timeval* (only found on Linux right + now) */ +#undef ACE_HAS_NONCONST_SELECT_TIMEVAL + +/* Platform has "old" GNU compiler, i.e. does not completely support + standard C++. (compiling with g++ prior to version 2.8.0) */ +#undef ACE_HAS_GNUG_PRE_2_8 + +/* Compiler/platform uses old malloc()/free() prototypes (ugh) */ +#undef ACE_HAS_OLD_MALLOC + +/* Uses ctime_r & asctime_r with only two parameters vs. three. */ +#undef ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R + +/* Platform, e.g., Solaris 2.5, only supports SCHED_OTHER POSIX scheduling + policy. */ +#undef ACE_HAS_ONLY_SCHED_OTHER + +/* Platform supports the OSF TLI timod STREAMS module */ +#undef ACE_HAS_OSF_TIMOD_H + +/* Platform is an Intel Pentium microprocessor. */ +#undef ACE_HAS_PENTIUM + +/* Platform contains <poll.h> */ +#undef ACE_HAS_POLL + +/* Platform supports POSIX O_NONBLOCK semantics */ +#undef ACE_HAS_POSIX_NONBLOCK + +/* Platform supports POSIX real-time semaphores (e.g., VxWorks and Solaris) */ +#undef ACE_HAS_POSIX_SEM + +/* Platform supports the POSIX struct timespec type */ +#undef ACE_HAS_POSIX_TIME + +/* Platform supports the /proc file system and defines tid_t + in <sys/procfs.h> */ +#undef ACE_HAS_PROC_FS + +/* Platform supports PowerPC time-base register. */ +#undef ACE_HAS_POWERPC_TIMER + +/* Platform supports the prusage_t struct */ +#undef ACE_HAS_PRUSAGE_T + +/* Platform supports POSIX Threads */ +#undef ACE_HAS_PTHREADS + +/* Platform supports POSIX Threads .4a Draft 4 */ +#undef ACE_HAS_PTHREADS_DRAFT4 + +/* Platform supports POSIX Threads .4a Draft 6 */ +#undef ACE_HAS_PTHREADS_DRAFT6 + +/* Platform supports POSIX Threads .1c Draft 7 */ +#undef ACE_HAS_PTHREADS_DRAFT7 + +/* Platform supports POSIX.1c-1995 threads */ +#undef ACE_HAS_PTHREADS_STD + +/* Platform has pthread_sigmask() defined. */ +#undef ACE_HAS_PTHREAD_SIGMASK + +/* Platform will recurse infinitely on thread exits from TSS cleanup routines + (e.g., AIX) */ +#undef ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS + +/* Platform supports reentrant functions (i.e., all the POSIX *_r + functions). */ +#undef ACE_HAS_REENTRANT_FUNCTIONS + +/* Solaris for intel uses macros for fstat() and stat(), these are wrappers for + _fxstat() and _xstat() uses of the macros. Causes compile and runtime + problems. */ +#undef ACE_HAS_X86_STAT_MACROS + +/* Platform has support for multi-byte character support compliant with the + XPG4 Worldwide Portability Interface wide-character classification. */ +#undef ACE_HAS_XPG4_MULTIBYTE_CHAR + +/* Compiler/platform lacks the standard C library bsearch() function */ +#undef ACE_LACKS_BSEARCH + +/* Platform has ACE_HAS_4_4BSD_SENDMSG_RECVMSG but does not define + CMSG_DATA (cmsg) macro. */ +#undef ACE_LACKS_CMSG_DATA_MACRO + +/* Platform has ACE_HAS_4_4BSD_SENDMSG_RECVMSG but its cmsghdr structure does + not contain an 'unsigned char cmsg_data[0]' member. (This may be + 'unsigned char __cmsg_data[0]' on some platforms, in which case we need + another macro.) */ +#undef ACE_LACKS_CMSG_DATA_MEMBER + +/* Compiler/platform lacks the standard C library qsort() function */ +#undef ACE_LACKS_QSORT + +/* Platform lacks POSIX-style fcntl () */ +#undef ACE_LACKS_FCNTL + +/* Platform lacks fsync() */ +#undef ACE_LACKS_FSYNC + +/* Compiler does not support dynamic_cast. Usually used + with ACE_HAS_ANSI_CASTS */ +#undef ACE_LACKS_RTTI + +/* Platform lacks readdir_r() */ +#undef ACE_LACKS_READDIR_R + +/* Platform lacks seekdir() */ +#undef ACE_LACKS_SEEKDIR + +/* Platform lacks telldir() */ +#undef ACE_LACKS_TELLDIR + +/* Platform can't handle "inline" keyword correctly. */ +#undef ACE_LACKS_INLINE_FUNCTIONS + +/* Iostreams are not supported adequately on the given platform. */ +#undef ACE_LACKS_IOSTREAM_TOTALLY + +/* Platform does not support reentrant netdb functions (getprotobyname_r, + getprotobynumber_r, gethostbyaddr_r, gethostbyname_r, getservbyname_r). */ +#undef ACE_LACKS_NETDB_REENTRANT_FUNCTIONS + +/* Platform supports the POSIX regular expression library */ +#undef ACE_HAS_REGEX + +/* Platform has special header for select(). */ +#undef ACE_HAS_SELECT_H + +/* Compiler/platform defines a union semun for SysV shared memory */ +#undef ACE_HAS_SEMUN + +/* Platform has a function to set t_errno (e.g., Tandem). */ +#undef ACE_HAS_SET_T_ERRNO + +/* Platform supports SVR4 extended signals */ +#undef ACE_HAS_SIGINFO_T + +/* Platform/compiler has macros for sig{empty,fill,add,del}set (e.g., SCO and + FreeBSD) */ +#undef ACE_HAS_SIG_MACROS + +/* Platform supports the Win32 SignalObjectAndWait() function (WinNT 4.0 and + beyond). */ +#undef ACE_HAS_SIGNAL_OBJECT_AND_WAIT + +/* Automatically restart OS system calls when EINTR occurs */ +#undef ACE_HAS_SIGNAL_SAFE_OS_CALLS + +/* Platform/compiler has the sigwait(2) prototype */ +#undef ACE_HAS_SIGWAIT + +/* Compiler/platform defines the sig_atomic_t typedef */ +#undef ACE_HAS_SIG_ATOMIC_T + +/* Platform supports new BSD inet_addr len field. */ +#undef ACE_HAS_SIN_LEN + +/* OS/compiler uses size_t * rather than int * for socket lengths */ +#undef ACE_HAS_SIZET_SOCKET_LEN + +/* Platform requires (struct sockaddr *) for msg_name field of + struct msghdr. */ +#undef ACE_HAS_SOCKADDR_MSG_NAME + +/* Compiler/platform provides the sys/sockio.h file */ +#undef ACE_HAS_SOCKIO_H + +/* Platform provides socklen_t type, such as Linux with glibc2. */ +#undef ACE_HAS_SOCKLEN_T + +/* Compiler has brain-damaged SPARCwork SunOS 4.x signal prototype... */ +#undef ACE_HAS_SPARCWORKS_401_SIGNALS + +/* Compiler supports the ssize_t typedef */ +#undef ACE_HAS_SSIZE_T + +/* Platform supports UNIX International Threads */ +#undef ACE_HAS_STHREADS + +/* Platform has thr_yield() */ +#undef ACE_HAS_THR_YIELD + +/* Platform/compiler supports Standard C++ Library */ +#undef ACE_HAS_STANDARD_CPP_LIBRARY + +/* Compiler/platform supports struct strbuf */ +#undef ACE_HAS_STRBUF_T + +/* Platform/compiler lacks strdup() (e.g., VxWorks, Chorus, WinCE) */ +#undef ACE_HAS_STRDUP_EMULATION + +/* Platform supports STREAMS */ +#undef ACE_HAS_STREAMS + +/* Platform supports STREAM pipes */ +#undef ACE_HAS_STREAM_PIPES + +/* Compiler/platform supports strerror () */ +#undef ACE_HAS_STRERROR + +/* Platform/Compiler supports a String class (e.g., GNU or Win32). */ +#undef ACE_HAS_STRING_CLASS + +/* Platform has <strings.h> (which contains bzero() prototype) */ +#undef ACE_HAS_STRINGS + +/* Platform has void * as second parameter to gettimeofday and a has a + prototype */ +#undef ACE_HAS_SUNOS4_GETTIMEOFDAY + +/* Compiler has horrible SunOS 4.x signal handlers... */ +#undef ACE_HAS_SUNOS4_SIGNAL_T + +/* Compiler/platform supports SVR4 dynamic linking semantics */ +#undef ACE_HAS_SVR4_DYNAMIC_LINKING + +/* Compiler/platform supports SVR4 gettimeofday() prototype but doesn't have + a prototype */ +#undef ACE_HAS_SVR4_GETTIMEOFDAY + +/* Compiler/platform supports SVR4 signal typedef */ +#undef ACE_HAS_SVR4_SIGNAL_T + +/* Compiler/platform supports SVR4 TLI (in particular, T_GETNAME stuff)... */ +#undef ACE_HAS_SVR4_TLI + +/* Compiler/platform contains the <sys/syscall.h> file. */ +#undef ACE_HAS_SYSCALL_H + +/* Platform provides <sysent.h> header */ +#undef ACE_HAS_SYSENT_H + +/* Platform supports system configuration information */ +#undef ACE_HAS_SYSINFO + +/* Platform supports System V IPC (most versions of UNIX, but not Win32) */ +#undef ACE_HAS_SYSV_IPC + +/* Platform/compiler supports _sys_errlist symbol */ +#undef ACE_HAS_SYS_ERRLIST + +/* Platform provides <sys/filio.h> header */ +#undef ACE_HAS_SYS_FILIO_H + +/* Compiler/platform supports _sys_siglist array */ +#undef ACE_HAS_SYS_SIGLIST + +/* Platform provides <sys/xti.h> header */ +#undef ACE_HAS_SYS_XTI_H + +/* Compiler implements template specialization */ +#undef ACE_HAS_TEMPLATE_SPECIALIZATION + +/* Compiler implements templates that support typedefs inside of classes used + as formal arguments to a template class. */ +#undef ACE_HAS_TEMPLATE_TYPEDEFS + +/* Platform has terminal ioctl flags like TCGETS and TCSETS. */ +#undef ACE_HAS_TERM_IOCTLS + +/* Platform supports threads */ +#undef ACE_HAS_THREADS + +/* Platform has thread_self() rather than pthread_self() (e.g., DCETHREADS + and AIX) */ +#undef ACE_HAS_THREAD_SELF + +/* Compiler/platform has thread-specific storage */ +#undef ACE_HAS_THREAD_SPECIFIC_STORAGE + +/* Platform/compiler supports timezone * as second parameter to + gettimeofday() and has a prototype*/ +#und + +/* Platform supports TLI timod STREAMS module */ +#undef ACE_HAS_TIMOD_H + +/* Platform supports TLI tiuser header */ +#undef ACE_HAS_TIUSER_H + +/* Platform does not protect <tiuser.h> with extern "C" */ +#undef ACE_HAS_TIUSER_H_BROKEN_EXTERN_C + +/* Platform supports TLI. Also see ACE_TLI_TCP_DEVICE. */ +#undef ACE_HAS_TLI + +/* Platform provides TLI function prototypes */ +#undef ACE_HAS_TLI_PROTOTYPES + +/* ACE provides TSS emulation. See also ACE_DEFAULT_THREAD_KEYS. */ +#undef ACE_HAS_TSS_EMULATION + +/* Platform supports ualarm() */ +#undef ACE_HAS_UALARM + +/* Platform supports ucontext_t (which is used in the extended signal API). */ +#undef ACE_HAS_UCONTEXT_T + +/* The wait() system call takes a (union wait *) rather than int * */ +#undef ACE_HAS_UNION_WAIT + +/* Has inconsistent SVR4 signal stuff, but not the same as the other + platforms */ +#undef ACE_HAS_UNIXWARE_SVR4_SIGNAL_T + +/* Platform has <utime.h> header file */ +#undef ACE_HAS_UTIME + +/* Compiler supports the C++ typename keyword */ +#undef ACE_HAS_TYPENAME_KEYWORD + +/* Compiler supports the new using keyword for C++ namespaces. */ +#undef ACE_HAS_USING_KEYWORD + +/* Prints out console message in ACE_NOTSUP. Useful for tracking down origin + of ACE_NOTSUP. */ +#undef ACE_HAS_VERBOSE_NOTSUP + +/* Platform requires void * for mmap(). */ +#undef ACE_HAS_VOIDPTR_MMAP + +/* OS/compiler uses void * arg 4 setsockopt() rather than const char * */ +#undef ACE_HAS_VOIDPTR_SOCKOPT + +/* The Win32 platform support TryEnterCriticalSection() (WinNT 4.0 and + beyond) */ +#undef ACE_HAS_WIN32_TRYLOCK + +/* Platform has the XLI version of TLI */ +#undef ACE_HAS_XLI + +/* Platform has Xt Intrinsics Toolkit */ +#undef ACE_HAS_XT + +/* Platform does not have Motif X toolkit available */ +#undef ACE_LACKS_MOTIF + +/* Platform has XTI (X/Open-standardized superset of TLI). Implies + ACE_HAS_TLI but uses a different header file. */ +#undef ACE_HAS_XTI + +/* Platform lacks access() (e.g., VxWorks and Chorus) */ +#undef ACE_LACKS_ACCESS + +/* Platform can not build ace/IOStream{,_T}.cpp. This does not necessarily + mean that the platform does not support iostreams. */ +#undef ACE_LACKS_ACE_IOSTREAM + +/* Platform lacks condition variables (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_COND_T + +/* pthread_cond_timedwait does *not* reset the time argument when + the lock is acquired. */ +#undef ACE_LACKS_COND_TIMEDWAIT_RESET + +/* Platform has no implementation of pthread_condattr_setpshared(), even + though it supports pthreads! */ +#undef ACE_LACKS_CONDATTR_PSHARED + +/* Platform uses struct strbuf * rather than const struct strbuf * (e.g., + HP/UX 10.x) */ +#undef ACE_LACKS_CONST_STRBUF_PTR + +/* Platform lacks difftime() implementation */ +#undef ACE_LACKS_DIFFTIME + +/* Platform lacks the exec() family of system calls (e.g., Win32, VxWorks, + Chorus) */ +#undef ACE_LACKS_EXEC + +/* Platform lacks file locking mechanism */ +#undef ACE_LACKS_FILELOCKS + +/* Platform does not support floating point operations */ +#undef ACE_LACKS_FLOATING_POINT + +/* Platform lacks the fork() system call (e.g., Win32, VxWorks, Chorus) */ +#undef ACE_LACKS_FORK + +/* Platform lacks the getopt() prototype (e.g., LynxOS) */ +#undef ACE_LACKS_GETOPT_PROTO + +/* Platform lacks getpgid() call (e.g., Win32, Chorus, and FreeBSD). */ +#undef ACE_LACKS_GETPGID + +/* iostream header does not declare ipfx (), opfx (), etc. */ +#undef ACE_LACKS_IOSTREAM_FX + +/* Platform lacks streambuf "linebuffered ()". */ +#undef ACE_LACKS_LINEBUFFERED_STREAMBUF + +/* Compiler/platform does not support the unsigned long long datatype. */ +#undef ACE_LACKS_LONGLONG_T + +/* Platform lacks the lstat() function. */ +#undef ACE_LACKS_LSTAT + +/* Platform does not have u_longlong_t typedef */ +#undef ACE_LACKS_U_LONGLONG_T + +/* Platform lacks madvise() (e.g., Linux) */ +#undef ACE_LACKS_MADVISE + +/* Platform lacks malloc.h */ +#undef ACE_LACKS_MALLOC_H + +/* Platform lacks memory.h (e.g., VxWorks and Chorus) */ +#undef ACE_LACKS_MEMORY_H + +/* Platform lacks mkfifo(), e.g. VxWorks, Chorus, pSoS, and WinNT. */ +#undef ACE_LACKS_MKFIFO + +/* ACE has no mktemp() */ +#undef ACE_LACKS_MKTEMP + +/* The platform doesn't have mmap(2) (e.g., SCO UNIX). */ +#undef ACE_LACKS_MMAP + +/* Platform/compiler doesn't have open() mode masks. */ +#undef ACE_LACKS_MODE_MASKS + +/* The platform doesn't have mprotect(2) (e.g., EPLX real time OS from CDC + (based on LYNX)) */ +#undef ACE_LACKS_MPROTECT + +/* Platform defines ACE_HAS_MSG, but lacks msg_accrights{,len}. */ +#undef ACE_LACKS_MSG_ACCRIGHTS + +/* Platform lacks struct msgbuf (e.g., NT and MSV). */ +#undef ACE_LACKS_MSGBUF_T + +/* Platform lacks msync() */ +#undef ACE_LACKS_MSYNC + +/* Platform doesn't support "sync" third argument to msync (?) */ +#undef ACE_HAS_BROKEN_NETBSD_MSYNC + +/* Platform doesn't support tempnam */ +#undef ACE_LACKS_TEMPNAM + +/* Platform lacks pthread_mutexattr_setpshared(). */ +#undef ACE_LACKS_MUTEXATTR_PSHARED + +/* Platform lacks <sys/param.h> (e.g., MVS) */ +#undef ACE_LACKS_PARAM_H + +/* Platform lacks named POSIX semaphores (e.g., Chorus) */ +#undef ACE_LACKS_NAMED_POSIX_SEM + +/* Platform/compiler lacks {get,set}rlimit() function (e.g., VxWorks, Chorus, + and SCO UNIX) */ +#undef ACE_LACKS_RLIMIT + +/* Platform/compiler lacks {get,set}rlimit() prototypes (e.g., Tandem) */ +#undef ACE_LACKS_RLIMIT_PROTOTYPE + +/* Platform lacks POSIX prototypes for certain System V functions like shared + memory and message queues. */ +#undef ACE_LACKS_SOME_POSIX_PROTOTYPES + +/* Compiler complains about "#pragma once" */ +#undef ACE_LACKS_PRAGMA_ONCE + +/* Platform lacks pri_t (e.g., Tandem NonStop UNIX). */ +#undef ACE_LACKS_PRI_T + +/* Platform lack pthread_attr_setstackaddr() */ +#undef ACE_LACKS_THREAD_STACK_ADDR + +/* Platform lacks pthread_cancel(). */ +#undef ACE_LACKS_PTHREAD_CANCEL + +/* Platform lacks pthread_thr_sigsetmask (e.g., MVS, HP/UX, and OSF/1 3.2) */ +#undef ACE_LACKS_PTHREAD_THR_SIGSETMASK + +/* Platfrom lack pthread_yield() support. */ +#undef ACE_LACKS_PTHREAD_YIELD + +/* Platform lacks, getpwnam(), etc. */ +#undef ACE_LACKS_PWD_FUNCTIONS + +/* Platform lacks getpwnam_r() methods (e.g., SGI 6.2). */ +#undef ACE_LACKS_PWD_REENTRANT_FUNCTIONS + +/* Platform lacks the readlink() function. */ +#undef ACE_LACKS_READLINK + +/* Platform lacks recvmsg() */ +#undef ACE_LACKS_RECVMSG + +/* Platform lacks readers/writer locks. */ +#undef ACE_LACKS_RWLOCK_T + +/* Platform lacks a working sbrk() (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_SBRK + +/* Platform lacks struct sembuf (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_SEMBUF_T + +/* Platform lacks pthread_attr_setdetachstate() (e.g., HP/UX 10.x) */ +#undef ACE_LACKS_SETDETACH + +/* Platform lacks pthread_attr_setsched() (e.g. MVS) */ +#undef ACE_LACKS_SETSCHED + +/* Platform lacks struct sigaction (e.g., Win32 and Chorus) */ +#undef ACE_LACKS_SIGACTION + +/* Platform lacks "signed char" type (broken!) */ +#undef ACE_LACKS_SIGNED_CHAR + +/* Platform lacks signal sets (e.g., Chorus and Win32) */ +#undef ACE_LACKS_SIGSET + +/* Platform/compiler lacks strrchr () function. */ +#undef ACE_LACKS_STRRCHR + +/* Platforms/compiler lacks the sys_nerr variable (e.g., VxWorks and MVS). */ +#undef ACE_LACKS_SYS_NERR + +/* Platform lacks sys/msg.h (e.g., Chorus and VxWorks) */ +#undef ACE_LACKS_SYSV_MSG_H + +/* Platform lacks key_t (e.g., Chorus, VxWorks, Win32) */ +#undef ACE_LACKS_KEY_T + +/* Platform lacks sendmsg() */ +#undef ACE_LACKS_SENDMSG + +/* Platform lacks the si_addr field of siginfo_t (e.g., VxWorks and + HP/UX 10.x) */ +#undef ACE_LACKS_SI_ADDR + +/* Platform lacks System V shared memory (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_SYSV_SHMEM + +/* Platform lacks the siginfo.h include file (e.g., MVS) */ +#undef ACE_LACKS_SIGINFO_H + +/* Platform doesn't support SO_SNDBUF/SO_RCVBUF (used in TAO) */ +#undef ACE_LACKS_SOCKET_BUFSIZ + +/* Platform lacks the socketpair() call (e.g., SCO UNIX) */ +#undef ACE_LACKS_SOCKETPAIR + +/* Compiler doesn't support static data member templates */ +#undef ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES + +/* Compiler/platform lacks strcasecmp() (e.g., DG/UX, UNIXWARE, VXWORKS) */ +#undef ACE_LACKS_STRCASECMP + +/* Platform doesn't define struct strrecvfd. */ +#undef ACE_LACKS_STRRECVFD + +/* Platform doesn't have syscall() prototype */ +#undef ACE_LACKS_SYSCALL + +/* Platform lacks <sys/type> header file */ +#undef ACE_LACKS_SYS_TYPES_H + +/* Header files lack t_errno for TLI */ +#undef ACE_LACKS_T_ERRNO + +/* Platform doesn't have netinet/tcp.h */ +#undef ACE_LACKS_TCP_H + +/* Platform lacks pthread_attr_setscope() */ +#undef ACE_LACKS_THREAD_PROCESS_SCOPING + +/* Platform lacks pthread_attr_setstacksize() (e.g., Linux pthreads) */ +#undef ACE_LACKS_THREAD_STACK_SIZE + +/* MIT pthreads platform lacks the timedwait prototypes */ +#undef ACE_LACKS_TIMEDWAIT_PROTOTYPES + +/* Platform does not define timepec_t as a typedef for struct timespec. */ +#undef ACE_LACKS_TIMESPEC_T + +/* Platform doesn't have truncate() (e.g., vxworks) */ +#undef ACE_LACKS_TRUNCATE + +/* Platform/compiler lacks the ualarm() prototype (e.g., Solaris) */ +#undef ACE_LACKS_UALARM_PROTOTYPE + +/* Platform lacks the ucontext.h file */ +#undef ACE_LACKS_UCONTEXT_H + +/* Platform lacks the unistd.h file (e.g., VxWorks and Win32) */ +#undef ACE_LACKS_UNISTD_H + +/* ACE platform has no UNIX domain sockets */ +#undef ACE_LACKS_UNIX_DOMAIN_SOCKETS + +/* Platform lacks full signal support (e.g., Win32 and Chorus). */ +#undef ACE_LACKS_UNIX_SIGNALS + +/* Platform lacks struct utsname (e.g., Win32 and VxWorks) */ +#undef ACE_LACKS_UTSNAME_T + +/* Platform lacks wchar_t typedef */ +#undef ACE_LACKS_WCHAR_T + +/* The bind() call will not select the port if it's 0. */ +#undef ACE_LACKS_WILDCARD_BIND + +/* Renames "main (int, char *[])", for platforms such as g++/VxWorks that + don't allow main. Requires the use of ACE_HAS_NONSTATIC_OBJECT_MANAGER. */ +#undef ACE_MAIN + +/* Compile using multi-thread libraries */ +#undef ACE_MT_SAFE + +/* Turns off debugging features */ +#undef ACE_NDEBUG + +/* Required by platforms with small default stacks. */ +#undef ACE_NEEDS_HUGE_THREAD_STACKSIZE + +/* OS has LWPs, and when the priority of a bound thread is set, then the LWP + priority must be set also. */ +#undef ACE_NEEDS_LWP_PRIO_SET + +/* Platform doesn't define readv, so use our own */ +#undef ACE_LACKS_READV + +/* Platform doesn't define writev, so use our own */ +#undef ACE_LACKS_WRITEV + +/* Platform needs regexpr.h for regular expression support */ +#undef ACE_NEEDS_REGEXPR_H + +/* Platform needs to #include <sched.h> to get thread scheduling defs. */ +#undef ACE_LACKS_SCHED_H + +/* <time.h> doesn't automatically #include <sys/time.h> */ +#undef ACE_LACKS_SYSTIME_H + +/* Compiler's 'new' throws exception on failure (ANSI C++ behavior). */ +#undef ACE_NEW_THROWS_EXCEPTIONS + +/* Turns off the LM_DEBUG and LM_ERROR logging macros... */ +#undef ACE_NLOGGING + +/* Turns off the tracing feature. */ +#undef ACE_NTRACE + +/* Defines the page size of the system (not used on Win32 or with + ACE_HAS_GETPAGESIZE). */ +#undef ACE_PAGE_SIZE + +/* Platform uses int for select() rather than fd_set */ +#undef ACE_SELECT_USES_INT + +/* Compiler's template mechanism must use a pragma. This is used for AIX's + C++ compiler. */ +#undef ACE_TEMPLATES_REQUIRE_PRAGMA + +/* Compiler's template mechanim must see source code (i.e., .cpp files). This + is used for GNU G++. */ +#undef ACE_TEMPLATES_REQUIRE_SOURCE + +/* Compiler's template instantiation mechanism supports the use of explicit + C++ specializations for all used templates. This is also used for GNU G++ + if you don't use the "repo" patches. */ +#undef ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION + +/* Compiler's template instantiation mechanism supports the use of + "#pragma instantiate". Edison Design Group compilers, e.g., SGI C++ and + Green Hills 1.8.8 and later, support this. */ +#undef ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA + +/* Compiler requires a definition for a "hidden" function, e.g., a private, + unimplemented copy constructor or assignment operator. The SGI C++ + compiler needs this, in template classes, with + ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA. */ +#undef ACE_NEEDS_FUNC_DEFINITIONS + +/* Device the platform uses for TCP on TLI. Only needed if not /dev/tcp. */ +#undef ACE_TLI_TCP_DEVICE + +/* The OS/platform supports the poll() event demultiplexor */ +#undef ACE_USE_POLL + +/* Platform has broken poll() */ +#undef ACE_POLL_IS_BROKEN + +/* Platform has its standard c++ library in the namespace std. */ +#undef ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB + +/* The number of bytes in a double. */ +#undef SIZEOF_DOUBLE + +/* The number of bytes in a float. */ +#undef SIZEOF_FLOAT + +/* The number of bytes in a int. */ +#undef SIZEOF_INT + +/* The number of bytes in a long. */ +#undef SIZEOF_LONG + +/* The number of bytes in a long double. */ +#undef SIZEOF_LONG_DOUBLE + +/* The number of bytes in a long long. */ +#undef SIZEOF_LONG_LONG + +/* The number of bytes in a short. */ +#undef SIZEOF_SHORT + +/* The number of bytes in a signed char. */ +#undef SIZEOF_SIGNED_CHAR + +/* The number of bytes in a void *. */ +#undef SIZEOF_VOID_P + +/* Define if you have the execv function. */ +#undef HAVE_EXECV + +/* Define if you have the execve function. */ +#undef HAVE_EXECVE + +/* Define if you have the execvp function. */ +#undef HAVE_EXECVP + +/* Define if you have the <dirent.h> header file. */ +#undef HAVE_DIRENT_H + +/* Define if you have the <fstream> header file. */ +#undef HAVE_FSTREAM + +/* Define if you have the <iomanip> header file. */ +#undef HAVE_IOMANIP + +/* Define if you have the <ios> header file. */ +#undef HAVE_IOS + +/* Define if you have the <iostream> header file. */ +#undef HAVE_IOSTREAM + +/* Define if you have the <istream> header file. */ +#undef HAVE_ISTREAM + +/* Define if you have the <ndir.h> header file. */ +#undef HAVE_NDIR_H + +/* Define if you have the <ostream> header file. */ +#undef HAVE_OSTREAM + +/* Define if you have the <pwd.h> header file. */ +#undef HAVE_PWD_H + +/* Define if you have the <streambuf> header file. */ +#undef HAVE_STREAMBUF + +/* Define if you have the <sys/dir.h> header file. */ +#undef HAVE_SYS_DIR_H + +/* Define if you have the <sys/ndir.h> header file. */ +#undef HAVE_SYS_NDIR_H + +/* Define if you have the aio library (-laio). */ +#undef HAVE_LIBAIO + +/* Define if you have the c_r library (-lc_r). */ +#undef HAVE_LIBC_R + +/* Define if you have the dld library (-ldld). */ +#undef HAVE_LIBDLD + +/* Define if you have the exc library (-lexc). */ +#undef HAVE_LIBEXC + +/* Define if you have the gen library (-lgen). */ +#undef HAVE_LIBGEN + +/* Define if you have the nsl library (-lnsl). */ +#undef HAVE_LIBNSL + +/* Define if you have the socket library (-lsocket). */ +#undef HAVE_LIBSOCKET + +/* Define if you have the xnet library (-lxnet). */ +#undef HAVE_LIBXNET + +/* Define if you have the xti library (-lxti). */ +#undef HAVE_LIBXTI + +/* Name of package */ +#undef PACKAGE + +/* Version number of package */ +#undef VERSION + + + +#endif /* ACE_CONFIG_H */ diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 00000000000..ebca7cfe1e1 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,856 @@ +dnl ------------------------------------------------------------------------- +dnl $Id$ +dnl +dnl ACE M4 include file which contains ACE specific M4 macros +dnl to be used by the ACE configure script. +dnl +dnl ------------------------------------------------------------------------- + +dnl Copyright (C) 1998 Ossama Othman +dnl +dnl All Rights Reserved +dnl +dnl This library is free software; you can redistribute it and/or +dnl modify it under the current ACE distribution terms. +dnl +dnl This library is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + +dnl miscellaneous macros + + +dnl Macros to set flags for a given compiler on a given platform. +dnl The flags set here are generally only useful for _KNOWN_ compilers. + +dnl ACE_SET_COMPILER_FLAGS +dnl Usage: ACE_SET_COMPILER_FLAGS +AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl +[ + AC_BEFORE([$0], [AM_PROG_LIBTOOL]) dnl + + dnl Make sure we know what C++ compiler and preprocessor we have! + AC_REQUIRE([AC_PROG_CXX]) + AC_REQUIRE([AC_PROG_CXXCPP]) + AC_REQUIRE([AC_LANG_CPLUSPLUS]) + + dnl Compiler Flag Key + dnl CXXFLAGS - C++ flags to use during the configure script run and + dnl during ACE compilation. The user may set this prior to + dnl running the configure script. As such, it is important + dnl not to replace the existing value of CXXFLAGS; rather + dnl one should only add to it. + dnl ACE_CXXFLAGS - General C++ flags the configure script should set before + dnl CXXFLAGS to allow the user override them. + dnl DCXXFLAGS - C++ debugging flags + dnl OCXXFLAGS - C++ optimization flags + + case "$target" in + *aix4.2* | *aix4.3*) + case "$CXX" in + xlC*) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -qtempinc -qlanglvl=ansi -qflag=w:w -qinfo" + DCXXFLAGS="-g -qcheck=nobounds:div:null" + OCXXFLAGS="-qarch=com" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="-mcpu=common" + fi + ;; + esac + ;; + *aix4.1*) + case "$CXX" in + xlC*) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -qxcall -qtempinc" + DCXXFLAGS="-g" + OCXXFLAGS="-qarch=ppc -qtune=604" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="-mcpu=common" + fi + ;; + esac + ;; + *chorus*) + ;; + *cray*) + ;; + *dgux*) + case "$CXX" in + ec++) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -relax -v -eh" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS" + fi + ;; + esac + ;; + *freebsd*) + case "$CXX" in + *) + if test -n "$GXX"; then + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -w -fno-strict-prototypes" + DCXXFLAGS="" + OCXXFLAGS="" + fi + ;; + esac + ;; + *hpux*) + case "$CXX" in + CC) + CXXFLAGS="$CXXFLAGS -pta -ti,/bin/true -tr,/bin/true" + ACE_CXXFLAGS="$ACE_CXXFLAGS -Aa -z +a1" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + aCC) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS +W829,302" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -w" + fi + ;; + esac + ;; + *irix*) + + ;; + *linux*) + case "$CXX" in + *) + if test -n "$GXX"; then + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS" + DCXXFLAGS="$DCXXFLAGS" + OCXXFLAGS="-O3" + fi + ;; + esac + ;; + *lynxos*) + ;; + *m88k*) + ;; + *mvs*) + ;; + *netbsd*) + ;; + *osf*) + ;; + *psos*) + ;; + *sco*) + ;; + *sunos4*) + ;; + *solaris2*) + ;; + *tandem*) + ;; + *unixware*) + ;; + *vxworks*) + ;; + *) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS" + DCXXFLAGS="-g" + OCXXFLAGS="-O" + ;; + esac +]) + +dnl add compiler flags to the CXXFLAGS and CFLAGS variables when doing an +dnl AC_TRY_COMPILE (not ACE_TRY_COMPILE). +dnl Use this macro when adding include directories to the compiler flags, +dnl for example. +dnl Usage: ACE_TRY_COMPILE(COMPILER-FLAGS, INCLUDES, FUNCTION-BODY, +dnl [ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]) +AC_DEFUN(ACE_TRY_COMPILE, dnl +[ + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS $1" + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + + AC_TRY_COMPILE($2, $3, $4, $5) + + dnl Restore the C++ and C flags + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + +]) + +dnl Create a temporary empty file and remove it after commands are done using +dnl it. The directory in which the temporary file will be created in must +dnl exist. Files will be created under the source directory, not the build +dnl directory. +dnl Use this macro when you need a particular file available but want it to be +dnl empty. This is useful to prevent conflicts with autoconf's confdefs.h +dnl header when doing an AC_TRY_COMPILE. +dnl Usage: ACE_USE_TEMP_FILE(TEMP-FILE-TO-CREATE, COMMANDS-THAT-WILL-USE-IT) +AC_DEFUN(ACE_USE_TEMP_FILE, dnl +[ + if test -f ${srcdir}/$1; then + mv ${srcdir}/$1 ${srcdir}/$1.conf + fi + + touch ${srcdir}/$1 + + $2 + + if test -f ${srcdir}/$1.conf; then + mv ${srcdir}/$1.conf ${srcdir}/$1 + else + rm ${srcdir}/$1 + fi +]) + +dnl Run given test(s) with warnings converted to errors +dnl Usage: ACE_CONVERT_WARNINGS_TO_ERRORS(TEST-BLOCK) +AC_DEFUN(ACE_CONVERT_WARNINGS_TO_ERRORS, dnl +[ +dnl If we are using GNU C++, add the "-Werror" compiler flag to the +dnl current set of flags so that compiler warnings become errors. We +dnl do this to cause certain tests to fail when they are supposed to +dnl fail. Some of the tests pass because the GNU C++ compiler issues +dnl warnings instead of errors when errors should occur. + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + $1 + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + +]) + +dnl Wrapper around AC_CACHE_VAL used to ensure "ACTION-IF" commands are run +dnl even if results have been previously cached. +dnl Usage: ACE_CACHE_CHECK(MESSAGE, CACHE-ID, COMMANDS-TO-SET-CACHE-VAL, +dnl ACTION-IF-CACHE-ID-IS-YES, +dnl ACTION-IF-CACHE-ID-IS-NO) +dnl The COMMANDS-TO-SET-CACHE-VAL should set the CACHE-ID to yes or "no," +dnl otherwise the "ACTION-IF*" commands may not run. The +dnl COMMANDS-TO-SET-CACHE-VAL should only set the CACHE value. For example, +dnl no AC_DEFINES should be placed in the COMMANDS-TO-SET-CACHE-VAL. +AC_DEFUN(ACE_CACHE_CHECK, +[ + AC_MSG_CHECKING([$1]) + AC_CACHE_VAL([$2], [$3]) + AC_MSG_RESULT([$]$2) + if test "[$]$2" = yes; then + ace_just_a_place_holder=fixme +ifelse([$4], , :, [$4]) + else + ace_just_a_place_holder=fixme +ifelse([$5], , , [$5 +])dnl + fi +]) + +dnl checks for programs + +dnl checks for libraries + +dnl Make sure thread library exists +dnl We need to be careful when tests for other thread libraries are +dnl added that we don't screw up handling of "ace_user_enable_threads" +dnl Tests should probably be more platform specific later on. + +dnl Check for thread related libraries and compiler flags +dnl Usage: ACE_CHECK_THREADS +AC_DEFUN(ACE_CHECK_THREADS, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + +dnl Check if compiler accepts specific flag to enable threads + ACE_CACHE_CHECK(if compiler may need a thread flag, + ace_cv_feature_may_need_thread_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_may_need_thread_flag=no + ], + [ + ace_cv_feature_may_need_thread_flag=yes + ]) + ], + [ + ace_cv_feature_thread_flag_set=no + + save_CXXFLAGS="$CXXFLAGS" + save_CFLAGS="$CFLAGS" + + CXXFLAGS="$CXXFLAGS -mt" + CFLAGS="$CFLAGS -mt" + + ACE_CACHE_CHECK(if compiler can use -mt flag, + ace_cv_feature_has_mt_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_mt_flag=yes + ], + [ + ace_cv_feature_has_mt_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -pthread" + CFLAGS="$CFLAGS -pthread" + + ACE_CACHE_CHECK(if compiler can use -pthread flag, + ace_cv_feature_has_pthread_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_pthread_flag=yes + ], + [ + ace_cv_feature_has_pthread_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -pthreads" + CFLAGS="$CFLAGS -pthreads" + + ACE_CACHE_CHECK(if compiler can use -pthreads flag, + ace_cv_feature_has_pthreads_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_pthreads_flag=yes + ], + [ + ace_cv_feature_has_pthreads_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -mthreads" + CFLAGS="$CXXFLAGS -mthreads" + + ACE_CACHE_CHECK(if compiler can use -mthreads flag, + ace_cv_feature_has_mthreads_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_mthreads_flag=yes + ], + [ + ace_cv_feature_has_mthreads_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -threads" + CFLAGS="$CXXFLAGS -threads" + + ACE_CACHE_CHECK(if compiler can use -threads flag, + ace_cv_feature_has_dash_threads_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_dash_threads_flag=yes + ], + [ + ace_cv_feature_has_dash_threads_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + ], + [ + dnl Do nothing + ]) + +dnl Check for UNIX International Threads -- STHREADS + + ace_has_sthreads=no + + AC_CHECK_FUNC(thr_create, + [ + ace_has_sthreads=yes + AC_DEFINE(ACE_HAS_STHREADS) + ], + [ + AC_CHECK_LIB(thread, thr_create, dnl + [ + ace_has_sthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_STHREADS), the default behavior of +dnl of adding "-lthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lthread" + AC_DEFINE(ACE_HAS_STHREADS) + ],) + ]) + +dnl Check for POSIX threads + + dnl Check if platform provides pthreads backward compatibility macros + dnl (Some platforms may define some pthread functions such as + dnl pthread_create() as macros when using a later implementation of + dnl pthreads. For example, Digital Unix 4.0 #defines a pthread_create + dnl macro as "__pthread_create" to allow the new implemenation of + dnl pthread_create() to co-exist with the old implementation of + dnl of pthread_create().) + + AC_CACHE_CHECK(for pthreads backward compatibility macros, + ace_cv_lib_pthread_compat_macros, + [ + AC_EGREP_CPP(ACE_PTHREAD_MACROS, + [ +#include <pthread.h> + +#if defined (pthread_create) + ACE_PTHREAD_MACROS +#endif + ], + [ + ace_cv_lib_pthread_compat_macros=yes + ], + [ + ace_cv_lib_pthread_compat_macros=no + ]) + ]) + + ace_has_pthreads=no + +dnl Check for POSIX threads -- PTHREADS + ACE_CHECK_FUNC(pthread_create, pthread.h, + [ + ace_has_pthreads=yes + AC_DEFINE(ACE_HAS_PTHREADS) + ], + [ + AC_CHECK_LIB(pthread, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lpthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lpthread" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + +dnl Check if pthread function names are mangled (e.g. DU 4.0) to maintain +dnl older Pthread Draft compatibility. + if test "$ace_has_pthreads" = no && + test "$ace_cv_lib_pthread_compat_macros" = yes; then + ACE_CHECK_LIB(pthread, pthread_create, pthread.h, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lpthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lpthread" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no && have compatibilty macros + +dnl Check if we need to use -lpthreads instead (e.g. AIX 4.2) + if test "$ace_has_pthreads" = no; then + AC_CHECK_LIB(pthreads, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lpthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lpthreads" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no + + if test "$ace_has_pthreads" = no; then +dnl Check for POSIX threads in -lc_r +dnl Check if we already have the necessary library, first + AC_CHECK_LIB(c_r, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lc_r" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lc_r" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no + + if test "$ace_has_pthreads" = no; then +dnl Check for POSIX threads in -lgthreads, i.e. FSU Pthreads + AC_CHECK_LIB(gthreads, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lgthreads" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lgthreads" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no + ]) + +dnl If we don't have any thread library, then disable threading altogether! + if test "$ace_has_pthreads" != yes && + test "$ace_has_sthreads" != yes; then + ace_user_enable_threads=no + fi + +]) + +dnl This macro will check that the current compiler flags do something +dnl useful in terms of thread libraries and/or functions. +dnl Usage: ACE_CHECK_THREAD_FLAGS(ACTION-IF-USABLE [, ACTION-IF-NOT-USABLE]]) +AC_DEFUN(ACE_CHECK_THREAD_FLAGS, dnl +[ +ACE_CONVERT_WARNINGS_TO_ERRORS([ +AC_TRY_LINK( +ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif +])dnl +[ +char thr_create(); +], [ +thr_create(); +], [$1], +[ +dnl + AC_REQUIRE([AC_PROG_AWK]) + + AC_TRY_CPP( + [ +#include <pthread.h> + ], ace_header_exists=yes, ace_header_exists=no) + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \[$]2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + fi dnl test "$ace_header_not_exist" != yes + +AC_TRY_LINK( +ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif +])dnl +[ +char $ace_real_function(); +], [ +$ace_real_function(); +], [$1],[$2]) + +dnl + ]) + ]) +]) + +dnl checks for header files + +dnl checks for typedefs + +dnl Check for specific typedef in given header file +dnl Usage: ACE_CHECK_TYPE(TYPEDEF, INCLUDE, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl This macro can only check for one typedef in one header file at a time!! +AC_DEFUN(ACE_CHECK_TYPE, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + + ACE_CACHE_CHECK(for $1 in $2, ace_cv_type_$1, + [ + AC_TRY_COMPILE( + [ +#include <$2> + ], + [ + $1 ace_$1; + ], + [ + ace_cv_type_$1=yes + ], + [ + ace_cv_type_$1=no + ]) + ], $3, $4) +]) + + +dnl checks for structures + +dnl Check for specific struct in given header file +dnl Usage: ACE_CHECK_STRUCT(STRUCTURE, INCLUDE, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl This macro can only check for one struct in one header file at a time!! +AC_DEFUN(ACE_CHECK_STRUCT, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + +dnl Do the transliteration at runtime so arg 1 can be a shell variable. +dnl ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` + + ACE_CACHE_CHECK(for struct $1 in $2, ace_cv_struct_$1, + [ + ACE_TRY_COMPILE_STRUCT($1, $2, + [ + ace_cv_struct_$1=yes + ], + [ + ace_cv_struct_$1=no + ]) + ], $3, $4) +]) + +dnl Check for specific struct in given header file by compiling a test +dnl program. This macro is used by ACE_CHECK_STRUCT. +dnl Usage: ACE_TRY_COMPILE_STRUCT(STRUCTURE, INCLUDE, +dnl [ACTION-IF-SUCCESSFUL[, ACTION-IF-NOT-SUCCESSFUL]]) +dnl This macro can only check for one struct in one header file at a time!! +AC_DEFUN(ACE_TRY_COMPILE_STRUCT, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + + AC_TRY_COMPILE( + [ +#include <$2> + ], + [ + struct $1 ace_$1; + ], + [ + $3 + ], + [ +dnl Some compilers don't like the "struct" but we need the struct for some +dnl platforms to resolve ambiguities between functions and structures with +dnl with the same name. So, we try the same test but without "struct" if +dnl the above test with "struct" fails. If both tests fail, then we can +dnl be reasonably sure that we don't have the structure we are testing for. + AC_TRY_COMPILE( + [ +#include <$2> + ], + [ + $1 ace_$1; + ], + [ + $3 + ], + [ + $4 + ]) + ]) +]) + +dnl checks for variables + +dnl checks for compiler characteristics + +dnl checks for library functions + +dnl Check for function using prototype in header +dnl This macro is used if a function is called a different name in a given +dnl library than what is in the header file but the difference is made +dnl transparent to the user since the header may provide a macro to make +dnl things "transparent." If the given header does not exist then this +dnl macro acts just like the standard AC_CHECK_FUNC macro. +dnl Usage: ACE_CHECK_FUNC(FUNCTION, HEADER, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(ACE_CHECK_FUNC, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + AC_REQUIRE([AC_PROG_AWK]) + + AC_TRY_CPP( + [ +#include <$2> + ], ace_header_exists=yes, ace_header_exists=no) + + cat > conftest.$ac_ext <<EOF + +#include <$2> + ACE_REAL_FUNCTION $1 + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + AC_MSG_WARN(No awk program found. "Real" function may not be found.) + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \[$]2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test $1 != "$ace_real_function"; then + AC_MSG_CHECKING(for real $1 from $2) + AC_MSG_RESULT($ace_real_function) + fi + else + ace_real_function=$1 + fi dnl test "$ace_header_not_exist" != yes + + AC_CHECK_FUNC($ace_real_function, $3, $4) +]) + +dnl Check for function in library using prototype in header +dnl This macro is used if a function is called a different name in a given +dnl library than what is in the header file but the difference is made +dnl transparent to the user since the header may provide a macro to make +dnl things "transparent." If the given header does not exist then this +dnl macro acts just like the standard AC_CHECK_LIB macro. +dnl Usage: ACE_CHECK_LIB(LIBRARY, FUNCTION, HEADER, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(ACE_CHECK_LIB, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + AC_REQUIRE([AC_PROG_AWK]) + + AC_TRY_CPP( + [ +#include <$3> + ], ace_header_exists=yes, ace_header_exists=no) + + cat > conftest.$ac_ext <<EOF + +#include <$3> + ACE_REAL_FUNCTION $2 + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + AC_MSG_WARN(No awk program found. "Real" function in library may not be found.) + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + eval "$AWK '{print \[$]2}'" > conftest.awk 2>&1; then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test $2 != "$ace_real_function"; then + AC_MSG_CHECKING(for real $2 from $3) + AC_MSG_RESULT($ace_real_function) + fi + else + ace_real_function=$2 + fi dnl test "$ace_header_not_exist" != yes + + AC_CHECK_LIB($1, $ace_real_function, $4, $5) +]) + + +dnl checks for structures + +dnl checks for system services diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 00000000000..6c1538348e5 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,1544 @@ +dnl aclocal.m4 generated automatically by aclocal 1.4 + +dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +dnl ------------------------------------------------------------------------- +dnl $Id$ +dnl +dnl ACE M4 include file which contains ACE specific M4 macros +dnl to be used by the ACE configure script. +dnl +dnl ------------------------------------------------------------------------- + +dnl Copyright (C) 1998 Ossama Othman +dnl +dnl All Rights Reserved +dnl +dnl This library is free software; you can redistribute it and/or +dnl modify it under the current ACE distribution terms. +dnl +dnl This library is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + +dnl miscellaneous macros + + +dnl Macros to set flags for a given compiler on a given platform. +dnl The flags set here are generally only useful for _KNOWN_ compilers. + +dnl ACE_SET_COMPILER_FLAGS +dnl Usage: ACE_SET_COMPILER_FLAGS +AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl +[ + AC_BEFORE([$0], [AM_PROG_LIBTOOL]) dnl + + dnl Make sure we know what C++ compiler and preprocessor we have! + AC_REQUIRE([AC_PROG_CXX]) + AC_REQUIRE([AC_PROG_CXXCPP]) + AC_REQUIRE([AC_LANG_CPLUSPLUS]) + + dnl Compiler Flag Key + dnl CXXFLAGS - C++ flags to use during the configure script run and + dnl during ACE compilation. The user may set this prior to + dnl running the configure script. As such, it is important + dnl not to replace the existing value of CXXFLAGS; rather + dnl one should only add to it. + dnl ACE_CXXFLAGS - General C++ flags the configure script should set before + dnl CXXFLAGS to allow the user override them. + dnl DCXXFLAGS - C++ debugging flags + dnl OCXXFLAGS - C++ optimization flags + + case "$target" in + *aix4.2* | *aix4.3*) + case "$CXX" in + xlC*) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -qtempinc -qlanglvl=ansi -qflag=w:w -qinfo" + DCXXFLAGS="-g -qcheck=nobounds:div:null" + OCXXFLAGS="-qarch=com" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="-mcpu=common" + fi + ;; + esac + ;; + *aix4.1*) + case "$CXX" in + xlC*) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -qxcall -qtempinc" + DCXXFLAGS="-g" + OCXXFLAGS="-qarch=ppc -qtune=604" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="-mcpu=common" + fi + ;; + esac + ;; + *chorus*) + ;; + *cray*) + ;; + *dgux*) + case "$CXX" in + ec++) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -relax -v -eh" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS" + fi + ;; + esac + ;; + *freebsd*) + case "$CXX" in + *) + if test -n "$GXX"; then + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -w -fno-strict-prototypes" + DCXXFLAGS="" + OCXXFLAGS="" + fi + ;; + esac + ;; + *hpux*) + case "$CXX" in + CC) + CXXFLAGS="$CXXFLAGS -pta -ti,/bin/true -tr,/bin/true" + ACE_CXXFLAGS="$ACE_CXXFLAGS -Aa -z +a1" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + aCC) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS +W829,302" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -w" + fi + ;; + esac + ;; + *irix*) + + ;; + *linux*) + case "$CXX" in + *) + if test -n "$GXX"; then + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS" + DCXXFLAGS="$DCXXFLAGS" + OCXXFLAGS="-O3" + fi + ;; + esac + ;; + *lynxos*) + ;; + *m88k*) + ;; + *mvs*) + ;; + *netbsd*) + ;; + *osf*) + ;; + *psos*) + ;; + *sco*) + ;; + *sunos4*) + ;; + *solaris2*) + ;; + *tandem*) + ;; + *unixware*) + ;; + *vxworks*) + ;; + *) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS" + DCXXFLAGS="-g" + OCXXFLAGS="-O" + ;; + esac +]) + +dnl add compiler flags to the CXXFLAGS and CFLAGS variables when doing an +dnl AC_TRY_COMPILE (not ACE_TRY_COMPILE). +dnl Use this macro when adding include directories to the compiler flags, +dnl for example. +dnl Usage: ACE_TRY_COMPILE(COMPILER-FLAGS, INCLUDES, FUNCTION-BODY, +dnl [ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]) +AC_DEFUN(ACE_TRY_COMPILE, dnl +[ + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS $1" + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + + AC_TRY_COMPILE($2, $3, $4, $5) + + dnl Restore the C++ and C flags + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + +]) + +dnl Create a temporary empty file and remove it after commands are done using +dnl it. The directory in which the temporary file will be created in must +dnl exist. Files will be created under the source directory, not the build +dnl directory. +dnl Use this macro when you need a particular file available but want it to be +dnl empty. This is useful to prevent conflicts with autoconf's confdefs.h +dnl header when doing an AC_TRY_COMPILE. +dnl Usage: ACE_USE_TEMP_FILE(TEMP-FILE-TO-CREATE, COMMANDS-THAT-WILL-USE-IT) +AC_DEFUN(ACE_USE_TEMP_FILE, dnl +[ + if test -f ${srcdir}/$1; then + mv ${srcdir}/$1 ${srcdir}/$1.conf + fi + + touch ${srcdir}/$1 + + $2 + + if test -f ${srcdir}/$1.conf; then + mv ${srcdir}/$1.conf ${srcdir}/$1 + else + rm ${srcdir}/$1 + fi +]) + +dnl Run given test(s) with warnings converted to errors +dnl Usage: ACE_CONVERT_WARNINGS_TO_ERRORS(TEST-BLOCK) +AC_DEFUN(ACE_CONVERT_WARNINGS_TO_ERRORS, dnl +[ +dnl If we are using GNU C++, add the "-Werror" compiler flag to the +dnl current set of flags so that compiler warnings become errors. We +dnl do this to cause certain tests to fail when they are supposed to +dnl fail. Some of the tests pass because the GNU C++ compiler issues +dnl warnings instead of errors when errors should occur. + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + $1 + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + +]) + +dnl Wrapper around AC_CACHE_VAL used to ensure "ACTION-IF" commands are run +dnl even if results have been previously cached. +dnl Usage: ACE_CACHE_CHECK(MESSAGE, CACHE-ID, COMMANDS-TO-SET-CACHE-VAL, +dnl ACTION-IF-CACHE-ID-IS-YES, +dnl ACTION-IF-CACHE-ID-IS-NO) +dnl The COMMANDS-TO-SET-CACHE-VAL should set the CACHE-ID to yes or "no," +dnl otherwise the "ACTION-IF*" commands may not run. The +dnl COMMANDS-TO-SET-CACHE-VAL should only set the CACHE value. For example, +dnl no AC_DEFINES should be placed in the COMMANDS-TO-SET-CACHE-VAL. +AC_DEFUN(ACE_CACHE_CHECK, +[ + AC_MSG_CHECKING([$1]) + AC_CACHE_VAL([$2], [$3]) + AC_MSG_RESULT([$]$2) + if test "[$]$2" = yes; then + ace_just_a_place_holder=fixme +ifelse([$4], , :, [$4]) + else + ace_just_a_place_holder=fixme +ifelse([$5], , , [$5 +])dnl + fi +]) + +dnl checks for programs + +dnl checks for libraries + +dnl Make sure thread library exists +dnl We need to be careful when tests for other thread libraries are +dnl added that we don't screw up handling of "ace_user_enable_threads" +dnl Tests should probably be more platform specific later on. + +dnl Check for thread related libraries and compiler flags +dnl Usage: ACE_CHECK_THREADS +AC_DEFUN(ACE_CHECK_THREADS, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + +dnl Check if compiler accepts specific flag to enable threads + ACE_CACHE_CHECK(if compiler may need a thread flag, + ace_cv_feature_may_need_thread_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_may_need_thread_flag=no + ], + [ + ace_cv_feature_may_need_thread_flag=yes + ]) + ], + [ + ace_cv_feature_thread_flag_set=no + + save_CXXFLAGS="$CXXFLAGS" + save_CFLAGS="$CFLAGS" + + CXXFLAGS="$CXXFLAGS -mt" + CFLAGS="$CFLAGS -mt" + + ACE_CACHE_CHECK(if compiler can use -mt flag, + ace_cv_feature_has_mt_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_mt_flag=yes + ], + [ + ace_cv_feature_has_mt_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -pthread" + CFLAGS="$CFLAGS -pthread" + + ACE_CACHE_CHECK(if compiler can use -pthread flag, + ace_cv_feature_has_pthread_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_pthread_flag=yes + ], + [ + ace_cv_feature_has_pthread_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -pthreads" + CFLAGS="$CFLAGS -pthreads" + + ACE_CACHE_CHECK(if compiler can use -pthreads flag, + ace_cv_feature_has_pthreads_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_pthreads_flag=yes + ], + [ + ace_cv_feature_has_pthreads_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -mthreads" + CFLAGS="$CXXFLAGS -mthreads" + + ACE_CACHE_CHECK(if compiler can use -mthreads flag, + ace_cv_feature_has_mthreads_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_mthreads_flag=yes + ], + [ + ace_cv_feature_has_mthreads_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -threads" + CFLAGS="$CXXFLAGS -threads" + + ACE_CACHE_CHECK(if compiler can use -threads flag, + ace_cv_feature_has_dash_threads_flag, + [ + ACE_CHECK_THREAD_FLAGS( + [ + ace_cv_feature_has_dash_threads_flag=yes + ], + [ + ace_cv_feature_has_dash_threads_flag=no + ]) + ], + [ + ace_cv_feature_thread_flag_set=yes + ], + [ + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + ]) + + fi dnl test "$ace_cv_feature_thread_flag_set" = no + ], + [ + dnl Do nothing + ]) + +dnl Check for UNIX International Threads -- STHREADS + + ace_has_sthreads=no + + AC_CHECK_FUNC(thr_create, + [ + ace_has_sthreads=yes + AC_DEFINE(ACE_HAS_STHREADS) + ], + [ + AC_CHECK_LIB(thread, thr_create, dnl + [ + ace_has_sthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_STHREADS), the default behavior of +dnl of adding "-lthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lthread" + AC_DEFINE(ACE_HAS_STHREADS) + ],) + ]) + +dnl Check for POSIX threads + + dnl Check if platform provides pthreads backward compatibility macros + dnl (Some platforms may define some pthread functions such as + dnl pthread_create() as macros when using a later implementation of + dnl pthreads. For example, Digital Unix 4.0 #defines a pthread_create + dnl macro as "__pthread_create" to allow the new implemenation of + dnl pthread_create() to co-exist with the old implementation of + dnl of pthread_create().) + + AC_CACHE_CHECK(for pthreads backward compatibility macros, + ace_cv_lib_pthread_compat_macros, + [ + AC_EGREP_CPP(ACE_PTHREAD_MACROS, + [ +#include <pthread.h> + +#if defined (pthread_create) + ACE_PTHREAD_MACROS +#endif + ], + [ + ace_cv_lib_pthread_compat_macros=yes + ], + [ + ace_cv_lib_pthread_compat_macros=no + ]) + ]) + + ace_has_pthreads=no + +dnl Check for POSIX threads -- PTHREADS + ACE_CHECK_FUNC(pthread_create, pthread.h, + [ + ace_has_pthreads=yes + AC_DEFINE(ACE_HAS_PTHREADS) + ], + [ + AC_CHECK_LIB(pthread, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lpthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lpthread" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + +dnl Check if pthread function names are mangled (e.g. DU 4.0) to maintain +dnl older Pthread Draft compatibility. + if test "$ace_has_pthreads" = no && + test "$ace_cv_lib_pthread_compat_macros" = yes; then + ACE_CHECK_LIB(pthread, pthread_create, pthread.h, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lpthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lpthread" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no && have compatibilty macros + +dnl Check if we need to use -lpthreads instead (e.g. AIX 4.2) + if test "$ace_has_pthreads" = no; then + AC_CHECK_LIB(pthreads, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lpthread" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lpthreads" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no + + if test "$ace_has_pthreads" = no; then +dnl Check for POSIX threads in -lc_r +dnl Check if we already have the necessary library, first + AC_CHECK_LIB(c_r, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lc_r" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lc_r" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no + + if test "$ace_has_pthreads" = no; then +dnl Check for POSIX threads in -lgthreads, i.e. FSU Pthreads + AC_CHECK_LIB(gthreads, pthread_create, dnl + [ + ace_has_pthreads=yes +dnl Since we AC_DEFINE(ACE_HAS_PTHREADS), the default behavior of +dnl of adding "-lgthreads" to the "LIBS" variable no longer works. +dnl So, we have to add it manually. + LIBS="$LIBS -lgthreads" + AC_DEFINE(ACE_HAS_PTHREADS) + ],) + fi dnl test "$ace_has_pthreads" = no + ]) + +dnl If we don't have any thread library, then disable threading altogether! + if test "$ace_has_pthreads" != yes && + test "$ace_has_sthreads" != yes; then + ace_user_enable_threads=no + fi + +]) + +dnl This macro will check that the current compiler flags do something +dnl useful in terms of thread libraries and/or functions. +dnl Usage: ACE_CHECK_THREAD_FLAGS(ACTION-IF-USABLE [, ACTION-IF-NOT-USABLE]]) +AC_DEFUN(ACE_CHECK_THREAD_FLAGS, dnl +[ +ACE_CONVERT_WARNINGS_TO_ERRORS([ +AC_TRY_LINK( +ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif +])dnl +[ +char thr_create(); +], [ +thr_create(); +], [$1], +[ +dnl + AC_REQUIRE([AC_PROG_AWK]) + + AC_TRY_CPP( + [ +#include <pthread.h> + ], ace_header_exists=yes, ace_header_exists=no) + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \[$]2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + fi dnl test "$ace_header_not_exist" != yes + +AC_TRY_LINK( +ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif +])dnl +[ +char $ace_real_function(); +], [ +$ace_real_function(); +], [$1],[$2]) + +dnl + ]) + ]) +]) + +dnl checks for header files + +dnl checks for typedefs + +dnl Check for specific typedef in given header file +dnl Usage: ACE_CHECK_TYPE(TYPEDEF, INCLUDE, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl This macro can only check for one typedef in one header file at a time!! +AC_DEFUN(ACE_CHECK_TYPE, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + + ACE_CACHE_CHECK(for $1 in $2, ace_cv_type_$1, + [ + AC_TRY_COMPILE( + [ +#include <$2> + ], + [ + $1 ace_$1; + ], + [ + ace_cv_type_$1=yes + ], + [ + ace_cv_type_$1=no + ]) + ], $3, $4) +]) + + +dnl checks for structures + +dnl Check for specific struct in given header file +dnl Usage: ACE_CHECK_STRUCT(STRUCTURE, INCLUDE, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +dnl This macro can only check for one struct in one header file at a time!! +AC_DEFUN(ACE_CHECK_STRUCT, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + +dnl Do the transliteration at runtime so arg 1 can be a shell variable. +dnl ac_safe=`echo "$1" | sed 'y%./+-%__p_%'` + + ACE_CACHE_CHECK(for struct $1 in $2, ace_cv_struct_$1, + [ + ACE_TRY_COMPILE_STRUCT($1, $2, + [ + ace_cv_struct_$1=yes + ], + [ + ace_cv_struct_$1=no + ]) + ], $3, $4) +]) + +dnl Check for specific struct in given header file by compiling a test +dnl program. This macro is used by ACE_CHECK_STRUCT. +dnl Usage: ACE_TRY_COMPILE_STRUCT(STRUCTURE, INCLUDE, +dnl [ACTION-IF-SUCCESSFUL[, ACTION-IF-NOT-SUCCESSFUL]]) +dnl This macro can only check for one struct in one header file at a time!! +AC_DEFUN(ACE_TRY_COMPILE_STRUCT, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + + AC_TRY_COMPILE( + [ +#include <$2> + ], + [ + struct $1 ace_$1; + ], + [ + $3 + ], + [ +dnl Some compilers don't like the "struct" but we need the struct for some +dnl platforms to resolve ambiguities between functions and structures with +dnl with the same name. So, we try the same test but without "struct" if +dnl the above test with "struct" fails. If both tests fail, then we can +dnl be reasonably sure that we don't have the structure we are testing for. + AC_TRY_COMPILE( + [ +#include <$2> + ], + [ + $1 ace_$1; + ], + [ + $3 + ], + [ + $4 + ]) + ]) +]) + +dnl checks for variables + +dnl checks for compiler characteristics + +dnl checks for library functions + +dnl Check for function using prototype in header +dnl This macro is used if a function is called a different name in a given +dnl library than what is in the header file but the difference is made +dnl transparent to the user since the header may provide a macro to make +dnl things "transparent." If the given header does not exist then this +dnl macro acts just like the standard AC_CHECK_FUNC macro. +dnl Usage: ACE_CHECK_FUNC(FUNCTION, HEADER, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(ACE_CHECK_FUNC, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + AC_REQUIRE([AC_PROG_AWK]) + + AC_TRY_CPP( + [ +#include <$2> + ], ace_header_exists=yes, ace_header_exists=no) + + cat > conftest.$ac_ext <<EOF + +#include <$2> + ACE_REAL_FUNCTION $1 + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + AC_MSG_WARN(No awk program found. "Real" function may not be found.) + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \[$]2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test $1 != "$ace_real_function"; then + AC_MSG_CHECKING(for real $1 from $2) + AC_MSG_RESULT($ace_real_function) + fi + else + ace_real_function=$1 + fi dnl test "$ace_header_not_exist" != yes + + AC_CHECK_FUNC($ace_real_function, $3, $4) +]) + +dnl Check for function in library using prototype in header +dnl This macro is used if a function is called a different name in a given +dnl library than what is in the header file but the difference is made +dnl transparent to the user since the header may provide a macro to make +dnl things "transparent." If the given header does not exist then this +dnl macro acts just like the standard AC_CHECK_LIB macro. +dnl Usage: ACE_CHECK_LIB(LIBRARY, FUNCTION, HEADER, +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) +AC_DEFUN(ACE_CHECK_LIB, dnl +[ +dnl AC_REQUIRE([AC_PROG_CXX]) +dnl AC_REQUIRE([AC_PROG_CXXCPP]) +dnl AC_REQUIRE([AC_LANG_CPLUSPLUS]) + AC_REQUIRE([AC_PROG_AWK]) + + AC_TRY_CPP( + [ +#include <$3> + ], ace_header_exists=yes, ace_header_exists=no) + + cat > conftest.$ac_ext <<EOF + +#include <$3> + ACE_REAL_FUNCTION $2 + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + AC_MSG_WARN(No awk program found. "Real" function in library may not be found.) + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + eval "$AWK '{print \[$]2}'" > conftest.awk 2>&1; then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test $2 != "$ace_real_function"; then + AC_MSG_CHECKING(for real $2 from $3) + AC_MSG_RESULT($ace_real_function) + fi + else + ace_real_function=$2 + fi dnl test "$ace_header_not_exist" != yes + + AC_CHECK_LIB($1, $ace_real_function, $4, $5) +]) + + +dnl checks for structures + +dnl checks for system services + + +# serial 31 AC_PROG_LIBTOOL +AC_DEFUN(AC_PROG_LIBTOOL, +[AC_PREREQ(2.12.2)dnl +AC_REQUIRE([AC_ENABLE_SHARED])dnl +AC_REQUIRE([AC_ENABLE_STATIC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([AC_PROG_RANLIB])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_PROG_LD])dnl +AC_REQUIRE([AC_PROG_NM])dnl +AC_REQUIRE([AC_SYS_NM_PARSE])dnl +AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +dnl +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +# Check for any special flags to pass to ltconfig. +libtool_f +test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" +test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" +test "$silent" = yes && libtool_flags="$libtool_flags --silent" +test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case "$host" in +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case "`/usr/bin/file conftest.o`" in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; + +*-*-cygwin32*) + AC_SYS_LIBTOOL_CYGWIN32 + ;; + +esac + +# enable the --disable-libtool-lock switch + +AC_ARG_ENABLE(libtool-lock, +[ --disable-libtool-lock force libtool not to do file locking], +need_locks=$enableval, +need_locks=yes) + +if test x"$need_locks" = xno; then + libtool_flags="$libtool_flags --disable-lock" +fi + + +# Actually configure libtool. ac_aux_dir is where install-sh is found. +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ +LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ +DLLTOOL="$DLLTOOL" AS="$AS" \ +${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ +$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ +|| AC_MSG_ERROR([libtool configure failed]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" + +# Redirect the config.log output again, so that the ltconfig log is not +# clobbered by the next message. +exec 5>>./config.log +]) + +# AC_ENABLE_SHARED - implement the --enable-shared flag +# Usage: AC_ENABLE_SHARED[(DEFAULT)] +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to +# `yes'. +AC_DEFUN(AC_ENABLE_SHARED, +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE(shared, +changequote(<<, >>)dnl +<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], +changequote([, ])dnl +[p=${PACKAGE-default} +case "$enableval" in +yes) enable_shared=yes ;; +no) enable_shared=no ;; +*) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$ac_save_ifs" + ;; +esac], +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl +]) + +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared +AC_DEFUN(AC_DISABLE_SHARED, +[AC_ENABLE_SHARED(no)]) + +# AC_DISABLE_STATIC - set the default static flag to --disable-static +AC_DEFUN(AC_DISABLE_STATIC, +[AC_ENABLE_STATIC(no)]) + +# AC_ENABLE_STATIC - implement the --enable-static flag +# Usage: AC_ENABLE_STATIC[(DEFAULT)] +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to +# `yes'. +AC_DEFUN(AC_ENABLE_STATIC, +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE(static, +changequote(<<, >>)dnl +<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], +changequote([, ])dnl +[p=${PACKAGE-default} +case "$enableval" in +yes) enable_static=yes ;; +no) enable_static=no ;; +*) + enable_static=no + # Look at the argument we got. We use all the common list separators. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$ac_save_ifs" + ;; +esac] +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl +]) + + +# AC_PROG_LD - find the path to the GNU or non-GNU linker +AC_DEFUN(AC_PROG_LD, +[AC_ARG_WITH(gnu-ld, +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +ac_prog=ld +if test "$ac_cv_prog_gcc" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + ac_prog=`($CC -print-prog-name=ld) 2>&5` + case "$ac_prog" in + # Accept absolute paths. +changequote(,)dnl + /* | [A-Za-z]:/*) + # Canonicalize the path of ld + re_direlt='/[^/][^/]*/\.\./' + sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%' +changequote([,])dnl + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + case "$host_os" in + cygwin*) + # Convert to a UNC path for cygwin + test -z "$LD" && LD=`echo X$ac_prog | sed -e "1s/^X//" -e "$sub_uncdrive"` + ;; + *) + test -z "$LD" && LD="$ac_prog" + ;; + esac + ;; + ## + ## FIXME: The code fails later on if we try to use an $LD with + ## '\\' path separators. + ## +changequote(,)dnl + [A-Za-z]:[\\]*) + # Canonicalize the path of ld + re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)' + sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%' +changequote([,])dnl + sub_uncdir='s%\\%/%g' + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%\1%"` + done + case "$host_os" in + cygwin*) + # Convert to a UNC path for cygwin + test -z "$LD" && LD=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"` + ;; + *) + test -z "$LD" && LD="$ac_prog" + ;; + esac + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(ac_cv_path_LD, +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog"; then + ac_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + test "$with_gnu_ld" != no && break + else + test "$with_gnu_ld" != yes && break + fi + fi + done + IFS="$ac_save_ifs" +else + ac_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$ac_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_SUBST(LD) +AC_PROG_LD_GNU +]) + +AC_DEFUN(AC_PROG_LD_GNU, +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then + ac_cv_prog_gnu_ld=yes +else + ac_cv_prog_gnu_ld=no +fi]) +]) + +# AC_PROG_NM - find the path to a BSD-compatible name lister +AC_DEFUN(AC_PROG_NM, +[AC_MSG_CHECKING([for BSD-compatible nm]) +AC_CACHE_VAL(ac_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + ac_cv_path_NM="$NM" +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/nm; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + ac_cv_path_NM="$ac_dir/nm -B" + break + elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + ac_cv_path_NM="$ac_dir/nm -p" + break + else + ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm +fi]) +NM="$ac_cv_path_NM" +AC_MSG_RESULT([$NM]) +AC_SUBST(NM) +]) + +# AC_SYS_NM_PARSE - Check for command ro grab the raw symbol name followed +# by C symbol name from nm. +AC_DEFUN(AC_SYS_NM_PARSE, +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_NM])dnl +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output]) +AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe, +[# These are sane defaults that work on at least a few old systems. +# {They come from Ultrix. What could be older than Ultrix?!! ;)} + +changequote(,)dnl +# Character class describing NM global symbol codes. +ac_symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform the above into a raw symbol and a C symbol. +ac_symxfrm='\1 \1' + +# Define system-specific variables. +case "$host_os" in +aix*) + ac_symcode='[BCDT]' + ;; +cygwin32* | mingw32*) + ac_symcode='[ABCDGISTW]' + ;; +irix*) + ac_symcode='[BCDEGRST]' + ;; +solaris*) + ac_symcode='[BDT]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then + ac_symcode='[ABCDGISTW]' +fi +changequote([,])dnl + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Write the raw and C identifiers. + # Unlike in ltconfig.in, we need $ac_symprfx before $ac_symxfrm here, + # otherwise AC_SYS_SYMBOL_UNDERSCORE will always be false + ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]$ac_symcode[ ][ ]*$ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'" + + # Check to see that the pipe works correctly. + ac_pipe_works=no + rm -f conftest.$ac_ext + cat > conftest.$ac_ext <<EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func;return 0;} +EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + ac_nlist=conftest.nm + + if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then + + # Try sorting and uniquifying the output. + if sort "$ac_nlist" | uniq > "$ac_nlist"T; then + mv -f "$ac_nlist"T "$ac_nlist" + else + rm -f "$ac_nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then + if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then + cat <<EOF > conftest.c +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c + + cat <<EOF >> conftest.c +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +changequote(,)dnl +lt_preloaded_symbols[] = +changequote([,])dnl +{ +EOF + sed 's/^\(.*\) \(.*\)$/ {"\1", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c + cat <<\EOF >> conftest.c + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftestm.$ac_objext + ac_save_LIBS="$LIBS" + ac_save_CFLAGS="$CFLAGS" + LIBS="conftestm.$ac_objext" + CFLAGS="$CFLAGS$no_builtin_flag" + if AC_TRY_EVAL(ac_link) && test -s conftest; then + ac_pipe_works=yes + else + echo "configure: failed program was:" >&AC_FD_CC + cat conftest.c >&AC_FD_CC + fi + LIBS="$ac_save_LIBS" + CFLAGS="$ac_save_CFLAGS" + else + echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC + fi + else + echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC + fi + else + echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC + fi + else + echo "$progname: failed program was:" >&AC_FD_CC + cat conftest.c >&AC_FD_CC + fi + rm -rf conftest* + + # Do not use the global_symbol_pipe unless it works. + if test "$ac_pipe_works" = yes; then + if test x"$ac_symprfx" = x"_"; then + ac_cv_sys_symbol_underscore=yes + else + ac_cv_sys_symbol_underscore=no + fi + break + else + ac_cv_sys_global_symbol_pipe= + fi +done +]) + +ac_result=yes +if test -z "$ac_cv_sys_global_symbol_pipe"; then + ac_result=no +fi +AC_MSG_RESULT($ac_result) +]) + +# AC_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32 +AC_DEFUN(AC_SYS_LIBTOOL_CYGWIN32, +[AC_CHECK_TOOL(DLLTOOL, dlltool, false) +AC_CHECK_TOOL(AS, as, false) +]) + +# AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols +# with an underscore? +AC_DEFUN(AC_SYS_SYMBOL_UNDERSCORE, +[AC_REQUIRE([AC_PROG_NM])dnl +AC_REQUIRE([AC_SYS_NM_PARSE])dnl +AC_MSG_CHECKING([for _ prefix in compiled symbols]) +AC_CACHE_VAL(ac_cv_sys_symbol_underscore, +[ac_cv_sys_symbol_underscore=no +cat > conftest.$ac_ext <<EOF +void nm_test_func(){} +int main(){nm_test_func;return 0;} +EOF +if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + ac_nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then + # See whether the symbols have a leading underscore. + if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then + ac_cv_sys_symbol_underscore=yes + else + if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then + : + else + echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC + fi + fi + else + echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC + fi +else + echo "configure: failed program was:" >&AC_FD_CC + cat conftest.c >&AC_FD_CC +fi +rm -rf conftest* +]) +AC_MSG_RESULT($ac_cv_sys_symbol_underscore) +USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} +AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl +]) + +dnl old names +AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl +AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl +AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl +AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl +AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl +AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl +AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl +AC_DEFUN(AM_SYS_NM_PARSE, [indir([AC_SYS_NM_PARSE])])dnl +AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE, [indir([AC_SYS_SYMBOL_UNDERSCORE])])dnl +AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN32, [indir([AC_SYS_LIBTOOL_CYGWIN32])])dnl + +# Do all the work for Automake. This macro actually does too much -- +# some checks are only needed if your package does certain things. +# But this isn't really a big deal. + +# serial 1 + +dnl Usage: +dnl AM_INIT_AUTOMAKE(package,version, [no-define]) + +AC_DEFUN(AM_INIT_AUTOMAKE, +[AC_REQUIRE([AC_PROG_INSTALL]) +PACKAGE=[$1] +AC_SUBST(PACKAGE) +VERSION=[$2] +AC_SUBST(VERSION) +dnl test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi +ifelse([$3],, +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) +AC_REQUIRE([AM_SANITY_CHECK]) +AC_REQUIRE([AC_ARG_PROGRAM]) +dnl FIXME This is truly gross. +missing_dir=`cd $ac_aux_dir && pwd` +AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) +AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) +AC_REQUIRE([AC_PROG_MAKE_SET])]) + +# +# Check to make sure that the build environment is sane. +# + +AC_DEFUN(AM_SANITY_CHECK, +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftestfile +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` + if test "[$]*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftestfile` + fi + if test "[$]*" != "X $srcdir/configure conftestfile" \ + && test "[$]*" != "X conftestfile $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "[$]2" = conftestfile + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +rm -f conftest* +AC_MSG_RESULT(yes)]) + +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) +dnl The program must properly implement --version. +AC_DEFUN(AM_MISSING_PROG, +[AC_MSG_CHECKING(for working $2) +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if ($2 --version) < /dev/null > /dev/null 2>&1; then + $1=$2 + AC_MSG_RESULT(found) +else + $1="$3/missing $2" + AC_MSG_RESULT(missing) +fi +AC_SUBST($1)]) + +# Like AC_CONFIG_HEADER, but automatically create stamp file. + +AC_DEFUN(AM_CONFIG_HEADER, +[AC_PREREQ([2.12]) +AC_CONFIG_HEADER([$1]) +dnl When config.status generates a header, we must update the stamp-h file. +dnl This file resides in the same directory as the config header +dnl that is generated. We must strip everything past the first ":", +dnl and everything past the last "/". +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, +<<am_indx=1 +for am_file in <<$1>>; do + case " <<$>>CONFIG_HEADERS " in + *" <<$>>am_file "*<<)>> + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx + ;; + esac + am_indx=`expr "<<$>>am_indx" + 1` +done<<>>dnl>>) +changequote([,]))]) + +# Define a conditional. + +AC_DEFUN(AM_CONDITIONAL, +[AC_SUBST($1_TRUE) +AC_SUBST($1_FALSE) +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi]) + + +dnl AM_PROG_LEX +dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT +AC_DEFUN(AM_PROG_LEX, +[missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1) +AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex") +AC_PROG_LEX +AC_DECL_YYTEXT]) + diff --git a/apps/gperf/version.texi b/apps/gperf/version.texi index ca2c8c88bd3..11343a6bd03 100644 --- a/apps/gperf/version.texi +++ b/apps/gperf/version.texi @@ -1,3 +1,3 @@ -@set UPDATED 24 November 1998 +@set UPDATED 25 November 1998 @set EDITION 2.0 @set VERSION 2.0 diff --git a/config.guess b/config.guess new file mode 100755 index 00000000000..4e5345fac2e --- /dev/null +++ b/config.guess @@ -0,0 +1,973 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Written by Per Bothner <bothner@cygnus.com>. +# The master version of this file is at the FSF in /home/gd/gnu/lib. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit system type (host/target name). +# +# Only a few systems have been added to this list; please add others +# (but try to keep the structure clean). +# + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 8/24/94.) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +dummy=dummy-$$ +trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15 + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + alpha:OSF1:*:*) + if test $UNAME_RELEASE = "V4.0"; then + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + fi + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + cat <<EOF >$dummy.s + .globl main + .ent main +main: + .frame \$30,0,\$26,0 + .prologue 0 + .long 0x47e03d80 # implver $0 + lda \$2,259 + .long 0x47e20c21 # amask $2,$1 + srl \$1,8,\$2 + sll \$2,2,\$2 + sll \$0,3,\$0 + addl \$1,\$0,\$0 + addl \$2,\$0,\$0 + ret \$31,(\$26),1 + .end main +EOF + ${CC-cc} $dummy.s -o $dummy 2>/dev/null + if test "$?" = 0 ; then + ./$dummy + case "$?" in + 7) + UNAME_MACHINE="alpha" + ;; + 15) + UNAME_MACHINE="alphaev5" + ;; + 14) + UNAME_MACHINE="alphaev56" + ;; + 10) + UNAME_MACHINE="alphapca56" + ;; + 16) + UNAME_MACHINE="alphaev6" + ;; + esac + fi + rm -f $dummy.s $dummy + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]` + exit 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-cbm-sysv4 + exit 0;; + amiga:NetBSD:*:*) + echo m68k-cbm-netbsd${UNAME_RELEASE} + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit 0 ;; + arc64:OpenBSD:*:*) + echo mips64el-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hkmips:OpenBSD:*:*) + echo mips-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + pmax:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mips-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + wgrisc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + arm32:NetBSD:*:*) + echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + SR2?01:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit 0;; + Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + NILE:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + atari*:NetBSD:*:*) + echo m68k-atari-netbsd${UNAME_RELEASE} + exit 0 ;; + atari*:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:NetBSD:*:*) + echo m68k-sun-netbsd${UNAME_RELEASE} + exit 0 ;; + sun3*:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:NetBSD:*:*) + echo m68k-apple-netbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + macppc:NetBSD:*:*) + echo powerpc-apple-netbsd${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + sed 's/^ //' << EOF >$dummy.c + int main (argc, argv) int argc; char **argv; { + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + ${CC-cc} $dummy.c -o $dummy \ + && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && rm $dummy.c $dummy && exit 0 + rm -f $dummy.c $dummy + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \ + -o ${TARGET_BINARY_INTERFACE}x = x ] ; then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else echo i586-dg-dgux${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i?86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + sed 's/^ //' << EOF >$dummy.c + #include <sys/systemcfg.h> + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + ${CC-cc} $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 + rm -f $dummy.c $dummy + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:4) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` + if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=4.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[34678]??:HP-UX:*:*) + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 ) + sed 's/^ //' << EOF >$dummy.c + #include <stdlib.h> + #include <unistd.h> + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (${CC-cc} $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` + rm -f $dummy.c $dummy + esac + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + sed 's/^ //' << EOF >$dummy.c + #include <unistd.h> + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + ${CC-cc} $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0 + rm -f $dummy.c $dummy + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i?86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*X-MP:*:*:*) + echo xmp-cray-unicos + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ + exit 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} + exit 0 ;; + CRAY*T3E:*:*:*) + echo t3e-cray-unicosmk${UNAME_RELEASE} + exit 0 ;; + CRAY-2:*:*:*) + echo cray2-cray-unicos + exit 0 ;; + F300:UNIX_System_V:*:*) + FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + F301:UNIX_System_V:*:*) + echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'` + exit 0 ;; + hp3[0-9][05]:NetBSD:*:*) + echo m68k-hp-netbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + i?86:BSD/386:*:* | i?86:BSD/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:NetBSD:*:*) + echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + exit 0 ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit 0 ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + *:Linux:*:*) + # uname on the ARM produces all sorts of strangeness, and we need to + # filter it out. + case "$UNAME_MACHINE" in + arm* | sa110*) UNAME_MACHINE="arm" ;; + esac + + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. + ld_help_string=`ld --help 2>&1` + ld_supported_emulations=`echo $ld_help_string \ + | sed -ne '/supported emulations:/!d + s/[ ][ ]*/ /g + s/.*supported emulations: *// + s/ .*// + p'` + case "$ld_supported_emulations" in + i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;; + i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;; + sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;; + elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;; + esac + + if test "${UNAME_MACHINE}" = "alpha" ; then + sed 's/^ //' <<EOF >$dummy.s + .globl main + .ent main + main: + .frame \$30,0,\$26,0 + .prologue 0 + .long 0x47e03d80 # implver $0 + lda \$2,259 + .long 0x47e20c21 # amask $2,$1 + srl \$1,8,\$2 + sll \$2,2,\$2 + sll \$0,3,\$0 + addl \$1,\$0,\$0 + addl \$2,\$0,\$0 + ret \$31,(\$26),1 + .end main +EOF + LIBC="" + ${CC-cc} $dummy.s -o $dummy 2>/dev/null + if test "$?" = 0 ; then + ./$dummy + case "$?" in + 7) + UNAME_MACHINE="alpha" + ;; + 15) + UNAME_MACHINE="alphaev5" + ;; + 14) + UNAME_MACHINE="alphaev56" + ;; + 10) + UNAME_MACHINE="alphapca56" + ;; + 16) + UNAME_MACHINE="alphaev6" + ;; + esac + + objdump --private-headers $dummy | \ + grep ld.so.1 > /dev/null + if test "$?" = 0 ; then + LIBC="libc1" + fi + fi + rm -f $dummy.s $dummy + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0 + elif test "${UNAME_MACHINE}" = "mips" ; then + cat >$dummy.c <<EOF +main(argc, argv) + int argc; + char *argv[]; +{ +#ifdef __MIPSEB__ + printf ("%s-unknown-linux-gnu\n", argv[1]); +#endif +#ifdef __MIPSEL__ + printf ("%sel-unknown-linux-gnu\n", argv[1]); +#endif + return 0; +} +EOF + ${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 + rm -f $dummy.c $dummy + else + # Either a pre-BFD a.out linker (linux-gnuoldld) + # or one that does not give us useful --help. + # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout. + # If ld does not provide *any* "supported emulations:" + # that means it is gnuoldld. + echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:" + test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0 + + case "${UNAME_MACHINE}" in + i?86) + VENDOR=pc; + ;; + *) + VENDOR=unknown; + ;; + esac + # Determine whether the default compiler is a.out or elf + cat >$dummy.c <<EOF +#include <features.h> +main(argc, argv) + int argc; + char *argv[]; +{ +#ifdef __ELF__ +# ifdef __GLIBC__ +# if __GLIBC__ >= 2 + printf ("%s-${VENDOR}-linux-gnu\n", argv[1]); +# else + printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); +# endif +# else + printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]); +# endif +#else + printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]); +#endif + return 0; +} +EOF + ${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 + rm -f $dummy.c $dummy + fi ;; +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions +# are messed up and put the nodename in both sysname and nodename. + i?86:DYNIX/ptx:4*:*) + echo i386-sequent-sysv4 + exit 0 ;; + i?86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit 0 ;; + i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*) + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE} + fi + exit 0 ;; + i?86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL + elif /bin/uname -X 2>/dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` + (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit 0 ;; + i?86:UnixWare:*:*) + if /bin/uname -X 2>/dev/null >/dev/null ; then + (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + fi + echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION} + exit 0 ;; + pc:*:*:*) + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + M68*:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + i?86:LynxOS:2.*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; + PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says <Richard.M.Bartel@ccMail.Census.GOV> + echo i586-unisys-sysv4 + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes <hewes@openmarket.com>. + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + news*:NEWS-OS:*:6*) + echo mips-sony-newsos6 + exit 0 ;; + R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit 0 ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit 0 ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit 0 ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit 0 ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +cat >$dummy.c <<EOF +#ifdef _SEQUENT_ +# include <sys/types.h> +# include <sys/utsname.h> +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include <sys/param.h> + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +#if !defined (ultrix) + printf ("vax-dec-bsd\n"); exit (0); +#else + printf ("vax-dec-ultrix\n"); exit (0); +#endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +${CC-cc} $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0 +rm -f $dummy.c $dummy + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +#echo '(Unable to guess system type)' 1>&2 + +exit 1 diff --git a/config.sub b/config.sub new file mode 100755 index 00000000000..da8b7ae65ca --- /dev/null +++ b/config.sub @@ -0,0 +1,956 @@ +#! /bin/sh +# Configuration validation subroutine script, version 1.1. +# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc. +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +if [ x$1 = x ] +then + echo Configuration name missing. 1>&2 + echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 + echo "or $0 ALIAS" 1>&2 + echo where ALIAS is a recognized configuration type. 1>&2 + exit 1 +fi + +# First pass through any local machine types. +case $1 in + *local*) + echo $1 + exit 0 + ;; + *) + ;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + linux-gnu*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple) + os= + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \ + | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \ + | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \ + | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \ + | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \ + | mips64 | mipsel | mips64el | mips64orion | mips64orionel \ + | mipstx39 | mipstx39el \ + | sparc | sparclet | sparclite | sparc64 | v850) + basic_machine=$basic_machine-unknown + ;; + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i[34567]86) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \ + | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ + | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ + | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \ + | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \ + | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \ + | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \ + | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \ + | sparc64-* | mips64-* | mipsel-* \ + | mips64el-* | mips64orion-* | mips64orionel-* \ + | mipstx39-* | mipstx39el-* \ + | f301-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-cbm + ;; + amigaos | amigados) + basic_machine=m68k-cbm + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-cbm + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | ymp) + basic_machine=ymp-cray + os=-unicos + ;; + cray2) + basic_machine=cray2-cray + os=-unicos + ;; + [ctj]90-cray) + basic_machine=c90-cray + os=-unicos + ;; + crds | unos) + basic_machine=m68k-crds + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + os=-mvs + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i[34567]86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i[34567]86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i[34567]86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i[34567]86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + miniframe) + basic_machine=m68000-convergent + ;; + mipsel*-linux*) + basic_machine=mipsel-unknown + os=-linux-gnu + ;; + mips*-linux*) + basic_machine=mips-unknown + os=-linux-gnu + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + np1) + basic_machine=np1-gould + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | nexen) + basic_machine=i586-pc + ;; + pentiumpro | p6 | k6 | 6x86) + basic_machine=i686-pc + ;; + pentiumii | pentium2) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | nexen-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | k6-* | 6x86-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=rs6000-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + xmp) + basic_machine=xmp-cray + os=-unicos + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + mips) + if [ x$os = x-linux-gnu ]; then + basic_machine=mips-unknown + else + basic_machine=mips-mips + fi + ;; + romp) + basic_machine=romp-ibm + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sparc) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -rhapsody* \ + | -openstep*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -ctix* | -uts*) + os=-sysv + ;; + -ns2 ) + os=-nextstep2 + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -xenix) + os=-xenix + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-semi) + os=-aout + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-ibm) + os=-aix + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f301-fujitsu) + os=-uxpv + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -hpux*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -vxsim* | -vxworks*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os diff --git a/configure b/configure new file mode 100755 index 00000000000..fb363093b32 --- /dev/null +++ b/configure @@ -0,0 +1,29276 @@ +#! /bin/sh + +# From configure.in Revision 0.53 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# serial 31 AC_PROG_LIBTOOL + + +# AC_ENABLE_SHARED - implement the --enable-shared flag +# Usage: AC_ENABLE_SHARED[(DEFAULT)] +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to +# `yes'. + + +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared + + +# AC_DISABLE_STATIC - set the default static flag to --disable-static + + +# AC_ENABLE_STATIC - implement the --enable-static flag +# Usage: AC_ENABLE_STATIC[(DEFAULT)] +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to +# `yes'. + + + +# AC_PROG_LD - find the path to the GNU or non-GNU linker + + + + +# AC_PROG_NM - find the path to a BSD-compatible name lister + + +# AC_SYS_NM_PARSE - Check for command ro grab the raw symbol name followed +# by C symbol name from nm. + + +# AC_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32 + + +# AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols +# with an underscore? + + + +# Do all the work for Automake. This macro actually does too much -- +# some checks are only needed if your package does certain things. +# But this isn't really a big deal. + +# serial 1 + + + + +# +# Check to make sure that the build environment is sane. +# + + + + + +# Like AC_CONFIG_HEADER, but automatically create stamp file. + + + +# Define a conditional. + + + + + + +# Guess values for system-dependent variables and create Makefiles. +# Generated automatically using autoconf version 2.13 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. +# +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. + +# Defaults: +ac_help= +ac_default_prefix=/usr/local +# Any additions from configure.in: +ac_help="$ac_help + --enable-static[=PKGS] build static libraries [default=no]" +ac_help="$ac_help + --enable-shared[=PKGS] build shared libraries [default=yes]" +ac_help="$ac_help + --with-gnu-ld assume the C compiler uses GNU ld [default=no]" +ac_help="$ac_help + --disable-libtool-lock force libtool not to do file locking" +ac_help="$ac_help + --enable-debug enable debugging [default=yes]" +ac_help="$ac_help + --enable-exceptions enable C++ exception handling [default=yes]" +ac_help="$ac_help + --enable-fast enable -fast flag, e.g. Sun C++ [default=no]" +ac_help="$ac_help + --enable-inline enable code inlining [default=yes]" +ac_help="$ac_help + --enable-log-msg-prop enable threads inheriting + ACE_Log_Msg properties from parent + thread [default=yes]" +ac_help="$ac_help + --enable-logging enable ACE logging macros [default=yes]" +ac_help="$ac_help + --enable-malloc-stats enable malloc statistics + collection [default=no]" +ac_help="$ac_help + --enable-optimize enable additional optimizations [default=yes]" +ac_help="$ac_help + --enable-probe enable ACE_Timeprobes [default=no]" +ac_help="$ac_help + --enable-profile enable profiling [default=no]" +ac_help="$ac_help + --enable-purify Purify all executables [default=no]" +ac_help="$ac_help + --enable-quantify Quantify all executables [default=no]" +ac_help="$ac_help + --enable-reentrant enable reentrant functions [default=yes]" +ac_help="$ac_help + --enable-repo use GNU template repository + GNU C++ with repo patches and + EGCS only [default=no]" +ac_help="$ac_help + --enable-rtti enable run-time type + identification + *Currently only for Sun C++ [default=no]" +ac_help="$ac_help + --enable-static-obj-mgr enable static Object_Manager [default=yes]" +ac_help="$ac_help + --enable-threads enable thread support [default=yes]" +ac_help="$ac_help + --enable-verb-not-sup enable verbose ENOTSUP reports [default=no]" +ac_help="$ac_help + --enable-trace enable ACE tracing [default=no]" +ac_help="$ac_help + --enable-xt-reactor build support for the XtReactor [default=no]" +ac_help="$ac_help + --with-x use the X Window System" +ac_help="$ac_help + --with-gperf compile the gperf program [default=yes]" +ac_help="$ac_help + --with-orbix[=DIR] compile ACE with Orbix [default=no]" +ac_help="$ac_help + --with-tli-device[=DEV] device for TCP on TLI [default=/dev/tcp]" + +# Initialize some variables set by options. +# The variables have the same names as the options, with +# dashes changed to underlines. +build=NONE +cache_file=./config.cache +exec_prefix=NONE +host=NONE +no_create= +nonopt=NONE +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +target=NONE +verbose= +x_includes=NONE +x_libraries=NONE +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datadir='${prefix}/share' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +libdir='${exec_prefix}/lib' +includedir='${prefix}/include' +oldincludedir='/usr/include' +infodir='${prefix}/info' +mandir='${prefix}/man' + +# Initialize some other variables. +subdirs= +MFLAGS= MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} +# Maximum number of lines to put in a shell here document. +ac_max_here_lines=12 + +ac_prev= +for ac_option +do + + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval "$ac_prev=\$ac_option" + ac_prev= + continue + fi + + case "$ac_option" in + -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; + *) ac_optarg= ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case "$ac_option" in + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir="$ac_optarg" ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build="$ac_optarg" ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file="$ac_optarg" ;; + + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ + | --da=*) + datadir="$ac_optarg" ;; + + -disable-* | --disable-*) + ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + eval "enable_${ac_feature}=no" ;; + + -enable-* | --enable-*) + ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } + fi + ac_feature=`echo $ac_feature| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "enable_${ac_feature}='$ac_optarg'" ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix="$ac_optarg" ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he) + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat << EOF +Usage: configure [options] [host] +Options: [defaults in brackets after descriptions] +Configuration: + --cache-file=FILE cache test results in FILE + --help print this message + --no-create do not create output files + --quiet, --silent do not print \`checking...' messages + --version print the version of autoconf that created configure +Directory and file names: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [same as prefix] + --bindir=DIR user executables in DIR [EPREFIX/bin] + --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] + --libexecdir=DIR program executables in DIR [EPREFIX/libexec] + --datadir=DIR read-only architecture-independent data in DIR + [PREFIX/share] + --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data in DIR + [PREFIX/com] + --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] + --libdir=DIR object code libraries in DIR [EPREFIX/lib] + --includedir=DIR C header files in DIR [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] + --infodir=DIR info documentation in DIR [PREFIX/info] + --mandir=DIR man documentation in DIR [PREFIX/man] + --srcdir=DIR find the sources in DIR [configure dir or ..] + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM + run sed PROGRAM on installed program names +EOF + cat << EOF +Host type: + --build=BUILD configure for building on BUILD [BUILD=HOST] + --host=HOST configure for HOST [guessed] + --target=TARGET configure for TARGET [TARGET=HOST] +Features and packages: + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR +EOF + if test -n "$ac_help"; then + echo "--enable and --with options recognized:$ac_help" + fi + exit 0 ;; + + -host | --host | --hos | --ho) + ac_prev=host ;; + -host=* | --host=* | --hos=* | --ho=*) + host="$ac_optarg" ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir="$ac_optarg" ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir="$ac_optarg" ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir="$ac_optarg" ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir="$ac_optarg" ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst \ + | --locals | --local | --loca | --loc | --lo) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) + localstatedir="$ac_optarg" ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir="$ac_optarg" ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir="$ac_optarg" ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix="$ac_optarg" ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix="$ac_optarg" ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix="$ac_optarg" ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name="$ac_optarg" ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir="$ac_optarg" ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir="$ac_optarg" ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site="$ac_optarg" ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir="$ac_optarg" ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir="$ac_optarg" ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target="$ac_optarg" ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers) + echo "configure generated by autoconf version 2.13" + exit 0 ;; + + -with-* | --with-*) + ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + case "$ac_option" in + *=*) ;; + *) ac_optarg=yes ;; + esac + eval "with_${ac_package}='$ac_optarg'" ;; + + -without-* | --without-*) + ac_package=`echo $ac_option|sed -e 's/-*without-//'` + # Reject names that are not valid shell variable names. + if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then + { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } + fi + ac_package=`echo $ac_package| sed 's/-/_/g'` + eval "with_${ac_package}=no" ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes="$ac_optarg" ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries="$ac_optarg" ;; + + -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } + ;; + + *) + if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then + echo "configure: warning: $ac_option: invalid host type" 1>&2 + fi + if test "x$nonopt" != xNONE; then + { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } + fi + nonopt="$ac_option" + ;; + + esac +done + +if test -n "$ac_prev"; then + { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } +fi + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +# File descriptor usage: +# 0 standard input +# 1 file creation +# 2 errors and warnings +# 3 some systems may open it to /dev/tty +# 4 used on the Kubota Titan +# 6 checking for... messages and results +# 5 compiler messages saved in config.log +if test "$silent" = yes; then + exec 6>/dev/null +else + exec 6>&1 +fi +exec 5>./config.log + +echo "\ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. +" 1>&5 + +# Strip out --no-create and --no-recursion so they do not pile up. +# Also quote any args containing shell metacharacters. +ac_configure_args= +for ac_arg +do + case "$ac_arg" in + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c) ;; + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; + *) ac_configure_args="$ac_configure_args $ac_arg" ;; + esac +done + +# NLS nuisances. +# Only set these to C if already set. These must not be set unconditionally +# because not all systems understand e.g. LANG=C (notably SCO). +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! +# Non-C LC_CTYPE values break the ctype check. +if test "${LANG+set}" = set; then LANG=C; export LANG; fi +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi +if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -rf conftest* confdefs.h +# AIX cpp loses on an empty file, so make sure it contains at least a newline. +echo > confdefs.h + +# A filename unique to this package, relative to the directory that +# configure is in, which we can look for to find out if srcdir is correct. +ac_unique_file=ace/ACE.cpp + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then its parent. + ac_prog=$0 + ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` + test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. + srcdir=$ac_confdir + if test ! -r $srcdir/$ac_unique_file; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r $srcdir/$ac_unique_file; then + if test "$ac_srcdir_defaulted" = yes; then + { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } + else + { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } + fi +fi +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` + +# Prefer explicitly selected file to automatically selected ones. +if test -z "$CONFIG_SITE"; then + if test "x$prefix" != xNONE; then + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" + else + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" + fi +fi +for ac_site_file in $CONFIG_SITE; do + if test -r "$ac_site_file"; then + echo "loading site script $ac_site_file" + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + echo "loading cache $cache_file" + . $cache_file +else + echo "creating cache $cache_file" + > $cache_file +fi + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +ac_exeext= +ac_objext=o +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then + # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. + if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then + ac_n= ac_c=' +' ac_t=' ' + else + ac_n=-n ac_c= ac_t= + fi +else + ac_n= ac_c='\c' ac_t= +fi + + + + + +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } +fi +ac_config_guess=$ac_aux_dir/config.guess +ac_config_sub=$ac_aux_dir/config.sub +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + + +# Do some error checking and defaulting for the host and target type. +# The inputs are: +# configure --host=HOST --target=TARGET --build=BUILD NONOPT +# +# The rules are: +# 1. You are not allowed to specify --host, --target, and nonopt at the +# same time. +# 2. Host defaults to nonopt. +# 3. If nonopt is not specified, then host defaults to the current host, +# as determined by config.guess. +# 4. Target and build default to nonopt. +# 5. If nonopt is not specified, then target and build default to host. + +# The aliases save the names the user supplied, while $host etc. +# will get cano +case $host---$target---$nonopt in +NONE---*---* | *---NONE---* | *---*---NONE) ;; +*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; +esac + + +# Make sure we can run config.sub. +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } +fi + +echo $ac_n "checking host system type""... $ac_c" 1>&6 +echo "configure:759: checking host system type" >&5 + +host_alias=$host +case "$host_alias" in +NONE) + case $nonopt in + NONE) + if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : + else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } + fi ;; + *) host_alias=$nonopt ;; + esac ;; +esac + +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$host" 1>&6 + +echo $ac_n "checking target system type""... $ac_c" 1>&6 +echo "configure:780: checking target system type" >&5 + +target_alias=$target +case "$target_alias" in +NONE) + case $nonopt in + NONE) target_alias=$host_alias ;; + *) target_alias=$nonopt ;; + esac ;; +esac + +target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` +target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$target" 1>&6 + +echo $ac_n "checking build system type""... $ac_c" 1>&6 +echo "configure:798: checking build system type" >&5 + +build_alias=$build +case "$build_alias" in +NONE) + case $nonopt in + NONE) build_alias=$host_alias ;; + *) build_alias=$nonopt ;; + esac ;; +esac + +build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` +build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +echo "$ac_t""$build" 1>&6 + +test "$host_alias" != "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + + + +PACKAGE=ace +ACE_VERSION=`head -1 ${srcdir}/VERSION | sed 's/.*version \([0-9.]*\).*/\1/'` + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# ./install, which can be erroneously created by make from ./install.sh. +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 +echo "configure:837: checking for a BSD compatible install" >&5 +if test -z "$INSTALL"; then +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" + for ac_dir in $PATH; do + # Account for people who put trailing slashes in PATH elements. + case "$ac_dir/" in + /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + if test -f $ac_dir/$ac_prog; then + if test $ac_prog = install && + grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + else + ac_cv_path_install="$ac_dir/$ac_prog -c" + break 2 + fi + fi + done + ;; + esac + done + IFS="$ac_save_IFS" + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL="$ac_cv_path_install" + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL="$ac_install_sh" + fi +fi +echo "$ac_t""$INSTALL" 1>&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 +echo "configure:890: checking whether build environment is sane" >&5 +# Just in case +sleep 1 +echo timestamp > conftestfile +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftestfile` + fi + if test "$*" != "X $srcdir/configure conftestfile" \ + && test "$*" != "X conftestfile $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { echo "configure: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" 1>&2; exit 1; } + fi + + test "$2" = conftestfile + ) +then + # Ok. + : +else + { echo "configure: error: newly created file is older than distributed files! +Check your system clock" 1>&2; exit 1; } +fi +rm -f conftest* +echo "$ac_t""yes" 1>&6 +if test "$program_transform_name" = s,x,x,; then + program_transform_name= +else + # Double any \ or $. echo might interpret backslashes. + cat <<\EOF_SED > conftestsed +s,\\,\\\\,g; s,\$,$$,g +EOF_SED + program_transform_name="`echo $program_transform_name|sed -f conftestsed`" + rm -f conftestsed +fi +test "$program_prefix" != NONE && + program_transform_name="s,^,${program_prefix},; $program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" + +# sed with no file args requires a program. +test "$program_transform_name" = "" && program_transform_name="s,x,x," + +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 +echo "configure:947: checking whether ${MAKE-make} sets \${MAKE}" >&5 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftestmake <<\EOF +all: + @echo 'ac_maketemp="${MAKE}"' +EOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftestmake +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$ac_t""yes" 1>&6 + SET_MAKE= +else + echo "$ac_t""no" 1>&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + +PACKAGE="$PACKAGE" + +VERSION="$ACE_VERSION" + +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } +fi +cat >> confdefs.h <<EOF +#define PACKAGE "$PACKAGE" +EOF + +cat >> confdefs.h <<EOF +#define VERSION "$VERSION" +EOF + + + +missing_dir=`cd $ac_aux_dir && pwd` +echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 +echo "configure:993: checking for working aclocal" >&5 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (aclocal --version) < /dev/null > /dev/null 2>&1; then + ACLOCAL=aclocal + echo "$ac_t""found" 1>&6 +else + ACLOCAL="$missing_dir/missing aclocal" + echo "$ac_t""missing" 1>&6 +fi + +echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 +echo "configure:1006: checking for working autoconf" >&5 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (autoconf --version) < /dev/null > /dev/null 2>&1; then + AUTOCONF=autoconf + echo "$ac_t""found" 1>&6 +else + AUTOCONF="$missing_dir/missing autoconf" + echo "$ac_t""missing" 1>&6 +fi + +echo $ac_n "checking for working automake""... $ac_c" 1>&6 +echo "configure:1019: checking for working automake" >&5 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (automake --version) < /dev/null > /dev/null 2>&1; then + AUTOMAKE=automake + echo "$ac_t""found" 1>&6 +else + AUTOMAKE="$missing_dir/missing automake" + echo "$ac_t""missing" 1>&6 +fi + +echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 +echo "configure:1032: checking for working autoheader" >&5 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (autoheader --version) < /dev/null > /dev/null 2>&1; then + AUTOHEADER=autoheader + echo "$ac_t""found" 1>&6 +else + AUTOHEADER="$missing_dir/missing autoheader" + echo "$ac_t""missing" 1>&6 +fi + +echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 +echo "configure:1045: checking for working makeinfo" >&5 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (makeinfo --version) < /dev/null > /dev/null 2>&1; then + MAKEINFO=makeinfo + echo "$ac_t""found" 1>&6 +else + MAKEINFO="$missing_dir/missing makeinfo" + echo "$ac_t""missing" 1>&6 +fi + + + + + + + + +# Pull the hash mark out of the macro call to avoid m4 problems. +ac_msg="whether #! works in shell scripts" +echo $ac_n "checking $ac_msg""... $ac_c" 1>&6 +echo "configure:1067: checking $ac_msg" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo '#! /bin/cat +exit 69 +' > conftest +chmod u+x conftest +(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) +if test $? -ne 69; then + ac_cv_sys_interpreter=yes +else + ac_cv_sys_interpreter=no +fi +rm -f conftest +fi + +echo "$ac_t""$ac_cv_sys_interpreter" 1>&6 +interpval="$ac_cv_sys_interpreter" + + +# Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1091: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="gcc" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1121: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_prog_rejected=no + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + break + fi + done + IFS="$ac_save_ifs" +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# -gt 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + set dummy "$ac_dir/$ac_word" "$@" + shift + ac_cv_prog_CC="$@" + fi +fi +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -z "$CC"; then + case "`uname -s`" in + *win32* | *WIN32*) + # Extract the first word of "cl", so it can be a program name with args. +set dummy cl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1172: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CC="cl" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CC="$ac_cv_prog_CC" +if test -n "$CC"; then + echo "$ac_t""$CC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + ;; + esac + fi + test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } +fi + +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:1204: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 + +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +cat > conftest.$ac_ext << EOF + +#line 1215 "configure" +#include "confdefs.h" + +main(){return(0);} +EOF +if { (eval echo configure:1220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cc_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cc_cross=no + else + ac_cv_prog_cc_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cc_works=no +fi +rm -fr conftest* +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 +if test $ac_cv_prog_cc_works = no; then + { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:1246: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 +cross_compiling=$ac_cv_prog_cc_cross + +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 +echo "configure:1251: checking whether we are using GNU C" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.c <<EOF +#ifdef __GNUC__ + yes; +#endif +EOF +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configu + ac_cv_prog_gcc=yes +else + ac_cv_prog_gcc=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gcc" 1>&6 + +if test $ac_cv_prog_gcc = yes; then + GCC=yes +else + GCC= +fi + +ac_test_CFLAGS="${CFLAGS+set}" +ac_save_CFLAGS="$CFLAGS" +CFLAGS= +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 +echo "configure:1279: checking whether ${CC-cc} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.c +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then + ac_cv_prog_cc_g=yes +else + ac_cv_prog_cc_g=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi + +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 +echo "configure:1311: checking how to run the C preprocessor" >&5 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # This must be in double quotes, not single quotes, because CPP may get + # substituted into the Makefile and "${CC-cc}" will confuse make. + CPP="${CC-cc} -E" + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. + cat > conftest.$ac_ext <<EOF +#line 1326 "configure" +#include "confdefs.h" +#include <assert.h> +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -E -traditional-cpp" + cat > conftest.$ac_ext <<EOF +#line 1343 "configure" +#include "confdefs.h" +#include <assert.h> +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP="${CC-cc} -nologo -E" + cat > conftest.$ac_ext <<EOF +#line 1360 "configure" +#include "confdefs.h" +#include <assert.h> +Syntax Error +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CPP=/lib/cpp +fi +rm -f conftest* +fi +rm -f conftest* +fi +rm -f conftest* + ac_cv_prog_CPP="$CPP" +fi + CPP="$ac_cv_prog_CPP" +else + ac_cv_prog_CPP="$CPP" +fi +echo "$ac_t""$CPP" 1>&6 + +if test "x$CC" != xcc; then + echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 +echo "configure:1392: checking whether $CC and cc understand -c and -o together" >&5 +else + echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 +echo "configure:1395: checking whether cc understands -c and -o together" >&5 +fi +set dummy $CC; ac_cc="`echo $2 | + sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" +if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'foo(){}' > conftest.c +# Make sure it works both with $CC and with simple cc. +# We do the test twice because some compilers refuse to overwrite an +# existing .o file with -o, though they will create one. +ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' +if { (eval eho configure:1407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && + test -f conftest.o && { (eval echo configure:1408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; +then + eval ac_cv_prog_cc_${ac_cc}_c_o=yes + if test "x$CC" != xcc; then + # Test first that cc exists at all. + if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then + ac_try='cc -c conftest.c -o conftest.o 1>&5' + if { (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && + test -f conftest.o && { (eval echo configure:1416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; + then + # cc works too. + : + else + # cc exists but doesn't like -o. + eval ac_cv_prog_cc_${ac_cc}_c_o=no + fi + fi + fi +else + eval ac_cv_prog_cc_${ac_cc}_c_o=no +fi +rm -f conftest* + +fi +if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 + cat >> confdefs.h <<\EOF +#define NO_MINUS_C_MINUS_O 1 +EOF + +fi + + +for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1448: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_CXX="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +CXX="$ac_cv_prog_CXX" +if test -n "$CXX"; then + echo "$ac_t""$CXX" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$CXX" && break +done +test -n "$CXX" || CXX="gcc" + + +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 +echo "configure:1480: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 + +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + +cat > conftest.$ac_ext << EOF + +#line 1491 "configure" +#include "confdefs.h" + +int main(){return(0);} +EOF +if { (eval echo configure:1496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + ac_cv_prog_cxx_works=yes + # If we can't run a trivial program, we are probably using a cross compiler. + if (./conftest; exit) 2>/dev/null; then + ac_cv_prog_cxx_cross=no + else + ac_cv_prog_cxx_cross=yes + fi +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + ac_cv_prog_cxx_works=no +fi +rm -fr conftest* +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross + +echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 +if test $ac_cv_prog_cxx_works = no; then + { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } +fi +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 +echo "configure:1522: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 +cross_compiling=$ac_cv_prog_cxx_cross + +echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 +echo "configure:1527: checking whether we are using GNU C++" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.C <<EOF +#ifdef __GNUC__ + yes; +#endif +EOF +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + ac_cv_prog_gxx=yes +else + ac_cv_prog_gxx=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gxx" 1>&6 + +if test $ac_cv_prog_gxx = yes; then + GXX=yes +else + GXX= +fi + +ac_test_CXXFLAGS="${CXXFLAGS+set}" +ac_save_CXXFLAGS="$CXXFLAGS" +CXXFLAGS= +echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 +echo "configure:1555: checking whether ${CXX-g++} accepts -g" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + echo 'void f(){}' > conftest.cc +if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then + ac_cv_prog_cxx_g=yes +else + ac_cv_prog_cxx_g=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS="$ac_save_CXXFLAGS" +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi + +echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 +echo "configure:1587: checking how to run the C++ preprocessor" >&5 +if test -z "$CXXCPP"; then +if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + CXXCPP="${CXX-g++} -E" + cat > conftest.$ac_ext <<EOF +#line 1600 "configure" +#include "confdefs.h" +#include <stdlib.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + : +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + CXXCPP=/lib/cpp +fi +rm -f conftest* + ac_cv_prog_CXXCPP="$CXXCPP" +ac_ext=c +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CPP $CPPFLAGS' +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cc_cross +fi +fi +CXXCPP="$ac_cv_prog_CXXCPP" +echo "$ac_t""$CXXCPP" 1>&6 + + +if test -n "$GXX"; then + if g++ --version | egrep -v '^2\.[0-7]' > /dev/null; then + acenothinghere="" + else + cat >> confdefs.h <<\EOF +#define ACE_HAS_GNUG_PRE_2_8 1 +EOF + cat >> confdefs.h <<\EOF +#define ACE_HAS_GNUC_BROKEN_TEMPLATE_INLINE_FUNCTIONS 1 +EOF + fi +fi + + + +if test X$cross_compiling = Xyes; then + ACE_CROSS_COMPILED_TRUE= + ACE_CROSS_COMPILED_FALSE='#' +else + ACE_CROSS_COMPILED_TRUE='#' + ACE_CROSS_COMPILED_FALSE= +fi + + + +for ac_prog in mawk gawk nawk awk +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1660: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AWK="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +AWK="$ac_cv_prog_AWK" +if test -n "$AWK"; then + echo "$ac_t""$AWK" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$AWK" && break +done + + +ACE_CURRENT=0 +ACE_AGE=0 +ACE_REVISION=0 + +if test -n "$AWK"; then + ACE_MAJOR=`echo "$ACE_VERSION" | sed 's/\./ /g' | $AWK '{ print \$1 }'` + ACE_MINOR=`echo "$ACE_VERSION" | sed 's/\./ /g' | $AWK '{ print \$2 }'` + ACE_BETA=`echo "$ACE_VERSION" | sed 's/\./ /g' | $AWK '{ print \$3 }'` + +ACE_CURRENT=`expr $ACE_MAJOR + $ACE_MINOR` +ACE_AGE=$ACE_MINOR +ACE_REVISION=$ACE_BETA + +fi + + + + + + +echo $ac_n "checking for AIX""... $ac_c" 1>&6 +echo "configure:1711: checking for AIX" >&5 +cat > conftest.$ac_ext <<EOF +#line 1713 "configure" +#include "confdefs.h" +#ifdef _AIX + yes +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF +#define _ALL_SOURCE 1 +EOF + +else + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + + +echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 +echo "configure:1735: checking for POSIXized ISC" >&5 +if test -d /etc/conf/kconfig.d && + grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 +then + echo "$ac_t""yes" 1>&6 + ISC=yes # If later tests want to check for ISC. + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + if test "$GCC" = yes; then + CC="$CC -posix" + else + CC="$CC -Xp" + fi +else + echo "$ac_t""no" 1>&6 + ISC= +fi + +ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 +echo "configure:1757: checking for minix/config.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1762 "configure" +#include "confdefs.h" +#include <minix/config.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + MINIX=yes +else + echo "$ac_t""no" 1>&6 +MINIX= +fi + +if test "$MINIX" = yes; then + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + cat >> confdefs.h <<\EOF +#define _POSIX_1_SOURCE 2 +EOF + + cat >> confdefs.h <<\EOF +#define _MINIX 1 +EOF + +fi + +echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 +echo "configure:1805: checking for Cygwin environment" >&5 +if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 1810 "configure" +#include "confdefs.h" + +int main() { + +#ifndef __CYGWIN__ +#define __CYGWIN__ __CYGWIN32__ +#endif +return __CYGWIN__; +; return 0; } +EOF +if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_cygwin=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_cygwin=no +fi +rm -f conftest* +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_cygwin" 1>&6 +CYGWIN= +test "$ac_cv_cygwin" = yes && CYGWIN=yes + +ACE_CXXFLAGS="" +ACE_CFLAGS="" + +ac_ext=C +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' +cross_compiling=$ac_cv_prog_cxx_cross + + +echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 +echo "configure:1850: checking whether ln -s works" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + rm -f conftestdata +if ln -s X conftestdata 2>/dev/null +then + rm -f conftestdata + ac_cv_prog_LN_S="ln -s" +else + ac_cv_prog_LN_S=ln +fi +fi +LN_S="$ac_cv_prog_LN_S" +if test "$ac_cv_prog_LN_S" = "ln -s"; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +missing_dir=`cd $ac_aux_dir && pwd` +for ac_prog in flex lex +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1877: checking +if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$LEX"; then + ac_cv_prog_LEX="$LEX" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_LEX="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +LEX="$ac_cv_prog_LEX" +if test -n "$LEX"; then + echo "$ac_t""$LEX" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$LEX" && break +done +test -n "$LEX" || LEX=""$missing_dir/missing flex"" + +# Extract the first word of "flex", so it can be a program name with args. +set dummy flex; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1910: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$LEX"; then + ac_cv_prog_LEX="$LEX" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_LEX="flex" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" +fi +fi +LEX="$ac_cv_prog_LEX" +if test -n "$LEX"; then + echo "$ac_t""$LEX" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test -z "$LEXLIB" +then + case "$LEX" in + flex*) ac_lib=fl ;; + *) ac_lib=l ;; + esac + echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 +echo "configure:1944: checking for yywrap in -l$ac_lib" >&5 +ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-l$ac_lib $LIBS" +cat > conftest.$ac_ext <<EOF +#line 1952 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char yywrap(); + +int main() { +yywrap() +; return 0; } +EOF +if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LEXLIB="-l$ac_lib" +else + echo "$ac_t""no" 1>&6 +fi + +fi + +echo $ac_n "checking lex output file root""... $ac_c" 1>&6 +echo "configure:1989: checking lex output file root" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # The minimal lex program is just a single line: %%. But some broken lexes +# (Solaris, I think it was) want two %% lines, so accommodate them. +echo '%% +%%' | $LEX +if test -f lex.yy.c; then + ac_cv_prog_lex_root=lex.yy +elif test -f lexyy.c; then + ac_cv_prog_lex_root=lexyy +else + { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } +fi +fi + +echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 +LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root + +echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 +echo "configure:2010: checking whether yytext is a pointer" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # POSIX says lex can declare yytext either as a pointer or an array; the +# default is implementation-dependent. Figure out which it is, since +# not all implementations provide the %pointer and %array declarations. +ac_cv_prog_lex_yytext_pointer=no +echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c +ac_save_LIBS="$LIBS" +LIBS="$LIBS $LEXLIB" +cat > conftest.$ac_ext <<EOF +#line 2022 "configure" +#include "confdefs.h" +`cat $LEX_OUTPUT_OOT.c` +int main() { + +; return 0; } +EOF +if { (eval echo configure:2029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_prog_lex_yytext_pointer=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +LIBS="$ac_save_LIBS" +rm -f "${LEX_OUTPUT_ROOT}.c" + +fi + +echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 +if test $ac_cv_prog_lex_yytext_pointer = yes; then + cat >> confdefs.h <<\EOF +#define YYTEXT_POINTER 1 +EOF + +fi + + +for ac_prog in 'bison -y' byacc +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2056: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$YACC"; then + ac_cv_prog_YACC="$YACC" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_YACC="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +YACC="$ac_cv_prog_YACC" +if test -n "$YACC"; then + echo "$ac_t""$YACC" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$YACC" && break +done +test -n "$YACC" || YACC="yacc" + + +# Extract the first word of "gperf", so it can be a program name with args. +set dummy gperf; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2090: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_GPERF'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$GPERF"; then + ac_cv_prog_GPERF="$GPERF" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_GPERF="gperf" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +GPERF="$ac_cv_prog_GPERF" +if test -n "$GPERF"; then + echo "$ac_t""$GPERF" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +for ac_prog in gprof prof +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2121: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PROF'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$PROF"; then + ac_cv_prog_PROF="$PROF" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_PROF="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +PROF="$ac_cv_prog_PROF" +if test -n "$PROF"; then + echo "$ac_t""$PROF" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$PROF" && break +done + + + + + + + + + case "$target" in + *aix4.2* | *aix4.3*) + case "$CXX" in + xlC*) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -qtempinc -qlanglvl=ansi -qflag=w:w -qinfo" + DCXXFLAGS="-g -qcheck=nobounds:div:null" + OCXXFLAGS="-qarch=com" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="-mcpu=common" + fi + ;; + esac + ;; + *aix4.1*) + case "$CXX" in + xlC*) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -qxcall -qtempinc" + DCXXFLAGS="-g" + OCXXFLAGS="-qarch=ppc -qtune=604" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="-mcpu=common" + fi + ;; + esac + ;; + *chorus*) + ;; + *cray*) + ;; + *dgux*) + case "$CXX" in + ec++) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -relax -v -eh" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS" + fi + ;; + esac + ;; + *freebsd*) + case "$CXX" in + *) + if test -n "$GXX"; then + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS -w -fno-strict-prototypes" + DCXXFLAGS="" + OCXXFLAGS="" + fi + ;; + esac + ;; + *hpux*) + case "$CXX" in + CC) + CXXFLAGS="$CXXFLAGS -pta -ti,/bin/true -tr,/bin/true" + ACE_CXXFLAGS="$ACE_CXXFLAGS -Aa -z +a1" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + aCC) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS +W829,302" + DCXXFLAGS="-g" + OCXXFLAGS="" + ;; + *) + if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -w" + fi + ;; + esac + ;; + *irix*) + + ;; + *linux*) + case "$CXX" in + *) + if test -n "$GXX"; then + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS" + DCXXFLAGS="$DCXXFLAGS" + OCXXFLAGS="-O3" + fi + ;; + esac + ;; + *lynxos*) + ;; + *m88k*) + ;; + *mvs*) + ;; + *netbsd*) + ;; + *osf*) + ;; + *psos*) + ;; + *sco*) + ;; + *sunos4*) + ;; + *solaris2*) + ;; + *tandem*) + ;; + *unixware*) + ;; + *vxworks*) + ;; + *) + CXXFLAGS="$CXXFLAGS" + ACE_CXXFLAGS="$ACE_CXXFLAGS" + DCXXFLAGS="-g" + OCXXFLAGS="-O" + ;; + esac + + +save_CC="$CC" +CC="$CXX" + +# Check whether --enable-static or --disable-static was given. +if test "${enable_static+set}" = set; then + enableval="$enable_static" + p=${PACKAGE-default} +case "$enableval" in +yes) enable_static=yes ;; +no) enable_static=no ;; +*) + enable_static=no + # Look at the argument we got. We use all the common list separators. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$ac_save_ifs" + ;; +esac +else + enable_static=no +fi + + +# Check whether --enable-shared or --disable-shared was given. +if test "${enable_shared+set}" = set; then + enableval="$enable_shared" + p=${PACKAGE-default} +case "$enableval" in +yes) enable_shared=yes ;; +no) enable_shared=no ;; +*) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," + for pkg in $enableval; do + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$ac_save_ifs" + ;; +esac +else + enable_shared=yes +fi + +# Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2341: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_RANLIB="ranlib" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" +fi +fi +RANLIB="$ac_cv_prog_RANLIB" +if test -n "$RANLIB"; then + echo "$ac_t""$RANLIB" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +# Check whether --with-gnu-ld or --without-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval="$with_gnu_ld" + test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$ac_cv_prog_gcc" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 +echo "configure:2380: checking for ld used by GCC" >&5 + ac_prog=`($CC -print-prog-name=ld) 2>&5` + case "$ac_prog" in + # Accept absolute paths. + /* | [A-Za-z]:/*) + # Canonicalize the path of ld + re_direlt='/[^/][^/]*/\.\./' + sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%' + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + case "$host_os" in + cygwin*) + # Convert to a UNC path for cygwin + test -z "$LD" && LD=`echo X$ac_prog | sed -e "1s/^X//" -e "$sub_uncdrive"` + ;; + *) + test -z "$LD" && LD="$ac_prog" + ;; + esac + ;; + ## + ## FIXME: The code fails later on if we try to use an $LD with + ## '\\' path separators. + ## + [A-Za-z]:[\\]*) + # Canonicalize the path of ld + re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)' + sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%' + sub_uncdir='s%\\%/%g' + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%\1%"` + done + case "$host_os" in + cygwin*) + # Convert to a UNC path for cygwin + test -z "$LD" && LD=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"` + ;; + *) + test -z "$LD" && LD="$ac_prog" + ;; + esac + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 +echo "configure:2434: checking for GNU ld" >&5 +else + echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 +echo "configure:2437: checking for non-GNU ld" >&5 +fi +if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog"; then + ac_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + test "$with_gnu_ld" != no && break + else + test "$with_gnu_ld" != yes && break + fi + fi + done + IFS="$ac_save_ifs" +else + ac_cv_path_LD="$LD" # Let the user override the test with a path. +fi +fi + +LD="$ac_cv_path_LD" +if test -n "$LD"; then + echo "$ac_t""$LD" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi +test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } + +echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 +echo "configure:2473: checking if the linker ($LD) is GNU ld" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then + ac_cv_prog_gnu_ld=yes +else + ac_cv_prog_gnu_ld=no +fi +fi + +echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 + + +echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 +echo "configure:2489: checking for BSD-compatible nm" >&5 +if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$NM"; then + # Let the user override the test. + ac_cv_path_NM="$NM" +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/nm; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + ac_cv_path_NM="$ac_dir/nm -B" + break + elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then + ac_cv_path_NM="$ac_dir/nm -p" + break + else + ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + fi + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm +fi +fi + +NM="$ac_cv_path_NM" +echo "$ac_t""$NM" 1>&6 + + +# Check for command to grab the raw symbol name followe +echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 +echo "configure:2527: checking command to parse $NM output" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # These are sane defaults that work on at least a few old systems. +# {They come from Ultrix. What could be older than Ultrix?!! ;)} + +# Character class describing NM global symbol codes. +ac_symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform the above into a raw symbol and a C symbol. +ac_symxfrm='\1 \1' + +# Define system-specific variables. +case "$host_os" in +aix*) + ac_symcode='[BCDT]' + ;; +cygwin32* | mingw32*) + ac_symcode='[ABCDGISTW]' + ;; +irix*) + ac_symcode='[BCDEGRST]' + ;; +solaris*) + ac_symcode='[BDT]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then + ac_symcode='[ABCDGISTW]' +fi + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Write the raw and C identifiers. + # Unlike in ltconfig.in, we need $ac_symprfx before $ac_symxfrm here, + # otherwise AC_SYS_SYMBOL_UNDERSCORE will always be false + ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode *$ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'" + + # Check to see that the pipe works correctly. + ac_pipe_works=no + rm -f conftest.$ac_ext + cat > conftest.$ac_ext <<EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func;return 0;} +EOF + + if { (eval echo configure:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + # Now try to grab the symbols. + ac_nlist=conftest.nm + + if { (eval echo configure:2591: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then + + # Try sorting and uniquifying the output. + if sort "$ac_nlist" | uniq > "$ac_nlist"T; then + mv -f "$ac_nlist"T "$ac_nlist" + else + rm -f "$ac_nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then + if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then + cat <<EOF > conftest.c +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c + + cat <<EOF >> conftest.c +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + sed 's/^\(.*\) \(.*\)$/ {"\1", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c + cat <<\EOF >> conftest.c + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftestm.$ac_objext + ac_save_LIBS="$LIBS" + ac_save_CFLAGS="$CFLAGS" + LIBS="conftestm.$ac_objext" + CFLAGS="$CFLAGS$no_builtin_flag" + if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + ac_pipe_works=yes + else + echo "configure: failed program was:" >&5 + cat conftest.c >&5 + fi + LIBS="$ac_save_LIBS" + CFLAGS="$ac_save_CFLAGS" + else + echo "cannot find nm_test_func in $ac_nlist" >&5 + fi + else + echo "cannot find nm_test_var in $ac_nlist" >&5 + fi + else + echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.c >&5 + fi + rm -rf conftest* + + # Do not use the global_symbol_pipe unless it works. + if test "$ac_pipe_works" = yes; then + if test x"$ac_symprfx" = x"_"; then + ac_cv_sys_symbol_underscore=yes + else + ac_cv_sys_symbol_underscore=no + fi + break + else + ac_cv_sys_global_symbol_pipe= + fi +done + +fi + + +ac_result=yes +if test -z "$ac_cv_sys_global_symbol_pipe"; then + ac_result=no +fi +echo "$ac_t""$ac_result" 1>&6 + +echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6 +echo "configure:2689: checking for _ prefix in compiled symbols" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_sys_symbol_underscore=no +cat > conftest.$ac_ext <<EOF +void nm_test_func(){} +int main(){nm_test_func;return 0;} +EOF +if { (eval echo configure:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + # Now try to grab the symbols. + ac_nlist=conftest.nm + if { (eval echo configure:2701: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then + # See whether the symbols have a leading underscore. + if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then + ac_cv_sys_symbol_underscore=yes + else + if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then + : + else + echo "configure: cannot find nm_test_func in $ac_nlist" >&5 + fi + fi + else + echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5 + fi +else + echo "configure: failed program was:" >&5 + cat conftest.c >&5 +fi +rm -rf conftest* + +fi + +echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6 +USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} + +if test $host != $build; then + ac_tool_prefix=${host_alias}- +else + ac_tool_prefix= +fi + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + +# Check for any special flags to pass to ltconfig. +libtool_flags= +test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" +test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" +test "$silent" = yes && libtool_flags="$libtool_flags --silent" +test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case "$host" in +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 2748 "configure"' > conftest.$ac_ext + if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + case "`/usr/bin/file conftest.o`" in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 +echo "configure:2770: checking whether the C compiler needs -belf" >&5 +if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 2775 "configure" +#include "confdefs.h" + +int main() { + +; return 0; } +EOF +if { (eval echo configure:2782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + lt_cv_cc_needs_belf=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + lt_cv_cc_needs_belf=no +fi +rm -f conftest* +fi + +echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; + +*-*-cygwin32*) + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. +set dummy ${ac_tool_prefix}dlltool; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2805: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +DLLTOOL="$ac_cv_prog_DLLTOOL" +if test -n "$DLLTOOL"; then + echo "$ac_t""$DLLTOOL" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +if test -z "$ac_cv_prog_DLLTOOL"; then +if test -n "$ac_tool_prefix"; then + # Extract the first word of "dlltool", so it can be a program name with args. +set dummy dlltool; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2837: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$DLLTOOL"; then + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_DLLTOOL="dlltool" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" +fi +fi +DLLTOOL="$ac_cv_prog_DLLTOOL" +if test -n "$DLLTOOL"; then + echo "$ac_t""$DLLTOOL" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +else + DLLTOOL="false" +fi +fi + +# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. +set dummy ${ac_tool_prefix}as; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2872: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AS="${ac_tool_prefix}as" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +AS="$ac_cv_prog_AS" +if test -n "$AS"; then + echo "$ac_t""$AS" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + +if test -z "$ac_cv_prog_AS"; then +if test -n "$ac_tool_prefix"; then + # Extract the first word of "as", so it can be a program name with args. +set dummy as; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2904: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$AS"; then + ac_cv_prog_AS="$AS" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AS="as" + break + fi + done + IFS="$ac_save_ifs" + test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" +fi +fi +AS="$ac_cv_prog_AS" +if test -n "$AS"; then + echo "$ac_t""$AS" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +else + AS="false" +fi +fi + + + ;; + +esac + +# enable the --disable-libtool-lock switch + +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then + enableval="$enable_libtool_lock" + need_locks=$enableval +else + need_locks=yes +fi + + +if test x"$need_locks" = xno; then + libtool_flags="$libtool_flags --disable-lock" +fi + + +# Actually configure libtool. ac_aux_dir is where install-sh is found. +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ +LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ +DLLTOOL="$DLLTOOL" AS="$AS" \ +${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ +$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ +|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" + +# Redirect the config.log output again, so that the ltconfig log is not +# clobbered by the next message. +exec 5>>./config.log + + + +CC="$save_CC" + + + +# Check whether --enable-debug or --disable-debug was given. +if test "${enable_debug+set}" = set; then + enableval="$enable_debug" + + case "${enableval}" in + yes) + ACE_CXXFLAGS="$ACE_CXXFLAGS $DCXXFLAGS" + ;; + no) + cat >> confdefs.h <<\EOF +#define ACE_NDEBUG 1 +EOF + + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-debug" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-exceptions or --disable-exceptions was given. +if test "${enable_exceptions+set}" = set; then + enableval="$enable_exceptions" + + case "${enableval}" in + yes) + ace_user_enable_exceptions=yes + ;; + no) + ace_user_enable_exceptions=no + if test -n "$GXX"; then + if g++ --version | egrep -v '^2\.[0-7]' > /dev/null; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -fno-exceptions" + fi + fi + if test -n "$GCC"; then + if gcc --version | egrep -v '^2\.[0-7]' > /dev/null; then + ACE_CFLAGS="$ACE_CFLAGS -fno-exceptions" + fi + fi + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-exceptions" 1>&2; exit 1; } + ;; + esac + +else + + ace_user_enable_exceptions=yes + +fi + + + +# Check whether --enable-fast or --disable-fast was given. +if test "${enable_fast+set}" = set; then + enableval="$enable_fast" + + case "${enableval}" in + yes) + ACE_CXXFLAGS="$ACE_CXXFLAGS -fast" + ACE_CFLAGS="$ACE_CFLAGS -fast" + ;; + no) + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-fast" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-inline or --disable-inline was given. +if test "${enable_inline+set}" = set; then + enableval="$enable_inline" + + case "${enableval}" in + yes) + cat >> confdefs.h <<\EOF +#define __ACE_INLINE__ 1 +EOF + + ;; + no) + cat >> confdefs.h <<\EOF +#define ACE_NO_INLINE 1 +EOF + + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-inline" 1>&2; exit 1; } + ;; + esac + +else + + cat >> confdefs.h <<\EOF +#define __ACE_INLINE__ 1 +EOF + + +fi + + +# Check whether --enable-log-msg-prop or --disable-log-msg-prop was given. +if test "${enable_log_msg_prop+set}" = set; then + enableval="$enable_log_msg_prop" + + case "${enableval}" in + yes) + ;; + no) + cat >> confdefs.h <<\EOF +#define ACE_THREADS_DONT_INHERIT_LOG_MSG 1 +EOF + + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-log-msg-prop" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-logging or --disable-logging was given. +if test "${enable_logging+set}" = set; then + enableval="$enable_logging" + + case "${enableval}" in + yes) + ;; + no) + cat >> confdefs.h <<\EOF +#define ACE_NLOGGING 1 +EOF + + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-logging" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-malloc-stats or --disable-malloc-stats was given. +if test "${enable_malloc_stats+set}" = set; then + enableval="$enable_malloc_stats" + + case "${enableval}" in + + cat >> confdefs.h <<\EOF +#define ACE_HAS_MALLOC_STATS 1 +EOF + + ;; + no) + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-malloc-stats" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-optimize or --disable-optimize was given. +if test "${enable_optimize+set}" = set; then + enableval="$enable_optimize" + + case "${enableval}" in + yes) + ace_user_enable_optimize=yes + ;; + no) + echo "configure: warning: Optimization configure support not implemented yet." 1>&2 + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-optimize" 1>&2; exit 1; } + ;; + esac + +else + + ace_user_enable_optimize=yes + +fi + + +# Check whether --enable-probe or --disable-probe was given. +if test "${enable_probe+set}" = set; then + enableval="$enable_probe" + + case "${enableval}" in + yes) + cat >> confdefs.h <<\EOF +#define ACE_COMPILE_TIMEPROBES 1 +EOF + + ;; + no) + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-probe" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-profile or --disable-profile was given. +if test "${enable_profile+set}" = set; then + enableval="$enable_profile" + + case "${enableval}" in + yes) + if test -z "$PROF"; then + echo "configure: warning: No profiling program found. Assuming 'prof' exists" 1>&2 + ACE_CXXFLAGS="$ACE_CXXFLAGS -p" + ACE_CFLAGS="$ACE_CFLAGS -p" + else + case "$PROF" in + gprof) + echo "Building with 'gprof' support" + ACE_CXXFLAGS="$ACE_CXXFLAGS -pg" + ACE_CFLAGS="$ACE_CFLAGS -pg" + ;; + prof) + echo "Building with 'prof' support" + ACE_CXXFLAGS="$ACE_CXXFLAGS -p" + ACE_CFLAGS="$ACE_CFLAGS -p" + ;; + *) + echo "configure: warning: Assuming 'prof' exists" 1>&2 + ACE_CXXFLAGS="$ACE_CXXFLAGS -p" + ACE_CFLAGS="$ACE_CFLAGS -p" + ;; + esac + fi + ;; + no) + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-profile" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-purify or --disable-purify was given. +if test "${enable_purify+set}" = set; then + enableval="$enable_purify" + + case "${enableval}" in + yes) + # Extract the first word of "purify", so it can be a program name with args. +set dummy purify; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:3241: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PURIFY'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$PURIFY"; then + ac_cv_prog_PURIFY="$PURIFY" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_PURIFY="purify" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +PURIFY="$ac_cv_prog_PURIFY" +if test -n "$PURIFY"; then + echo "$ac_t""$PURIFY" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -n "$PURIFY"; then + PURE_CACHE_BASE_DIR=/tmp/purifycache + PURE_CACHE_DIR=${PURE_CACHE_BASE_DIR}-${LOGNAME}-${notdir ${CXX} } + PURELINK="$PURIFY -best-effort -chain-length=20 \ + -cache-dir=$PURE_CACHE_DIR \ + -fds-inuse-at-exit=no -ignore-signals=SIGINT -inuse-at-exit \ + -max_threads=100" + ACE_CXXFLAGS="$ACE_CXXFLAGS -DACE_HAS_PURIFY" + ACE_CFLAGS="$ACE_CFLAGS -DACE_HAS_PURIFY" + else + echo "configure: warning: Purify program was not found." 1>&2 + echo "configure: warning: Disabling purify support." 1>&2 + fi + ;; + no) + PURELINK="" + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-purify" 1>&2; exit 1; } + ;; + esac + +else + PURELINK="" +fi + + +# Check whether --enable-quantify or --disable-quantify was given. +if test "${enable_quantify+set}" = set; then + enableval="$enable_quantify" + + case "${enableval}" in + yes) + # Extract the first word of "quantify", so it can be a program name with args. +set dummy quantify; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:3303: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_QUANTIFY'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$QUANTIFY"; then + ac_cv_prog_QUANTIFY="$QUANTIFY" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_QUANTIFY="quantify" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +QUANTIFY="$ac_cv_prog_QUANTIFY" +if test -n "$QUANTIFY"; then + echo "$ac_t""$QUANTIFY" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + + if test -n "$QUANTIFY"; then + PURE_CACHE_BASE_DIR=/tmp/purifycache + PURE_CACHE_DIR=${PURE_CACHE_BASE_DIR}-${LOGNAME}-${notdir ${CXX} } + PRELINK="$QUANTIFY -best-effort -max_threads=100 \ + -cache-dir=$PURE_CACHE_DIR" + ACE_CXXFLAGS="$ACE_CXXFLAGS -DACE_HAS_QUANTIFY" + ACE_CFLAGS="$ACE_CFLAGS -DACE_HAS_QUANTIFY" + else + echo "configure: warning: Quantify program was not found." 1>&2 + echo "configure: warning: Disabling quantify support." 1>&2 + fi + ;; + no) + PRELINK="" + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-quantify" 1>&2; exit 1; } + ;; + esac + +else + PRELINK="" +fi + + +# Check whether --enable-reentrant or --disable-reentrant was given. +if test "${enable_reentrant+set}" = set; then + enableval="$enable_reentrant" + + case "${enableval}" in + yes) + ace_user_enable_reentrant_funcs=yes + ;; + no) + ace_user_enable_reentrant_funcs=no + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-reentrant" 1>&2; exit 1; } + ;; + esac + +else + + ace_user_enable_reentrant_funcs=yes + +fi + + + +# Check whether --enable-repo or --disable-repo was given. +if test "${enable_repo+set}" = set; then + enableval="$enable_repo" + + case "${enableval}" in + yes) + if test -n "$GXX"; then + ace_user_enable_repo=yes + ACE_CXXFLAGS="$ACE_CXXFLAGS -frepo" + cat >> confdefs.h <<\EOF +#define ACE_HAS_GNU_REPO 1 +EOF + + else + ace_user_enable_repo=no + echo "configure: warning: Not using GNU C++! GNU template respository disabled" 1>&2 + fi + ;; + no) + ace_user_enable_repo=no + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-repo" 1>&2; exit 1; } + ;; + esac + +else + + ace_user_enable_repo=no + +fi + + +# Check whether --enable-rtti or --disable-rtti was given. +if test "${enable_rtti+set}" = set; then + enableval="$enable_rtti" + + case "${enableval}" in + yes) + if test -z "$GXX"; then + case "$target" in + *solaris*) + ACE_CXXFLAGS="$ACE_CXXFLAGS -features=rtti" + ;; + *) + ;; + esac + else + echo "configure: warning: Not using Sun C++. RTTI will not be enabled." 1>&2 + fi + ;; + no) + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-rtti" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-static-obj-mgr or --disable-static-obj-mgr was given. +if test "${enable_static_obj_mgr+set}" = set; then + enableval="$enable_static_obj_mgr" + + case "${enableval}" in + yes) + ;; + no) + cat >> confdefs.h <<\EOF +#define ACE_HAS_NONSTATIC_OBJECT_MANAGER 1 +EOF + + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-static-obj-mgr" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-threads or --disable-threads was given. +if test "${enable_threads+set}" = set; then + enableval="$enable_threads" + + case "${enableval}" in + yes) + ace_user_enable_threads=yes + ;; + no) + ace_user_enable_threads=no + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-threads" 1>&2; exit 1; } + ;; + esac + +else + + ace_user_enable_threads=yes + +fi + + + +# Check whether --enable-verb-not-sup or --disable-verb-not-sup was given. +if test "${enable_verb_not_sup+set}" = set; then + enableval="$enable_verb_not_sup" + + case "${enableval}" in + yes) + cat >> confdefs.h <<\EOF +#define ACE_HAS_VERBOSE_NOTSUP 1 +EOF + + ;; + no) + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-verb-not-sup" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --enable-trace or --disable-trace was given. +if test "${enable_trace+set}" = set; then + enableval="$enable_trace" + + case "${enableval}" in + yes) + ;; + no) + cat >> confdefs.h <<\EOF +#define ACE_NTRACE 1 +EOF + + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-trace" 1>&2; exit 1; } + ;; + esac + +else + + cat >> confdefs.h <<\EOF +#define ACE_NTRACE 1 +EOF + + +fi + + +# If we find X, set shell vars x_includes and x_libraries to the +# paths, otherwise set no_x=yes. +# Uses ac_ vars as temps to allow command line to override cache and checks. +# --without-x overrides everything else, but does not touch the cache. +echo $ac_n "checking for X""... $ac_c" 1>&6 +echo "configure:3538: checking for X" >&5 + +# Check whether --with-x or --without-x was given. +if test "${with_x+set}" = set; then + withval="$with_x" + : +fi + +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then + # Both variables are already set. + have_x=yes + else +if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + # One or both of the vars are not set, and there is no cached value. +ac_x_includes=NO ac_x_libraries=NO +rm -fr conftestdir +if mkdir conftestdir; then + cd conftestdir + # Make sure to not put "make" in the Imakefile rules, since we grep it out. + cat > Imakefile <<'EOF' +acfindx: + @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' +EOF + if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering...", which would confuse us. + eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl; do + if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && + test -f $ac_im_libdir/libX11.$ac_extension; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case "$ac_im_incroot" in + /usr/include) ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; + esac + case "$ac_im_usrlibdir" in + /usr/lib | /lib) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; + esac + fi + cd .. + rm -fr conftestdir +fi + +if test "$ac_x_includes" = NO; then + # Guess where to find include files, by looking for this one X11 .h file. + test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h + + # First, try using that file with no special directory specified. +cat > conftest.$ac_ext <<EOF +#line 3600 "configure" +#include "confdefs.h" +#include <$x_direct_test_include> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + # We can compile using X headers with no special include directory. +ac_x_includes= +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + # Look for the header file in a standard set of common directories. +# Check X11 before X11Rn because it is often a symlink to the current release. + for ac_dir in \ + /usr/X11/include \ + /usr/X11R6/include \ + /usr/X11R5/include \ + /usr/X11R4/include \ + \ + /usr/include/X11 \ + /usr/include/X11R6 \ + /usr/include/X11R5 \ + /usr/include/X11R4 \ + \ + /usr/local/X11/include \ + /usr/local/X11R6/include \ + /usr/local/X11R5/include \ + /usr/local/X11R4/include \ + \ + /usr/local/include/X11 \ + /usr/local/include/X11R6 \ + /usr/local/include/X11R5 \ + /usr/local/include/X11R4 \ + \ + /usr/X386/include \ + /usr/x386/include \ + /usr/XFree86/include/X11 \ + \ + /usr/include \ + /usr/local/include \ + /usr/unsupported/include \ + /usr/athena/include \ + /usr/local/x11r5/include \ + /usr/lpp/Xamples/include \ + \ + /usr/openwin/include \ + /usr/openwin/share/include \ + ; \ + do + if test -r "$ac_dir/$x_direct_test_include"; then + ac_x_includes=$ac_dir + break + fi + done +fi +rm -f conftest* +fi # $ac_x_includes = NO + +if test "$ac_x_libraries" = NO; then + # Check for the l + + test -z "$x_direct_test_library" && x_direct_test_library=Xt + test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc + + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS="$LIBS" + LIBS="-l$x_direct_test_library $LIBS" +cat > conftest.$ac_ext <<EOF +#line 3674 "configure" +#include "confdefs.h" + +int main() { +${x_direct_test_function}() +; return 0; } +EOF +if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + LIBS="$ac_save_LIBS" +# We can link X programs with no special library path. +ac_x_libraries= +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + LIBS="$ac_save_LIBS" +# First see if replacing the include by lib works. +# Check X11 before X11Rn because it is often a symlink to the current release. +for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ + /usr/X11/lib \ + /usr/X11R6/lib \ + /usr/X11R5/lib \ + /usr/X11R4/lib \ + \ + /usr/lib/X11 \ + /usr/lib/X11R6 \ + /usr/lib/X11R5 \ + /usr/lib/X11R4 \ + \ + /usr/local/X11/lib \ + /usr/local/X11R6/lib \ + /usr/local/X11R5/lib \ + /usr/local/X11R4/lib \ + \ + /usr/local/lib/X11 \ + /usr/local/lib/X11R6 \ + /usr/local/lib/X11R5 \ + /usr/local/lib/X11R4 \ + \ + /usr/X386/lib \ + /usr/x386/lib \ + /usr/XFree86/lib/X11 \ + \ + /usr/lib \ + /usr/local/lib \ + /usr/unsupported/lib \ + /usr/athena/lib \ + /usr/local/x11r5/lib \ + /usr/lpp/Xamples/lib \ + /lib/usr/lib/X11 \ + \ + /usr/openwin/lib \ + /usr/openwin/share/lib \ + ; \ +do + for ac_extension in a so sl; do + if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done +fi +rm -f conftest* +fi # $ac_x_libraries = NO + +if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then + # Didn't find X anywhere. Cache the known absence of X. + ac_cv_have_x="have_x=no" +else + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes \ + ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" +fi +fi + fi + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + echo "$ac_t""$have_x" 1>&6 + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes \ + ac_x_includes=$x_includes ac_x_libraries=$x_libraries" + echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 +fi + +# Check whether --enable-xt-reactor or --disable-xt-reactor was given. +if test "${enable_xt_reactor+set}" = set; then + enableval="$enable_xt_reactor" + + case "${enableval}" in + yes) + if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + cat >> confdefs.h <<\EOF +#define X_DISPLAY_MISSING 1 +EOF + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + case "`(uname -sr) 2>/dev/null`" in + "SunOS 5"*) + echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 +echo "configure:3793: checking whether -R must be followed by a space" >&5 + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" + cat > conftest.$ac_ext <EOF +#line 3796 "configure" +#include "confdefs.h" + +int main() { + +; return 0; } +EOF +if { (eval echo configure:3803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_R_nospace=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_R_nospace=no +fi +rm -f conftest* + if test $ac_R_nospace = yes; then + echo "$ac_t""no" 1>&6 + X_LIBS="$X_LIBS -R$x_libraries" + else + LIBS="$ac_xsave_LIBS -R $x_libraries" + cat > conftest.$ac_ext <<EOF +#line 3819 "configure" +#include "confdefs.h" + +int main() { + +; return 0; } +EOF +if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_R_space=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_R_space=no +fi +rm -f conftest* + if test $ac_R_space = yes; then + echo "$ac_t""yes" 1>&6 + X_LIBS="$X_LIBS -R $x_libraries" + else + echo "$ac_t""neither works" 1>&6 + fi + fi + LIBS="$ac_xsave_LIBS" + esac + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And karl@cs.umb.edu says + # the Alpha needs dnet_stub (dnet does not exist). + echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 +echo "configure:3858: checking for dnet_ntoa in -ldnet" >&5 +ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldnet $LIBS" +cat > conftest.$ac_ext <<EOF +#line 3866 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dnet_ntoa(); + +int main() { +dnet_ntoa() +; return 0; } +EOF +if { (eval echo configure:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +else + echo "$ac_t""no" 1>&6 +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 +echo "configure:3902: checking for dnet_ntoa in -ldnet_stub" >&5 +ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldnet_stub $LIBS" +cat > conftest.$ac_ext <<EOF +#line 3910 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dnet_ntoa(); + +int main() { +dnet_ntoa() +; return 0; } +EOF +if { (eval echo configure:3924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +else + echo "$ac_t""no" 1>&6 +fi + + fi + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to dickey@clark.net. + echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 +echo "configure:3953: checking for gethostbyname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 3958 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyname(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) +choke me +#else +gethostbyname(); +#endif + +; return 0; } +EOF +if { (eval echo configure:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyname=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyname=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + if test $ac_cv_func_gethostbyname = no; then + echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 +echo "configure:4005: checking for gethostbyname in -lnsl" >&5 +ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4013 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname(); + +int main() { +gethostbyname() +; return 0; } +EOF +if { (eval echo configure:4027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +else + echo "$ac_t""no" 1>&6 +fi + + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says simon@lia.di.epfl.ch: it contains + # gethostby* variants that don't use the nameserver (or something). + # -lsocket must be given before -lnsl if both are needed. + # We assume that if connect needs -lnsl, so does gethostbyname. + echo $ac_n "checking for connect""... $ac_c" 1>&6 +echo "configure:4057: checking for connect" >&5 +if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 4062 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char connect(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_connect) || defined (__stub___connect) +choke me +#else +connect(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_connect=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_connect=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + if test $ac_cv_func_connect = no; then + echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 +echo "configure:4109: checking for connect in -lsocket" >&5 +ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4117 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect(); + +int main() { +connect() +; return 0; } +EOF +if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +else + echo "$ac_t""no" 1>&6 +fi + + fi + + # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. + echo $ac_n "checking for remove""... $ac_c" 1>&6 +echo "configure:4155: checking for remove" >&5 +if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 4160 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char remove(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char remove(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_remove) || defined (__stub___remove) +choke me +#else +remove(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_remove=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_remove=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + if test $ac_cv_func_remove = no; then + echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 +echo "configure:4207: checking for remove in -lposix" >&5 +ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lposix $LIBS" +cat > conf +#line 4215 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char remove(); + +int main() { +remove() +; return 0; } +EOF +if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +else + echo "$ac_t""no" 1>&6 +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + echo $ac_n "checking for shmat""... $ac_c" 1>&6 +echo "configure:4253: checking for shmat" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 4258 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmat(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmat(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shmat) || defined (__stub___shmat) +choke me +#else +shmat(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_shmat=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_shmat=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + if test $ac_cv_func_shmat = no; then + echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 +echo "configure:4305: checking for shmat in -lipc" >&5 +ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lipc $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4313 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmat(); + +int main() { +shmat() +; return 0; } +EOF +if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +else + echo "$ac_t""no" 1>&6 +fi + + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS="$LDFLAGS" + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # --interran@uluru.Stanford.EDU,kb@cs.umb.edu. + echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 +echo "configure:4360: checking for IceConnectionNumber in -lICE" >&5 +ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4368 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char IceConnectionNumber(); + +int main() { +IceConnectionNumber() +; return 0; } +EOF +if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +else + echo "$ac_t""no" 1>&6 +fi + + LDFLAGS="$ac_save_LDFLAGS" + +fi + + if test "$no_x" != yes; then + ACE_XLIBS="-lX11 -lXt" + cat >> confdefs.h <<\EOF +#define ACE_HAS_XT 1 +EOF + + ace_user_enable_xt_reactor=yes + else + ACE_XLIBS="" + ace_user_enable_xt_reactor=no + echo "configure: warning: X was not found or it was disabled." 1>&2 + echo "configure: warning: ACE_XtReactor will not be enabled." 1>&2 + fi + ;; + no) + ACE_XLIBS="" + ace_user_enable_xt_reactor=no + ;; + *) + { echo "configure: error: bad value ${enableval} for --enable-xt-reactor" 1>&2; exit 1; } + ;; + esac + +fi + + +# Check whether --with-gperf or --without-gperf was given. +if test "${with_gperf+set}" = set; then + withval="$with_gperf" + + case "${withval}" in + yes) + ace_user_with_gperf=yes + cat >> confdefs.h <<\EOF +#define ACE_HAS_GPERF 1 +EOF + + if test -n "$GPERF"; then + echo "configure: warning: gperf program already exists" 1>&2 + echo "configure: warning: existing gperf may be overwritten during installation" 1>&2 + fi + ;; + no) + ace_user_with_gperf=no + ;; + *) + { echo "configure: error: bad value ${withval} for --with-gperf" 1>&2; exit 1; } + ;; + esac + +else + + ace_user_with_gperf=yes + cat >> confdefs.h <<\EOF +#define ACE_HAS_GPERF 1 +EOF + + if test -n "$GPERF"; then + echo "configure: warning: gperf program already exists" 1>&2 + echo "configure: warning: existing gperf may be overwritten during installation" 1>&2 + fi + +fi + + + +if test X$ace_user_with_gperf = Xyes; then + COMPILE_GPERF_TRUE= + COMPILE_GPERF_FALSE='#' +else + COMPILE_GPERF_TRUE='#' + COMPILE_GPERF_FALSE= +fi + +# Check whether --with-orbix or --without-orbix was given. +if test "${with_orbix+set}" = set; then + withval="$with_orbix" + + case "${withval}" in + yes) + echo "configure: warning: Orbix configure support not implemented yet." 1>&2 + ;; + no) + ;; + *) + echo "configure: warning: Orbix configure support not implemented yet." 1>&2 + ;; + esac + +fi + + +# Check whether --with-tli-device or --without-tli-device was given. +if test "${with_tli_device+set}" = set; then + withval="$with_tli_device" + + case "${withval}" in + yes) + { echo "configure: error: Specify the TLI/TCP device if you use this option." 1>&2; exit 1; } + ;; + no) + ;; + *) + if test -e "${withval}"; then + cat >> confdefs.h <<EOF +#define ACE_TLI_TCP_DEVICE "${withval}" +EOF + + else + { echo "configure: error: TLI/TCP device ${withval} does not exist." 1>&2; exit 1; } + fi + ;; + esac + +fi + + + +case "$target" in + *aix3*) + ;; + *aix4.1*) + cat >> confdefs.h <<\EOF +#define _BSD 44 +EOF + + ;; + *aix4.2*) + cat >> confdefs.h <<\EOF +#define _BSD 44 +EOF + + cat >> confdefs.h <<\EOF +#define _BSD_INCLUDES 1 +EOF + + ;; + t3e-cray-unicosmk*) + cat >> confdefs.h <<\EOF +#define _CRAYMPP 1 +EOF + + cat >> confdefs.h <<\EOF +#define _CRAYT3E 1 +EOF + + cat >> confdefs.h <<\EOF +#define _UNICOS +EOF + + ;; + t3e-cray*) + cat >> confdefs.h <<\EOF +#define _CRAYT3E 1 +EOF + + cat >> confdefs.h <<\EOF +#define _UNICOS +EOF + + ;; + *cray-unicos*) + cat >> confdefs.h <<\EOF +#define _UNICOS +EOF + + ;; + *dgux4.11*) + LIBS="$LIBS -lc" + cat >> confdefs.h <<\EOF +#define _POSIX_SOURCE 1 +EOF + + cat >> confdefs.h <<\EOF +#define _DGUX_SOURCE 1 +EOF + + ;; + *dgux4*) + LIBS="$LIBS -lc" + cat >> confdefs.h <<\EOF +#define _POSIX4A_DRAFT10_SOURCE 1 +EOF + + cat >> confdefs.h <<\EOF +#define _POSIX4_DRAFT_SOURCE 1 +EOF + + ;; + *freebsd*) + LIBS="$LIBS -lcompat" + ;; + *hpux9*) + LIBS="$LIBS -lcma -lrt" + cat >> confdefs.h <<\EOF +#define HPUX 1 +EOF + + ;; + *hpux10*) + LIBS="$LIBS -lcma -lrt" + cat >> confdefs.h <<\EOF +#define _HPUX_SOURCE 1 +EOF + + ;; + *hpux11*) + LIBS="$LIBS -lcma -lrt" + ;; + *irix5.2*) + ;; + *irix5.3*) + if test -z "$GXX"; then + cat >> confdefs.h <<\EOF +#define _BSD_TYPES 1 +EOF + + fi + ;; + *irix6*) + cat >> confdefs.h <<\EOF +#define _SGI_MP_SOURCE 1 +EOF + + cat >> confdefs.h <<\EOF +#define _MODERN_C_ 1 +EOF + + ;; + *linux*) + ;; + *lynxos*) + cat >> confdefs.h <<\EOF +#define _POSIX_THREADS_CALLS 1 +EOF + + cat >> confdefs.h <<\EOF +#define __NO_INCLUDE_WARN__ 1 +EOF + + ;; + *m88k*) + ;; + *mvs*) + cat >> confdefs.h <<\EOF +#define _ALL_SOURCE 1 +EOF + + ;; + *netbsd*) + ;; + *osf3.2*) + LIBS="$LIBS -lmach -lsys5 -lcxx -lc -lrt" + ;; + *osf4.0*) + LIBS="$LIBS -lmach -lrt" + ;; + *psos*) + LIBS="$LIBS -lm" + ;; + *sco4.2*) + ;; + *sco5*) + cat >> confdefs.h <<\EOF +#define _SVID3 1 +EOF + + ;; + *sunos4*) + ;; + *solaris2.4*) + ;; + *solaris2.5*) + ;; + *solaris2.6*) + ;; + *86*solaris*) + ;; + *tandem*) + ;; + *unixware2.0*) + ;; + *unixware2.1*) + ;; + *vxworks*) + ;; + *cygwin32*) + ;; + *win32*) + ;; + *) + ;; +esac + + + +if test "$ace_user_enable_xt_reactor" = yes; then +XTREACTOR_TEST_XLIBS="" + T_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $X_LIBS" + + + xt_reactor_go=no + echo $ac_n "checking for XmCreateRowColumn in -lXm""... $ac_c" 1>&6 +echo "configure:4710: checking for XmCreateRowColumn in -lXm" >&5 +ac_lib_var=`echo Xm'_'XmCreateRowColumn | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lXm -lXt $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4718 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char XmCreateRowColumn(); + +int main() { +XmCreateRowColumn() +; return 0; } +EOF +if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + XTREACTOR_TEST_XLIBS="-lXm" + xt_reactor_go=yes + +else + echo "$ac_t""no" 1>&6 + + cat >> confdefs.h <<\EOF +#define ACE_LACKS_MOTIF 1 +EOF + + echo $ac_n "checking for XawInitializeWidgetSet in -lXaw""... $ac_c" 1>&6 +echo "configure:4759: checking for XawInitializeWidgetSet in -lXaw" >&5 +ac_lib_var=`echo Xaw'_'XawInitializeWidgetSet | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lXaw -lXmu $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4767 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char XawInitializeWidgetSet(); + +int main() { +XawInitializeWidgetSet() +; return 0; } +EOF +if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + XTREACTOR_TEST_XLIBS="-lXaw -lXmu" + xt_reactor_go=yes + +else + echo "$ac_t""no" 1>&6 + + xt_reactor_go=no + echo "configure: warning: No usable X widget libraries were found." 1>&2 + echo "configure: warning: XtReactor test compilation will be disabled." 1>&2 + +fi + + +fi + + + + + + +if test X$xt_reactor_go = Xyes; then + COMPILE_XTREACTOR_TEST_TRUE= + COMPILE_XTREACTOR_TEST_FALSE='#' +else + COMPILE_XTREACTOR_TEST_TRUE='#' + COMPILE_XTREACTOR_TEST_FALSE= +fi + + LDFLAGS="$T_LDFLAGS" + +fi + +echo $ac_n "checking for dlopen""... $ac_c" 1>&6 +echo "configure:4830: checking for dlopen" >&5 +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 4835 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char dlopen(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_dlopen) || defined (__stub___dlopen) +choke me +#else +dlopen(); +#endif + +; return 0; } +EOF +if { (eval echo configure:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_dlopen=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_dlopen=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ace_has_svr4_dynamic_linking=yes +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 +echo "configure:4879: checking for dlopen in -ldl" >&5 +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldl $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4887 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and +char dlopen(); + +int main() { +dlopen() +; return 0; } +EOF +if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_svr4_dynamic_linking=yes + LIBS="$LIBS -ldl" + +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 +echo "configure:4923: checking for dlopen in -lsvld" >&5 +ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsvld $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4931 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen(); + +int main() { +dlopen() +; return 0; } +EOF +if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_svr4_dynamic_linking=yes + LIBS="$LIBS -lsvld" + +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for shl_get in -ldld""... $ac_c" 1>&6 +echo "configure:4967: checking for shl_get in -ldld" >&5 +ac_lib_var=`echo dld'_'shl_get | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldld $LIBS" +cat > conftest.$ac_ext <<EOF +#line 4975 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_get(); + +int main() { +shl_get() +; return 0; } +EOF +if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-ldld $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +fi + +fi + +fi + + +echo $ac_n "checking for socket""... $ac_c" 1>&6 +echo "configure:5024: checking for socket" >&5 +if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5029 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char socket(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char socket(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal nme is an alias. */ +#if defined (__stub_socket) || defined (__stub___socket) +choke me +#else +socket(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_socket=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_socket=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 +echo "configure:5073: checking for socket in -lsocket" >&5 +ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lsocket $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5081 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char socket(); + +int main() { +socket() +; return 0; } +EOF +if { (eval echo configure:5095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lsocket $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 +echo "configure:5126: checking for gethostbyname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5131 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyname(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) +choke me +#else +gethostbyname(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyname=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyname=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 +echo "configure:5175: checking for gethostbyname in -lnsl" >&5 +ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5183 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname(); + +int main() { +gethostbyname() +; return 0; } +EOF +if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lnsl $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +echo $ac_n "checking for getservbyname""... $ac_c" 1>&6 +echo "configure:5228: checking for getservbyname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getservbyname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5233 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getservbyname(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getservbyname(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getservbyname) || defined (__stub___getservbyname) +choke me +#else +getservbyname(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getservbyname=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getservbyname=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getservbyname`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for getservbyname in -lxnet""... $ac_c" 1>&6 +echo "configure:5277: checking for getservbyname in -lxnet" >&5 +ac_lib_var=`echo xnet'_'getservbyname | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lxnet $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5285 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getservbyname(); + +int main() { +getservbyname() +; return 0; } +EOF +if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lxnet $LIBS" + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_GETSERVBYNAME 1 +EOF + +fi + +fi + + +echo $ac_n "checking for compile""... $ac_c" 1>&6 +echo "configure:5334: checking for compile" >&5 +if eval "test \"`echo '$''{'ac_cv_func_compile'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5339 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char compile(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char compile(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_compile) || defined (__stub___compile) +choke me +#else +compile(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_compile=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_compile=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'compile`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for compile in -lgen""... $ac_c" 1>&6 +echo "configure:5383: checking for compile in -lgen" >&5 +ac_lib_var=`echo gen'_'compile | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lgen $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5391 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char compile(); + +int main() { +compile() +; return 0; } +EOF +if { (eval echo configure:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lgen $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +echo $ac_n "checking for exc_continue""... $ac_c" 1>&6 +echo "configure:5436: checking for exc_continue" >&5 +if eval "test \"`echo '$''{'ac_cv_func_exc_continue'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5441 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char exc_continue(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char exc_continue(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_exc_continue) || defined (__stub___exc_continue) +choke me +#else +exc_continue(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_exc_continue=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_exc_continue=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'exc_continue`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for exc_continue in -lexc""... $ac_c" 1>&6 +echo "configure:5485: checking for exc_continue in -lexc" >&5 +ac_lib_var=`echo exc'_'exc_continue | sed 'y%./+-%__p_%'` +if eval "te + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lexc $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5493 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char exc_continue(); + +int main() { +exc_continue() +; return 0; } +EOF +if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo exc | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lexc $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +echo $ac_n "checking for ctime_r""... $ac_c" 1>&6 +echo "configure:5538: checking for ctime_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_ctime_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5543 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char ctime_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char ctime_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_ctime_r) || defined (__stub___ctime_r) +choke me +#else +ctime_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_ctime_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_ctime_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'ctime_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for ctime_r in -lc_r""... $ac_c" 1>&6 +echo "configure:5587: checking for ctime_r in -lc_r" >&5 +ac_lib_var=`echo c_r'_'ctime_r | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lc_r $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5595 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char ctime_r(); + +int main() { +ctime_r() +; return 0; } +EOF +if { (eval echo configure:5609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lc_r $LIBS" + +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +ace_has_tli_funcs=yes +echo $ac_n "checking for t_accept""... $ac_c" 1>&6 +echo "configure:5641: checking or t_accept" >&5 +if eval "test \"`echo '$''{'ac_cv_func_t_accept'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5646 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char t_accept(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char t_accept(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_t_accept) || defined (__stub___t_accept) +choke me +#else +t_accept(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_t_accept=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_t_accept=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'t_accept`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for t_accept in -lxti""... $ac_c" 1>&6 +echo "configure:5690: checking for t_accept in -lxti" >&5 +ac_lib_var=`echo xti'_'t_accept | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lxti $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5698 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char t_accept(); + +int main() { +t_accept() +; return 0; } +EOF +if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo xti | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lxti $LIBS" + +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for t_accept in -ltli_r""... $ac_c" 1>&6 +echo "configure:5738: checking for t_accept in -ltli_r" >&5 +ac_lib_var=`echo tli_r'_'t_accept | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ltli_r $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5746 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char t_accept(); + +int main() { +t_accept() +; return 0; } +EOF +if { (eval echo configure:5760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo tli_r | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-ltli_r $LIBS" + +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for t_accept in -ltli""... $ac_c" 1>&6 +echo "configure:5786: checking for t_accept in -ltli" >&5 +ac_lib_var=`echo tli'_'t_accept | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ltli $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5794 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char t_accept(); + +int main() { +t_accept() +; return 0; } +EOF +if { (eval echo configure:5808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo tli | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-ltli $LIBS" + +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for t_accept in -lnsl""... $ac_c" 1>&6 +echo "configure:5834: checking for t_accept in -lnsl" >&5 +ac_lib_var=`echo nsl'_'t_accept | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lnsl $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5842 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char t_accept(); + +int main() { +t_accept() +; return 0; } +EOF +if { (eval echo configure:5856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lnsl $LIBS" + +else + echo "$ac_t""no" 1>&6 +ace_has_tli_funcs=no +fi + +fi + +fi + +fi + +fi + + +ace_has_aio_funcs=yes +echo $ac_n "checking for aio_read""... $ac_c" 1>&6 +echo "configure:5895: checking for aio_read" >&5 +if eval "test \"`echo '$''{'ac_cv_func_aio_read'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 5900 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char aio_read(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char aio_read(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_aio_read) || defined (__stub___aio_read) +choke me +#else +aio_read(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_aio_read=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_aio_read=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'aio_read`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for aio_read in -laio""... $ac_c" 1>&6 +echo "configure:5944: checking for aio_read in -laio" >&5 +ac_lib_var=`echo aio'_'aio_read | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-laio $LIBS" +cat > conftest.$ac_ext <<EOF +#line 5952 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char aio_read(); + +int main() { +aio_read() +; return 0; } +EOF +if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo aio | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-laio $LIBS" + +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for aio_read in -lposix4""... $ac_c" 1>&6 +echo "configure:5992: checking for aio_read in -lposix4" >&5 +ac_lib_var=`echo posix4'_'aio_read | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lposix4 $LIBS" +cat > conftest.$ac_ext <<EOF +#line 6000 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char aio_read(); + +int main() { +aio_read() +; return 0; } +EOF +if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/^a-zA-Z0-9_/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <<EOF +#define $ac_tr_lib 1 +EOF + + LIBS="-lposix4 $LIBS" + +else + echo "$ac_t""no" 1>&6 +ace_has_aio_funcs=no +fi + +fi + +fi + + +if test "$ace_user_enable_threads" = yes; then + + + + echo $ac_n "checking if compiler may need a thread flag""... $ac_c" 1>&6 +echo "configure:6052: checking if compiler may need a thread flag" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_may_need_thread_flag'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +cat > conftest.$ac_ext <<EOF +#line 6067 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char thr_create(); + +int main() { + +thr_create(); + +; return 0; } +EOF +if { (eval echo configure:6086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_may_need_thread_flag=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + + cat > conftest.$ac_ext <<EOF +#line 6099 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6106: \"$ac +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + fi +cat > conftest.$ac_ext <<EOF +#line 6139 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char $ace_real_function(); + +int main() { + +$ace_real_function(); + +; return 0; } +EOF +if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_may_need_thread_flag=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_may_need_thread_flag=yes + +fi +rm -f conftest* + + +fi +rm -f conftest* + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + +fi + + echo "$ac_t""$ace_cv_feature_may_need_thread_flag" 1>&6 + if test "$ace_cv_feature_may_need_thread_flag" = yes; then + ace_just_a_place_holder=fixme + + ace_cv_feature_thread_flag_set=no + + save_CXXFLAGS="$CXXFLAGS" + save_CFLAGS="$CFLAGS" + + CXXFLAGS="$CXXFLAGS -mt" + CFLAGS="$CFLAGS -mt" + + + echo $ac_n "checking if compiler can use -mt flag""... $ac_c" 1>&6 +echo "configure:6201: checking if compiler can use -mt flag" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_mt_flag'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +cat > conftest.$ac_ext <<EOF +#line 6216 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char thr_create(); + +int main() { + +thr_create(); + +; return 0; } +EOF +if { (eval echo configure:6235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_mt_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + + cat > conftest.$ac_ext <<EOF +#line 6248 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + fi +cat > conftest.$ac_ext <<EOF +#line 6288 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char $ace_real_function(); + +int main() { + +$ace_real_function(); + +; return 0; } +EOF +if { (eval echo configure:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_mt_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_mt_flag=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + +fi + + echo "$ac_t""$ace_cv_feature_has_mt_flag" 1>&6 + if test "$ace_cv_feature_has_mt_flag" = yes; then + ace_just_a_place_holder=fixme + + ace_cv_feature_thread_flag_set=yes + + else + ace_just_a_place_holder=fixme + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + fi + + + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -pthread" + CFLAGS="$CFLAGS -pthread" + + + echo $ac_n "checking if compiler can use -pthread flag""... $ac_c" 1>&6 +echo "configure:6358: checking if compiler can use -pthread flag" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_pthread_flag'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +cat > conftest.$ac_ext <<EOF +#line 6373 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char thr_create(); + +int main() { + +thr_create(); + +; return 0; } +EOF +if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_pthread_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + + cat > conftest.$ac_ext <<EOF +#line 6405 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + fi +cat > conftest.$ac_ext <<EOF +#line 6445 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char $ace_real_function(); + +int main() { + +$ace_real_function(); + +; return 0; } +EOF +if { (eval echo configure:6464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_pthread_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_pthread_flag=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + +fi + + echo "$ac_t""$ace_cv_feature_has_pthread_flag" 1>&6 + if test "$ace_cv_feature_has_pthread_flag" = yes; then + ace_just_a_place_holder=fixme + + ace_cv_feature_thread_flag_set=yes + + else + ace_just_a_place_holder=fixme + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + fi + + + fi + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -pthreads" + CFLAGS="$CFLAGS -pthreads" + + + echo $ac_n "checking if compiler can use -pthreads flag""... $ac_c" 1>&6 +echo "configure:6516: checking if compiler can use -pthreads flag" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_pthreads_flag'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +cat > conftest.$ac_ext <<EOF +#line 6531 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char thr_create(); + +int main() { + +thr_create(); + +; return 0; } +EOF +if { (eval echo configure:6550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_pthreads_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + + cat > conftest.$ac_ext <<EOF +#line 6563 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + fi +cat > conftest.$ac_ext <<EOF +#line 6603 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char $ace_real_function(); + +int main() { + +$ace_real_function(); + +; return 0; } +EOF +if { (eval echo configure:6622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_pthreads_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_pthreads_flag=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + +fi + + echo "$ac_t""$ace_cv_feature_has_pthreads_flag" 1>&6 + if test "$ace_cv_feature_has_pthreads_flag" = yes; then + ace_just_a_place_holder=fixme + + ace_cv_feature_thread_flag_set=yes + + else + ace_just_a_place_holder=fixme + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + fi + + + fi + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -mthreads" + CFLAGS="$CXXFLAGS -mthreads" + + + echo $ac_n "checking if compiler can use -mthreads flag""... $ac_c" 1>&6 +echo "configure:6674: checking if compiler can use -mthreads flag" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_mthreads_flag'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +cat > conftest.$ac_ext <<EOF +#line 6689 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char thr_create(); + +int main() { + +thr_create(); + +; return 0; } +EOF +if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_mthreads_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + + cat > conftest.$ac_ext <<EOF +#line 6721 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + fi +cat > conftest.$ac_ext <<EOF +#line 6761 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char $ace_real_function(); + +int main() { + +$ace_real_function(); + +; return 0; } +EOF +if { (eval echo configure:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_mthreads_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_mthreads_flag=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + +fi + + echo "$ac_t""$ace_cv_feature_has_mthreads_flag" 1>&6 + if test "$ace_cv_feature_has_mthreads_flag" = yes; then + ace_just_a_place_holder=fixme + + ace_cv_feature_thread_flag_set=yes + + else + ace_just_a_place_holder=fixme + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + fi + + + fi + if test "$ace_cv_feature_thread_flag_set" = no; then + + CXXFLAGS="$CXXFLAGS -threads" + CFLAGS="$CXXFLAGS -threads" + + + echo $ac_n "checking if compiler can use -threads flag""... $ac_c" 1>&6 +echo "configure:6832: checking if compiler can use -threads flag" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_dash_threads_flag'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +cat > conftest.$ac_ext <<EOF +#line 6847 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char thr_create(); + +int main() { + +thr_create(); + +; return 0; } +EOF +if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_dash_threads_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + + cat > conftest.$ac_ext <<EOF +#line 6879 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:6886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + else + ace_real_function="pthread_create" + +cat > conftest.$ac_ext <<EOF +#line 6919 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" +#endif + +#ifndef _REENTRANT +#error _REENTRANT was not defined +THROW ME AN ERROR! +#endif + +char $ace_real_function(); + +int main() { + +$ace_real_function(); + +; return 0; } +EOF +if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_has_dash_threads_flag=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_dash_threads_flag=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + +fi + + echo "$ac_t""$ace_cv_feature_has_dash_threads_flag" 1>&6 + if test "$ace_cv_feature_has_dash_threads_flag" = yes; then + ace_just_a_place_holder=fixme + + ace_cv_feature_thread_flag_set=yes + + else + ace_just_a_place_holder=fixme + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + fi + + + fi + else + ace_just_a_place_holder=fixme + + + fi + + + + ace_has_sthreads=no + + echo $ac_n "checking for thr_create""... $ac_c" 1>&6 +echo "configure:6994: checking for thr_create" >&5 +if eval "test \"`echo '$''{'ac_cv_func_thr_create'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 6999 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char thr_create(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thr_create(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_thr_create) || defined (__stub___thr_create) +choke me +#else +thr_create(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_thr_create=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_thr_create=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'thr_create`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_sthreads=yes + cat >> confdefs.h <<\EOF +#define ACE_HAS_STHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 + + echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 +echo "configure:7050: checking for thr_create in -lthread" >&5 +ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lthread $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7058 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thr_create(); + +int main() { +thr_create() +; return 0; } +EOF +if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_sthreads=yes + LIBS="$LIBS -lthread" + cat >> confdefs.h <<\EOF +#define ACE_HAS_STHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +fi + + + + + echo $ac_n "checking for pthreads backward compatibility macros""... $ac_c" 1>&6 +echo "configure:7106: checking for pthreads backward compatibility macros" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_pthread_compat_macros'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 7112 "configure" +#include "confdefs.h" + +#include <pthread.h> + +#if defined (pthread_create) + ACE_PTHREAD_MACROS +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_PTHREAD_MACROS" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_pthread_compat_macros=yes + +else + rm -rf conftest* + + ace_cv_lib_pthread_compat_macros=no + +fi +rm -f conftest* + + +fi + +echo "$ac_t""$ace_cv_lib_pthread_compat_macros" 1>&6 + + ace_has_pthreads=no + + + + + cat > conftest.$ac_ext <<EOF +#line 7147 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + echo "configure: warning: No awk program found. "Real" function may not be found." 1>&2 + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test pthread_create != "$ace_real_function"; then + echo $ac_n "checking for real pthread_create from pthread.h""... $ac_c" 1>&6 +echo "configure:7190: checking for real pthread_create from pthread.h" >&5 + echo "$ac_t""$ace_real_function" 1>&6 + fi + else + ace_real_function=pthread_create + fi + echo $ac_n "checking for $ace_real_function""... $ac_c" 1>&6 +echo "configure:7197: checking for $ace_real_function" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ace_real_function'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7202 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ace_real_function(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ace_real_function(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ace_real_function) || defined (__stub___$ace_real_function) +choke me +#else +$ace_real_function(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ace_real_function`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ace_has_pthreads=yes + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 +echo "configure:7251: checking for pthread_create in -lpthread" >&5 +ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lpthread $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7259 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create(); + +int main() { +pthread_create() +; return 0; } +EOF +if { (eval echo configure:7273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_pthreads=yes + LIBS="$LIBS -lpthread" + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + + if test "$ace_has_pthreads" = no && + test "$ace_cv_lib_pthread_compat_macros" = yes; then + + + + cat > conftest.$ac_ext <<EOF +#line 7307 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_create + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + echo "configure: warning: No awk program found. "Real" function in library may not be found." 1>&2 + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + eval "$AWK '{print \$2}'" > conftest.awk 2>&1; then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test pthread_create != "$ace_real_function"; then + echo $ac_n "checking for real pthread_create from pthread.h""... $ac_c" 1>&6 +echo "configure:7350: checking for real pthread_create from pthread.h" >&5 + echo "$ac_t""$ace_real_function" 1>&6 + fi + else + ace_real_function=pthread_create + fi + echo $ac_n "checking for $ace_real_function in -lpthread""... $ac_c" 1>&6 +echo "configure:7357: checking for $ace_real_function in -lpthread" >&5 +ac_lib_var=`echo pthread'_'$ace_real_function | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lpthread $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7365 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ace_real_function(); + +int main() { +$ace_real_function() +; return 0; } +EOF +if { (eval echo configure:7379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ace_has_pthreads=yes + LIBS="$LIBS -lpthread" + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + + fi + if test "$ace_has_pthreads" = no; then + echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 +echo "configure:7409: checking for pthread_create in -lpthreads" >&5 +ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lpthreads $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7417 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create(); + +int main() { +pthread_create() +; return 0; } +EOF +if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_pthreads=yes + LIBS="$LIBS -lpthreads" + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + fi + if test "$ace_has_pthreads" = no; then + echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 +echo "configure:7461: checking for pthread_create in -lc_r" >&5 +ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lc_r $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7469 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create(); + +int main() { +pthread_create() +; return 0; } +EOF +if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_pthreads=yes + LIBS="$LIBS -lc_r" + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + fi + if test "$ace_has_pthreads" = no; then + echo $ac_n "checking for pthread_create in -lgthreads""... $ac_c" 1>&6 +echo "configure:7513: checking for pthread_create in -lgthreads" >&5 +ac_lib_var=`echo gthreads'_'pthread_create | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lgthreads $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7521 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_create(); + +int main() { +pthread_create() +; return 0; } +EOF +if { (eval echo configure:7535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat confte + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_pthreads=yes + LIBS="$LIBS -lgthreads" + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + fi +fi + + + + if test "$ace_has_pthreads" != yes && + test "$ace_has_sthreads" != yes; then + ace_user_enable_threads=no + fi + + +fi +echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 +echo "configure:7575: checking for sched_yield" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7580 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sched_yield(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sched_yield(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sched_yield) || defined (__stub___sched_yield) +choke me +#else +sched_yield(); +#endif + +; return 0; } +EOF +if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sched_yield=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sched_yield=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ace_has_sched_yield=yes +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 +echo "configure:7624: checking for sched_yield in -lposix4" >&5 +ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lposix4 $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7632 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sched_yield(); + +int main() { +sched_yield() +; return 0; } +EOF +if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ace_has_sched_yield=yes +else + echo "$ac_t""no" 1>&6 +fi + +fi + + + + +ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 +echo "configure:7676: checking for $ac_hdr that defines DIR" >&5 +if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7681 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <$ac_hdr> +int main() { +DIR *dirp = 0; +; return 0; } +EOF +if { (eval echo configure:7689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + eval "ac_cv_header_dirent_$ac_safe=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -r conftest* + eval "ac_cv_header_dirent_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <<EOF +#define $ac_tr_hdr 1 +EOF + ac_header_dirent=$ac_hdr; break +else + echo "$ac_t""no" 1>&6 +fi +done +# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. +if test $ac_header_dirent = dirent.h; then +echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 +echo "configure:7714: checking for opendir in -ldir" >&5 +ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-ldir $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7722 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char opendir(); + +int main() { +opendir() +; return 0; } +EOF +if { (eval echo configure:7736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LIBS="$LIBS -ldir" +else + echo "$ac_t""no" 1>&6 +fi + +else +echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 +echo "configure:7758: checking for opendir in -lx" >&5 +ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lx $LIBS" +cat > conftest.$ac_ext <<EOF +#line 7766 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char opendir(); + +int main() { +opendir() +; return 0; } +EOF +if { (eval echo configure:7780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + LIBS="$LIBS -lx" +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +if test "$ac_cv_header_dirent_dirent_h" = yes || + test "$ac_cv_header_dirent_sys_ndir_h" = yes || + test "$ac_cv_header_dirent_sys_dir_h" = yes || + test "$ac_cv_header_dirent_ndir_h" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_DIRENT 1 +EOF + +fi + +echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 +echo "configure:7814: checking for sys/wait.h that is POSIX.1 compatible" >&5 +if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7819 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/wait.h> +#ifndef WEXITSTATUS +#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) +#endif +#ifndef WIFEXITED +#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) +#endif +int main() { +int s; +wait (&s); +s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; +; return 0; } +EOF +if { (eval echo configure:7835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_header_sys_wait_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_sys_wait_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 +if test $ac_cv_header_sys_wait_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_SYS_WAIT_H 1 +EOF + +fi + + +if test "$am_cv_cygwin32" = yes; then + ac_safe=`echo "cygwin32/socket.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for cygwin32/socket.h""... $ac_c" 1>&6 +echo "configure:7859: checking for cygwin32/socket.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7864 "configure" +#include "confdefs.h" +#include <cygwin32/socket.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_CYGWIN32_SOCKET_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +fi + +ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 +echo "configure:7897: checking for dlfcn.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7902 "configure" +#include "confdefs.h" +#include <dlfcn.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + if test "$ace_has_svr4_dynamic_linking" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SVR4_DYNAMIC_LINKING 1 +EOF + + fi + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "malloc.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for malloc.h""... $ac_c" 1>&6 +echo "configure:7938: checking for malloc.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7943 "configure" +#include "confdefs.h" +#include <malloc.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MALLOC_H 1 +EOF + +fi + + +ac_safe=`echo "memory.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for memory.h""... $ac_c" 1>&6 +echo "configure:7976: checking for memory.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 7981 "configure" +#include "confdefs.h" +#include <memory.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:7986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MEMORY_H 1 +EOF + +fi + + +ac_safe=`echo "bytesex.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for bytesex.h""... $ac_c" 1>&6 +echo "configure:8014: checking for bytesex.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8019 "configure" +#include "confdefs.h" +#include <bytesex.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_BYTESEX_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + +ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 +echo "configure:8052: checking for sys/msg.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8057 "configure" +#include "confdefs.h" +#include <sys/msg.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + + echo $ac_n "checking if _KERNEL is needed for msg prototypes""... $ac_c" 1>&6 +echo "configure:8081: checking if _KERNEL is needed for msg prototypes" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_broken_msg_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 8087 "configure" +#include "confdefs.h" + +#include <sys/msg.h> + +int main() { + + struct msg ace_msg; + +; return 0; } +EOF +if { (eval echo configure:8098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_broken_msg_h=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 8109 "configure" +#include "confdefs.h" + +#ifndef _KERNEL +# define _KERNEL +#endif +#include <sys/msg.h> + +int main() { + + struct msg ace_msg; + +; return 0; } +EOF +if { (eval echo configure:8123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_broken_msg_h=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_broken_msg_h=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_broken_msg_h" 1>&6 + if test "$ace_cv_lib_broken_msg_h" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_MSG_H 1 +EOF + + + else + ace_just_a_place_holder=fixme + fi + + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SYSV_MSG_H 1 +EOF + +fi + + +ac_safe=`echo "sys/param.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/param.h""... $ac_c" 1>&6 +echo "configure:8168: checking for sys/param.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8173 "confi +#include "confdefs.h" +#include <sys/param.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_PARAM_H 1 +EOF + +fi + + +ac_safe=`echo "sys/priocntl.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/priocntl.h""... $ac_c" 1>&6 +echo "configure:8206: checking for sys/priocntl.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8211 "configure" +#include "confdefs.h" +#include <sys/priocntl.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/procfs.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/procfs.h""... $ac_c" 1>&6 +echo "configure:8240: checking for sys/procfs.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8245 "configure" +#include "confdefs.h" +#include <sys/procfs.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_PROC_FS 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/select.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/select.h""... $ac_c" 1>&6 +echo "configure:8277: checking for sys/select.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8282 "configure" +#include "confdefs.h" +#include <sys/select.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SELECT_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "netinet/tcp.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for netinet/tcp.h""... $ac_c" 1>&6 +echo "configure:8314: checking for netinet/tcp.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8319 "configure" +#include "confdefs.h" +#include <netinet/tcp.h> +EOF +ac_try="$ac_cpp conftest.$acext >/dev/null 2>conftest.out" +{ (eval echo configure:8324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_TCP_H 1 +EOF + +fi + + +ac_safe=`echo "sys/sockio.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/sockio.h""... $ac_c" 1>&6 +echo "configure:8352: checking for sys/sockio.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8357 "configure" +#include "confdefs.h" +#include <sys/sockio.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SOCKIO_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sysent.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sysent.h""... $ac_c" 1>&6 +echo "configure:8389: checking for sysent.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8394 "configure" +#include "confdefs.h" +#include <sysent.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SYSENT_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/systeminfo.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/systeminfo.h""... $ac_c" 1>&6 +echo "configure:8426: checking for sys/systeminfo.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8431 "configure" +#include "confdefs.h" +#include <sys/systeminfo.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +ac_safe=`echo "sys/filio.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/filio.h""... $ac_c" 1>&6 +echo "configure:8459: checking for sys/filio.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8464 "configure" +#include "confdefs.h" +#include <sys/filio.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SYS_FILIO_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/uio.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/uio.h""... $ac_c" 1>&6 +echo "configure:8496: checking for sys/uio.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8501 "configure" +#include "confdefs.h" +#include <sys/uio.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +ac_safe=`echo "sys/ioctl.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/ioctl.h""... $ac_c" 1>&6 +echo "configure:8529: checking for sys/ioctl.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8534 "configure" +#include "confdefs.h" +#include <sys/ioctl.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SYS_IOCTL_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6 +echo "configure:8566: checking for sys/types.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8571 "configure" +#include "confdefs.h" +#include <sys/types.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SYS_TYPES_H 1 +EOF + +fi + + +ac_safe=`echo "sys/termios.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/termios.h""... $ac_c" 1>&6 +echo "configure:8604: checking for sys/termios.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8609 "configure" +#include "confdefs.h" +#include <sys/termios.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat > conftest.$ac_ext <<EOF +#line 8632 "configure" +#include "confdefs.h" + +#include <sys/termios.h> + +#if defined (ACE_HAS_SYS_IOCTL_H) +# include <sys/ioctl.h> +#endif + +#if defined(TCGETS) && defined(TCSETS) + ACE_WITH_TERM_IOCTLS +#elif defined(TCGETA) && defined(TCSETA) + ACE_WITH_TERM_IOCTLS +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_WITH_TERM_IOCTLS" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define ACE_HAS_TERM_IOCTLS 1 +EOF + + +fi +rm -f conftest* + + +else + echo "$ac_t""no" 1>&6 +fi + + +if test "$ace_has_tli_funcs" = yes; then +ac_safe=`echo "xti.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for xti.h""... $ac_c" 1>&6 +echo "configure:8669: checking for xti.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8674 "configure" +#include "confdefs.h" +#include <xti.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_tli=yes + cat >> confdefs.h <<\EOF +#define ACE_HAS_XTI 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_TLI 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/xti.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/xti.h""... $ac_c" 1>&6 +echo "configure:8713: checking for sys/xti.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8718 "configure" +#include "confdefs.h" +#include <sys/xti.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_tli=yes + cat >> confdefs.h <<\EOF +#define ACE_HAS_SYS_XTI_H 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_XTI 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_TLI 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/timod.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/timod.h""... $ac_c" 1>&6 +echo "configure:8761: checking for sys/timod.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8766 "configure" +#include "confdefs.h" +#include <sys/timod.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat >> confdefs.h <<\EOF +#define +EOF + + +else + echo "$ac_t""no" 1>&6 + + ac_safe=`echo "tli/timod.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for tli/timod.h""... $ac_c" 1>&6 +echo "configure:8798: checking for tli/timod.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8803 "configure" +#include "confdefs.h" +#include <tli/timod.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat >> confdefs.h <<\EOF +#define ACE_HAS_OSF_TIMOD_H 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +fi + + +ac_safe=`echo "tiuser.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for tiuser.h""... $ac_c" 1>&6 +echo "configure:8840: checking for tiuser.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8845 "configure" +#include "confdefs.h" +#include <tiuser.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_tli=yes + cat >> confdefs.h <<\EOF +#define ACE_HAS_TIUSER_H 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_TLI 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +if test "$ac_cv_header_tiuser_h" = yes; then + + echo $ac_n "checking if tiuser.h is protected by extern \"C\"""... $ac_c" 1>&6 +echo "configure:8885: checking if tiuser.h is protected by extern \"C\"" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_tiuser_with_extern_c'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 8891 "configure" +#include "confdefs.h" +#include <tiuser.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "extern \"C\"" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_tiuser_with_extern_c=yes + +else + rm -rf conftest* + + ace_cv_lib_tiuser_with_extern_c=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_tiuser_with_extern_c" 1>&6 + if test "$ace_cv_lib_tiuser_with_extern_c" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_TIUSER_H_BROKEN_EXTERN_C 1 +EOF + + fi + +fi +ac_safe=`echo "xliuser.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for xliuser.h""... $ac_c" 1>&6 +echo "configure:8927: checking for xliuser.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 8932 "configure" +#include "confdefs.h" +#include <xliuser.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ace_has_tli=yes cat >> confdefs.h <<\EOF +#define ACE_HAS_XLI 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_TLI 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + + +if test "$ace_has_tli" = yes; then + + echo $ac_n "checking for TLI prototypes""... $ac_c" 1>&6 +echo "configure:8973: checking for TLI prototypes" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_tli_prototypes'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 8979 "configure" +#include "confdefs.h" + +#if defined (ACE_HAS_TIMOD_H) +# include <sys/timod.h> +#endif + +#if defined (ACE_HAS_OSF_TIMOD_H) +# include <tli/timod.h> +#endif + +#if defined (ACE_HAS_TIUSER_H) || defined (ACE_HAS_XTI) +# if defined (ACE_HAS_TIUSER_H) +# include /**/ <tiuser.h> +# else +# if defined (ACE_HAS_BROKEN_XTI_MACROS) +# undef TCP_NODELAY +# undef TCP_MAXSEG +# endif /* ACE_HAS_BROKEN_XTI_MACROS */ +# if defined ACE_HAS_SYS_XTI_H +# define class ace_xti_class +# include /**/ <sys/xti.h> +# undef class +# else +# include /**/ <xti.h> +# endif /* ACE_HAS_SYS_XTI_H */ +# endif /* ACE_HAS_TIUSER_H */ +#endif /* ACE_HAS_TIUSER_H || ACE_HAS_XTI */ + +#if defined (ACE_HAS_XLI) +# include <xliuser.h> +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "t_accept" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_tli_prototypes=yes + +else + rm -rf conftest* + + ace_cv_lib_tli_prototypes=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_tli_prototypes" 1>&6 + if test "$ace_cv_lib_tli_prototypes" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_TLI_PROTOTYPES 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for t_errno in TLI headers""... $ac_c" 1>&6 +echo "configure:9044: checking for t_errno in TLI headers" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_has_t_errno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 9050 "configure" +#include "confdefs.h" + +#if defined (ACE_HAS_TIMOD_H) +# include <sys/timod.h> +#endif + +#if defined (ACE_HAS_OSF_TIMOD_H) +# include <tli/timod.h> +#endif + +#if defined (ACE_HAS_TIUSER_H) || defined (ACE_HAS_XTI) +# if defined (ACE_HAS_TIUSER_H) +# include /**/ <tiuser.h> +# else +# if defined (ACE_HAS_BROKEN_XTI_MACROS) +# undef TCP_NODELAY +# undef TCP_MAXSEG +# endif /* ACE_HAS_BROKEN_XTI_MACROS */ +# if defined ACE_HAS_SYS_XTI_H +# define class ace_xti_class +# include /**/ <sys/xti.h> +# undef class +# else +# include /**/ <xti.h> +# endif /* ACE_HAS_SYS_XTI_H */ +# endif /* ACE_HAS_TIUSER_H */ +#endif /* ACE_HAS_TIUSER_H || ACE_HAS_XTI */ + +#if defined (ACE_HAS_XLI) +# include <xliuser.h> +#endif + +#ifndef _THREAD_SAFE +# define _THREAD_SAFE +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "t_errno" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_has_t_errno=yes + +else + rm -rf conftest* + + ace_cv_lib_has_t_errno=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_has_t_errno" 1>&6 + if test "$ace_cv_lib_has_t_errno" = yes; then + ace_just_a_place_holder=fixme + + echo $ac_n "checking for _terrno""... $ac_c" 1>&6 +echo "configure:9110: checking for _terrno" >&5 +if eval "test \"`echo '$''{'ac_cv_func__terrno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9115 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char _terrno(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char _terrno(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub__terrno) || defined (__stub____terrno) +choke me +#else +_terrno(); +#endif + +; return 0; } +EOF +if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func__terrno=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func__terrno=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'_terrno`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_T_ERRNO 1 +EOF + +fi + + + else + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_LACKS_T_ERRNO 1 +EOF + + + fi + + +fi fi +ac_safe=`echo "sys/time.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/time.h""... $ac_c" 1>&6 +echo "configure:9179: checking for sys/time.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9184 "configure" +#include "confdefs.h" +#include <sys/time.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat > conftest.$ac_ext <<EOF +#line 9207 "configure" +#include "confdefs.h" +#include <time.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "sys/time.h" >/dev/null 2>&1; then + : +else + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define ACE_LACKS_SYSTIME_H 1 +EOF + + +fi +rm -f conftest* + + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/mman.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/mman.h""... $ac_c" 1>&6 +echo "configure:9233: checking for sys/mman.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9238 "configure" +#include "confdefs.h" +#include <sys/mman.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat > conftest.$ac_ext <<EOF +#line 9261 "configure" +#include "confdefs.h" +#include <sys/mman.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "extern \"C\"" >/dev/null 2>&1; then + : +else + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_MMAP_H 1 +EOF + + +fi +rm -f conftest* + + +else + echo "$ac_t""no" 1>&6 + + cat >> confdefs.h <<\EOF +#define ACE_LACKS_MMAP 1 +EOF + + +fi + + +ac_safe=`echo "bstring.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for bstring.h""... $ac_c" 1>&6 +echo "configure:9293: checking for bstring.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9298 "configure" +#include "confdefs.h" +#include <bstring.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat > conftest.$ac_ext <<EOF +#line 9321 "configure" +#include "confdefs.h" +#include <bstring.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "bzero" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define ACE_HAS_BSTRING 1 +EOF + + +fi +rm -f conftest* + + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "strings.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for strings.h""... $ac_c" 1>&6 +echo "configure:9345: checking for strings.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9350 "configure" +#include "confdefs.h" +#include <strings.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat > conftest.$ac_ext <<EOF +#line 9373 "configure" +#include "confdefs.h" +#include <strings.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "bzero" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define ACE_HAS_STRINGS 1 +EOF + + +fi +rm -f conftest* + + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "sys/syscall.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for sys/syscall.h""... $ac_c" 1>&6 +echo "configure:9397: checking for sys/syscall.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9402 "configure" +#include "confdefs.h" +#include <sys/syscall.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SYSCALL_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "poll.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for poll.h""... $ac_c" 1>&6 +echo "configure:9434: checking for poll.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9439 "configure" +#include "confdefs.h" +#include <poll.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_POLL 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +for ac_hdr in pwd.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:9473: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9478 "configure" +#include "confdefs.h" +#include <$ac_hdr +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <<EOF +#define $ac_tr_hdr 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi +done + +ac_safe=`echo "regexpr.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for regexpr.h""... $ac_c" 1>&6 +echo "configure:9511: checking for regexpr.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9516 "configure" +#include "confdefs.h" +#include <regexpr.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_REGEX 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "stropts.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for stropts.h""... $ac_c" 1>&6 +echo "configure:9548: checking for stropts.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9553 "configure" +#include "confdefs.h" +#include <stropts.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_STREAMS 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "siginfo.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for siginfo.h""... $ac_c" 1>&6 +echo "configure:9585: checking for siginfo.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9590 "configure" +#include "confdefs.h" +#include <siginfo.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SIGINFO_H 1 +EOF + +fi + + +ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 +echo "configure:9623: checking for unistd.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9628 "configure" +#include "confdefs.h" +#includ <unistd.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_UNISTD_H 1 +EOF + +fi + + +ac_safe=`echo "ucontext.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for ucontext.h""... $ac_c" 1>&6 +echo "configure:9661: checking for ucontext.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9666 "configure" +#include "confdefs.h" +#include <ucontext.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_UCONTEXT_H 1 +EOF + +fi + + +ac_safe=`echo "utime.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for utime.h""... $ac_c" 1>&6 +echo "configure:9699: checking for utime.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9704 "configure" +#include "confdefs.h" +#include <utime.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_UTIME 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + +ac_safe=`echo "libc.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for libc.h""... $ac_c" 1>&6 +echo "configure:9737: checking for libc.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9742 "configure" +#include "confdefs.h" +#include <libc.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_LIBC_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "osfcn.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for osfcn.h""... $ac_c" 1>&6 +echo "configure:9774: checking for osfcn.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9779 "configure" +#include "confdefs.h" +#include <osfcn.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_OSFCN_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "new" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for new""... $ac_c" 1>&6 +echo "configure:9811: checking for new" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9816 "configure" +#include "confdefs.h" +#include <new> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_NEW_NO_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 + + ac_safe=`echo "new.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for new.h""... $ac_c" 1>&6 +echo "configure:9846: checking for new.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9851 "configure" +#include "confdefs.h" +#include <new.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_NEW_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +fi + + +ac_safe=`echo "stdexcept" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for stdexcept""... $ac_c" 1>&6 +echo "configure:9886: checking for stdexcept" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9891 "configure" +#include "confdefs.h" +#include <stdexcept> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_STDEXCEPT_NO_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 + + ac_safe=`echo "exception.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for exception.h""... $ac_c" 1>&6 +echo "configure:9921: checking for exception.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9926 "configure" +#include "confdefs.h" +#include <exception.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_EXCEPTION_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +fi + + +ac_safe=`echo "iomanip" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for iomanip""... $ac_c" 1>&6 +echo "configure:9961: checking for iomanip" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 9966 "configure" +#include "confdefs.h" +#include <iomanip> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:9971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_IOMANIP_NO_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "cstring" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for cstring""... $ac_c" 1>&6 +echo "configure:9998: checking for cstring" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10003 "configure" +#include "confdefs.h" +#include <cstring> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_GNU_CSTRING_H 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "auto_ptr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for auto_ptr""... $ac_c" 1>&6 +echo "configure:10035: checking for auto_ptr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10040 "configure" +#include "confdefs.h" +#include <auto_ptr> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +ac_safe=`echo "map" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for map""... $ac_c" 1>&6 +echo "configure:10068: checking for map" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10073 "configure" +#include "confdefs.h" +#include <map> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conf + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ac_safe=`echo "net/if.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for net/if.h""... $ac_c" 1>&6 +echo "configure:10097: checking for net/if.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10102 "configure" +#include "confdefs.h" +#include <net/if.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + + echo $ac_n "checking if STL map class conflicts with <net/if.h> map struct""... $ac_c" 1>&6 +echo "configure:10126: checking if STL map class conflicts with <net/if.h> map struct" >&5 + if eval "test \"`echo '$''{'ace_cv_header_stl_map_conflict'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10132 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <map> +#include <net/if.h> + +int main() { + + map<char, char> ace_map; + +; return 0; } +EOF +if { (eval echo configure:10147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_header_stl_map_conflict=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_header_stl_map_conflict=yes + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_header_stl_map_conflict" 1>&6 + if test "$ace_cv_header_stl_map_conflict" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_STL_MAP_CONFLICT 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + +else + echo "$ac_t""no" 1>&6 +fi + + +else + echo "$ac_t""no" 1>&6 +fi + + +ac_safe=`echo "queue" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for queue""... $ac_c" 1>&6 +echo "configure:10188: checking for queue" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10193 "configure" +#include "confdefs.h" +#include <queue> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 +echo "configure:10217: checking for netinet/in.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10222 "configure" +#include "confdefs.h" +#include <netinet/in.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cvheader_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + + echo $ac_n "checking if STL queue class conflicts with <netinet/in.h> queue struct""... $ac_c" 1>&6 +echo "configure:10246: checking if STL queue class conflicts with <netinet/in.h> queue struct" >&5 + if eval "test \"`echo '$''{'ace_cv_header_stl_queue_conflict'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10252 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <queue> +#include <netinet/in.h> + +int main() { + + queue<char> ace_queue; + +; return 0; } +EOF +if { (eval echo configure:10267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_header_stl_queue_conflict=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_header_stl_queue_conflict=yes + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_header_stl_queue_conflict" 1>&6 + if test "$ace_cv_header_stl_queue_conflict" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_STL_QUEUE_CONFLICT 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + +else + echo "$ac_t""no" 1>&6 +fi + + +else + echo "$ac_t""no" 1>&6 +fi + + +for ac_hdr in iomanip ios iostream istream ostream fstream streambuf +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:10310: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10315 "configure" +#include "confdefs.h" +#include <$ac_hdr> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <<EOF +#define $ac_tr_hdr 1 +EOF + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_USES_OLD_IOSTREAMS 1 +EOF + +fi +done + + +ac_safe=`echo "iostream.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for iostream.h""... $ac_c" 1>&6 +echo "configure:10353: checking for iostream.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10358 "configure" +#include "confdefs.h" +#include <iostream.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_safe=`echo "fstream.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for fstream.h""... $ac_c" 1>&6 +echo "configure:10381: checking for fstream.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10386 "configure" +#include "confdefs.h" +#include <fstream.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:10391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_IOSTREAM_TOTALLY 1 +EOF + +fi + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_IOSTREAM_TOTALLY 1 +EOF + +fi + + + + echo $ac_n "checking if platform needs sched.h for thread scheduling definitions""... $ac_c" 1>&6 +echo "configure:10427: checking if platform needs sched.h for thread scheduling definitions" >&5 + if eval "test \"`echo '$''{'ace_cv_needs_sched_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10433 "configure" +#include "confdefs.h" +#include <sched.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "sched_yield" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_needs_sched_h=yes + +else + rm -rf conftest* + + ace_cv_needs_sched_h=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_needs_sched_h" 1>&6 + if test "$ace_cv_needs_sched_h" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SCHED_H 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform needs regexpr.h for regular expression support""... $ac_c" 1>&6 +echo "configure:10468: checking if platform needs regexpr.h for regular expression support" >&5 + if eval "test \"`echo '$''{'ace_cv_needs_regexpr_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10474 "configure" +#include "confdefs.h" +#include <regexpr.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "compile" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_needs_regexpr_h=yes + cat >> confdefs.h <<\EOF +#define ACE_NEEDS_REGEXPR_H 1 +EOF + + +else + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 10492 "configure" +#include "confdefs.h" +#include <regexpr.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "step" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_needs_regexpr_h=yes + +else + rm -rf conftest* + + ace_cv_needs_regexpr_h=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_needs_regexpr_h" 1>&6 + if test "$ace_cv_needs_regexpr_h" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_NEEDS_REGEXPR_H 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if sprintf() returns char*""... $ac_c" 1>&6 +echo "configure:10539: checking if sprintf() returns char*" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_charptr_sprintf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10545 "configure" +#include "confdefs.h" + +#include <stdlib.h> +#include <stdio.h> + +int main() { + + char *str = 0; + const char *fmt = "%d"; + int num = 0; + + char *s = 0; + + s = sprintf(str, fmt, num); + +; return 0; } +EOF +if { (eval echo configure:10563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_charptr_sprintf=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_charptr_sprintf=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_charptr_sprintf" 1>&6 + if test "$ace_cv_lib_charptr_sprintf" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_CHARPTR_SPRINTF 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + echo $ac_n "checking for getopt() prototype""... $ac_c" 1>&6 +echo "configure:10600: checking for getopt() prototype" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_getopt_proto'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10606 "configure" +#include "confdefs.h" +#include <unistd.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "getopt" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_getopt_proto=yes + +else + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 10620 "configure" +#include "confdefs.h" +#include <stdlib.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "getopt" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_getopt_proto=yes + +else + rm -rf conftest* + + ace_cv_lib_getopt_proto=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_getopt_proto" 1>&6 + if test "$ace_cv_lib_getopt_proto" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_GETOPT_PROTO 1 +EOF + + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking for old malloc() prototype""... $ac_c" 1>&6 +echo "configure:10668: checking for old malloc() prototype" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_old_malloc_proto'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10674 "configure" +#include "confdefs.h" + +#include <stdlib.h> +#ifndef ACE_LACKS_MALLOC_H +# include <malloc.h> +#endif + +int main() { + + char *s = 0; + s = malloc(sizeof(int)); + +; return 0; } +EOF +if { (eval echo configure:10689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_old_malloc_proto=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_old_malloc_proto=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_old_malloc_proto" 1>&6 + if test "$ace_cv_lib_old_malloc_proto" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_OLD_MALLOC 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + echo $ac_n "checking for *_timedwait() prototypes""... $ac_c" 1>&6 +echo "configure:10726: checking for *_timedwait() prototypes" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_timedwait_proto'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10732 "configure" +#include "confdefs.h" +#include <pthread.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "recv_timedwait" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_timedwait_proto=yes + +else + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 10746 "configure" +#include "confdefs.h" +#include <fcntl.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "recv_timedwait" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_timedwait_proto=yes + +else + rm -rf conftest* + + ace_cv_lib_timedwait_proto=no + +fi +rm -f conftest* + + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_timedwait_proto" 1>&6 + if test "$ace_cv_lib_timedwait_proto" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_TIMEDWAIT_PROTOTYPES 1 +EOF + + fi + + + + echo $ac_n "checking for ualarm() prototype""... $ac_c" 1>&6 +echo "configure:10786: checking for ualarm() prototype" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_ualarm_proto'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10792 "configure" +#include "confdefs.h" +#include <unistd.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ualarm" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_ualarm_proto=yes + +else + rm -rf conftest* + + ace_cv_lib_ualarm_proto=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_ualarm_proto" 1>&6 + + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_UALARM_PROTOTYPE 1 +EOF + + fi + + + + echo $ac_n "checking for getrusage() in sys/resource.h""... $ac_c" 1>&6 +echo "configure:10828: checking for getrusage() in sys/resource.h" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_has_getrusage_proto'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10834 "configure" +#include "confdefs.h" +#include <sys/resource.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "getrusage" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_has_getrusage_proto=yes + +else + rm -rf conftest* + + ace_cv_lib_has_getrusage_proto=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_has_getrusage_proto" 1>&6 + if test "$ace_cv_lib_has_getrusage_proto" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_GETRUSAGE_PROTO 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for getrlimit() and setrlimit() in sys/resource.h""... $ac_c" 1>&6 +echo "configure:10869: checking for getrlimit() and setrlimit() in sys/resource.h" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_has_getsetrlimit_proto'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10875 "configure" +#include "confdefs.h" +#include <sys/resource.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "getrlimit" >/dev/null 2>&1; then + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 10884 "configure" +#include "confdefs.h" +#include <sys/resource.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "getrlimit" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_has_getsetrlimit_proto=yes + +else + rm -rf conftest* + + ace_cv_lib_has_getsetrlimit_proto=no + +fi +rm -f conftest* + + +else + rm -rf conftest* + + ace_cv_lib_has_getsetrlimit_proto=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_has_getsetrlimit_proto" 1>&6 + if test "$ace_cv_lib_has_getsetrlimit_proto" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_RLIMIT_PROTOTYPE 1 +EOF + + fi + + + + echo $ac_n "checking if dlfcn.h is protected by extern \"C\"""... $ac_c" 1>&6 +echo "configure:10929: checking if dlfcn.h is protected by extern \"C\"" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_dlfcn_with_extern_c'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 10935 "configure" +#include "confdefs.h" +#include <dlfcn.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "extern \"C\"" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_dlfcn_with_extern_c=yes + +else + rm -rf conftest* + + ace_cv_lib_dlfcn_with_extern_c=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_dlfcn_with_extern_c" 1>&6 + if test "$ace_cv_lib_dlfcn_with_extern_c" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_DLFCN_H_BROKEN_EXTERN_C 1 +EOF + + fi + + + +echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:10971: checking for uid_t in sys/types.h" >&5 +if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 10976 "configure" +#include "confdefs.h" +#include <sys/types.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "uid_t" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_uid_t=yes +else + rm -rf conftest* + ac_cv_type_uid_t=no +fi +rm -f conftest* + +fi + +echo "$ac_t""$ac_cv_type_uid_t" 1>&6 +if test $ac_cv_type_uid_t = no; then + cat >> confdefs.h <<\EOF +#define uid_t int +EOF + + cat >> confdefs.h <<\EOF +#define gid_t int +EOF + +fi + +echo $ac_n "checking for ANSI C header fies""... $ac_c" 1>&6 +echo "configure:11005: checking for ANSI C header files" >&5 +if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 11010 "configure" +#include "confdefs.h" +#include <stdlib.h> +#include <stdarg.h> +#include <string.h> +#include <float.h> +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ac_cv_header_stdc=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. +cat > conftest.$ac_ext <<EOF +#line 11035 "configure" +#include "confdefs.h" +#include <string.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "memchr" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +cat > conftest.$ac_ext <<EOF +#line 11053 "configure" +#include "confdefs.h" +#include <stdlib.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "free" >/dev/null 2>&1; then + : +else + rm -rf conftest* + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. +if test "$cross_compiling" = yes; then + : +else + cat > conftest.$ac_ext <<EOF +#line 11074 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <ctype.h> +#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int main () { int i; for (i = 0; i < 256; i++) +if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); +exit (0); } + +EOF +if { (eval echo configure:11088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_header_stdc=no +fi +rm -fr conftest* +fi + +fi +fi + +echo "$ac_t""$ac_cv_header_stdc" 1>&6 +if test $ac_cv_header_stdc = yes; then + cat >> confdefs.h <<\EOF +#define STDC_HEADERS 1 +EOF + +fi + +echo $ac_n "checking for mode_t""... $ac_c" 1>&6 +echo "configure:11112: checking for mode_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 11117 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_mode_t=yes +else + rm -rf conftest* + ac_cv_type_mode_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_mode_t" 1>&6 +if test $ac_cv_type_mode_t = no; then + cat >> confdefs.h <<\EOF +#define mode_t int +EOF + +fi + +echo $ac_n "checking for off_t""... $ac_c" 1>&6 +echo "configure:11145: checking for off_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 11150 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_off_t=yes +else + rm -rf conftest* + ac_cv_type_off_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_off_t" 1>&6 +if test $ac_cv_type_off_t = no; then + cat >> confdefs.h <<\EOF +#define off_t long +EOF + +fi + +echo $ac_n "checking for pid_t""... $ac_c" 1>&6 +echo "configure:11178: checking for pid_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 11183 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_pid_t=yes +else + rm -rf conftest* + ac_cv_type_pid_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_pid_t" 1>&6 +if test $ac_cv_type_pid_t = no; then + cat >> confdefs.h <<\EOF +#define pid_t int +EOF + +fi + +echo $ac_n "checking for size_t""... $ac_c" 1>&6 +echo "configure:11211: checking for size_t" >&5 +if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 11216 "configure" +#include "confdefs.h" +#include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_type_size_t=yes +else + rm -rf conftest* + ac_cv_type_size_t=no +fi +rm -f conftest* + +fi +echo "$ac_t""$ac_cv_type_size_t" 1>&6 +if test $ac_cv_type_size_t = no; then + cat >> confdefs.h <<\EOF +#define size_t unsigned +EOF + +fi + + + + + + echo $ac_n "checking for idtype_t in signal.h""... $ac_c" 1>&6 +echo "configure:11248: checking for idtype_t in signal.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_idtype_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11254 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + idtype_t ace_idtype_t; + +; return 0; } +EOF +if { (eval echo configure:11265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_idtype_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_idtype_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_idtype_t" 1>&6 + if test "$ace_cv_type_idtype_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_IDTYPE_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + + echo $ac_n "checking for sem_t in semaphore.h""... $ac_c" 1>&6 +echo "configure:11298: checking for sem_t in semaphore.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_sem_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11304 "configure" +#include "confdefs.h" + +#include <semaphore.h> + +int main() { + + sem_t ace_sem_t; + +; return 0; } +EOF +if { (eval echo configure:11315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_sem_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_sem_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_sem_t" 1>&6 + if test "$ace_cv_type_sem_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme + fi + + + + + + echo $ac_n "checking for key_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:11345: checking for key_t in sys/types.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_key_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11351 "configure" +#include "confdefs.h" + +#include <sys/types.h> + +int main() { + + key_t ace_key_t; + +; return 0; } +EOF +if { (eval echo configure:11362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_key_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_key_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_key_t" 1>&6 + if test "$ace_cv_type_key_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_KEY_T 1 +EOF + + fi + + + + + + echo $ac_n "checking for ssize_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:11396: checking for ssize_t in sys/types.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_ssize_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11402 "configure" +#include "confdefs.h" + +#include <sys/types.h> + +int main() { + + ssize_t ace_ssize_t; + +; return 0; } +EOF +if { (eval echo configure:11413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_ssize_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_ssize_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_ssize_t" 1>&6 + if test "$ace_cv_type_ssize_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SSIZE_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + + echo $ac_n "checking for u_longlong_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:11446: checking for u_longlong_t in sys/types.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_u_longlong_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11452 "configure" +#include "confdefs.h" + +#include <sys/types.h> + +int main() { + + u_longlong_t ace_u_longlong_t; + +; return 0; } +EOF +if { (eval echo configure:11463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_u_longlong_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_u_longlong_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_u_longlong_t" 1>&6 + if test "$ace_cv_type_u_longlong_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_U_LONGLONG_T 1 +EOF + + fi + + + + + + echo $ac_n "checking for pri_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:11497: checking for pri_t in sys/types.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_pri_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11503 "configure" +#include "confdefs.h" + +#include <sys/types.h> + +int main() { + + pri_t ace_pri_t; + +; return 0; } +EOF +if { (eval echo configure:11514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_pri_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_pri_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_pri_t" 1>&6 + if test "$ace_cv_type_pri_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_PRI_T 1 +EOF + + fi + + + + + + echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6 +echo "configure:11548: checking for socklen_t in sys/socket.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_socklen_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11554 "configure" +#include "confdefs.h" + +#include <sys/socket.h> + +int main() { + + socklen_t ace_socklen_t; + +; return 0; } +EOF +if { (eval echo configure:11565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_socklen_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_socklen_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_socklen_t" 1>&6 + if test "$ace_cv_type_socklen_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SOCKLEN_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + + echo $ac_n "checking for ucontext_t +echo "configure:11598: checking for ucontext_t in ucontext.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_ucontext_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11604 "configure" +#include "confdefs.h" + +#include <ucontext.h> + +int main() { + + ucontext_t ace_ucontext_t; + +; return 0; } +EOF +if { (eval echo configure:11615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_ucontext_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_ucontext_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_ucontext_t" 1>&6 + if test "$ace_cv_type_ucontext_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_UCONTEXT_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + + echo $ac_n "checking for wchar_t in wchar.h""... $ac_c" 1>&6 +echo "configure:11648: checking for wchar_t in wchar.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_wchar_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11654 "configure" +#include "confdefs.h" + +#include <wchar.h> + +int main() { + + wchar_t ace_wchar_t; + +; return 0; } +EOF +if { (eval echo configure:11665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_wchar_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_wchar_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_wchar_t" 1>&6 + if test "$ace_cv_type_wchar_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_XPG4_MULTIBYTE_CHAR 1 +EOF + + else + ace_just_a_place_holder=fixme + + + + echo $ac_n "checking for wchar_t in sys/types.h""... $ac_c" 1>&6 +echo "configure:11695: checking for wchar_t in sys/types.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_wchar_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11701 "configure" +#include "confdefs.h" + +#include <sys/types.h> + +int main() { + + wchar_t ace_wchar_t; + +; return 0; } +EOF +if { (eval echo configure:11712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_wchar_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_wchar_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_wchar_t" 1>&6 + if test "$ace_cv_type_wchar_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_WCHAR_T 1 +EOF + + fi + + + + fi + + + + + echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6 +echo "configure:11749: checking for sig_atomic_t" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_defines_sig_atomic_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 11755 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <signal.h> + +int main() { + + sig_atomic_t sat; + +; return 0; } +EOF +if { (eval echo configure:11769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_defines_sig_atomic_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_defines_sig_atomic_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_defines_sig_atomic_t" 1>&6 + if test "$ace_cv_lib_posix_defines_sig_atomic_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SIG_ATOMIC_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + + + + echo $ac_n "checking for struct flock in fcntl.h""... $ac_c"1>&6 +echo "configure:11804: checking for struct flock in fcntl.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_flock'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 11812 "configure" +#include "confdefs.h" + +#include <fcntl.h> + +int main() { + + struct flock ace_flock; + +; return 0; } +EOF +if { (eval echo configure:11823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_flock=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 11836 "configure" +#include "confdefs.h" + +#include <fcntl.h> + +int main() { + + flock ace_flock; + +; return 0; } +EOF +if { (eval echo configure:11847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_flock=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_flock=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_flock" 1>&6 + if test "$ace_cv_struct_flock" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_FILELOCKS 1 +EOF + + fi + + + + + + + echo $ac_n "checking for struct rwlock_t in synch.h""... $ac_c" 1>&6 +echo "configure:11890: checking for struct rwlock_t in synch.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_rwlock_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 11898 "configure" +#include "confdefs.h" + +#include <synch.h> + +int main() { + + struct rwlock_t ace_rwlock_t; + +; return 0; } +EOF +if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_rwlock_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 11922 "configure" +#include "confdefs.h" + +#include <synch.h> + +int main() { + + rwlock_t ace_rwlock_t; + +; return 0; } +EOF +if { (eval echo configure:11933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_rwlock_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_rwlock_t=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_rwlock_t" 1>&6 + if test "$ace_cv_struct_rwlock_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_RWLOCK_T 1 +EOF + + fi + + + + + + + echo $ac_n "checking for struct strbuf in stropts.h""... $ac_c" 1>&6 +echo "configure:11976: checking for struct strbuf in stropts.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_strbuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 11984 "configure" +#include "confdefs.h" + +#include <stropts.h> + +int main() { + + struct strbuf ace_strbuf; + +; return 0; } +EOF +if { (eval echo configure:11995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_strbuf=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12008 "configure" +#include "confdefs.h" + +#include <stropts.h> + +int main() { + + strbuf ace_strbuf; + +; return 0; } +EOF +if { (eval echo configure:12019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_strbuf=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_strbuf=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_strbuf" 1>&6 + if test "$ace_cv_struct_strbuf" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_STRBUF_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + + + echo $ac_n "checking for struct msgbuf in sys/msg.h""... $ac_c" 1>&6 +echo "configure:12061: checking for struct msgbuf in sys/msg.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_msgbuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12069 "configure" +#include "confdefs.h" + +#include <sys/msg.h> + +int main() { + + struct msgbuf ace_msgbuf; + +; return 0; } +EOF +if { (eval echo configure:12080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_msgbuf=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12093 "configure" +#include "confdefs.h" + +#include <sys/msg.h> + +int main() { + + msgbuf ace_msgbuf; + +; return 0; } +EOF +if { (eval echo configure:12104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_msgbuf=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_msgbuf=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_msgbuf" 1>&6 + if test "$ace_cv_struct_msgbuf" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MSGBUF_T 1 +EOF + + fi + + +case "$target" in +*irix*) + ;; +*) + + + + + echo $ac_n "checking for struct prusage_t in sys/procfs.h""... $ac_c" 1>&6 +echo "configure:12151: checking for struct prusage_t in sys/procfs.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_prusage_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12159 "configure" +#include "confdefs.h" + +#include <sys/procfs.h> + +int main() { + + struct prusage_t ace_prusage_t; + +; return 0; } +EOF +if { (eval echo configure:12170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_prusage_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12183 "configure" +#include "confdefs.h" + +#include <sys/procfs.h> + +int main() { + + prusage_t ace_prusage_t; + +; return 0; } +EOF +if { (eval echo configure:12194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_prusage_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_prusage_t=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_prusage_t" 1>&6 + if test "$ace_cv_struct_prusage_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_PRUSAGE_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + ;; +esac + + + + + echo $ac_n "checking for struct strrecvfd in stropts.h""... $ac_c" 1>&6 +echo "configure:12238: checking for struct strrecvfd in stropts.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_strrecvfd'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12246 "configure" +#include "confdefs.h" + +#include <stropts.h> + +int main() { + + struct strrecvfd ace_strrecvfd; + +; return 0; } +EOF +if { (eval echo configure:12257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_strrecvfd=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12270 "configure" +#include "confdefs.h" + +#include <stropts.h> + +int main() { + + strrecvfd ace_strrecvfd; + +; return 0; } +EOF +if { (eval echo configure:12281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_strrecvfd=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_strrecvfd=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_strrecvfd" 1>&6 + if test "$ace_cv_struct_strrecvfd" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_STRRECVFD 1 +EOF + + fi + + + + + + + echo $ac_n "checking for struct sembuf in sys/sem.h""... $ac_c" 1>&6 +echo "configure:12324: checking for struct sembuf in sys/sem.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_sembuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12332 "configure" +#include "confdefs.h" + +#include <sys/sem.h> + +int main() { + + struct sembuf ace_sembuf; + +; return 0; } +EOF +if { (eval echo configure:12343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_sembuf=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12356 "configure" +#include "confdefs.h" + +#include <sys/sem.h> + +int main() { + + sembuf ace_sembuf; + +; return 0; } +EOF +if { (eval echo configure:12367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_sembuf=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_sembuf=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_sembuf" 1>&6 + if test "$ace_cv_struct_sembuf" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SEMBUF_T 1 +EOF + + fi + + + + + + + echo $ac_n "checking for struct sigaction in signal.h""... $ac_c" 1>&6 +echo "configure:12410: checking for struct sigaction in signal.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_sigaction'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12418 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + struct sigaction ace_sigaction; + +; return 0; } +EOF +if { (eval echo configure:12429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_sigaction=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12442 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + sigaction ace_sigaction; + +; return 0; } +EOF +if { (eval echo configure:12453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_sigaction=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_sigaction=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_sigaction" 1>&6 + if test "$ace_cv_struct_sigaction" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat +#define ACE_LACKS_SIGACTION 1 +EOF + + fi + + + + + + + echo $ac_n "checking for struct sigset_t in signal.h""... $ac_c" 1>&6 +echo "configure:12496: checking for struct sigset_t in signal.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_sigset_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12504 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + struct sigset_t ace_sigset_t; + +; return 0; } +EOF +if { (eval echo configure:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_sigset_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12528 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + sigset_t ace_sigset_t; + +; return 0; } +EOF +if { (eval echo configure:12539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_sigset_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_sigset_t=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_sigset_t" 1>&6 + if test "$ace_cv_struct_sigset_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SIGSET 1 +EOF + + fi + + + + + + + echo $ac_n "checking for struct utsname in sys/utsname.h""... $ac_c" 1>&6 +echo "configure:12582: checking for struct utsname in sys/utsname.h" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_utsname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12590 "configure" +#include "confdefs.h" + +#include <sys/utsname.h> + +int main() { + + struct utsname ace_utsname; + +; return 0; } +EOF +if { (eval echo configure:12601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_utsname=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12614 "configure" +#include "confdefs.h" + +#include <sys/utsname.h> + +int main() { + + utsname ace_utsname; + +; return 0; } +EOF +if { (eval echo configure:12625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_utsname=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_utsname=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_utsname" 1>&6 + if test "$ace_cv_struct_utsname" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_UTSNAME_T 1 +EOF + + fi + + + + + echo $ac_n "checking for struct siginfo_t""... $ac_c" 1>&6 +echo "configure:12666: checking for struct siginfo_t" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_siginfo_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + + cat > conftest.$ac_ext <<EOF +#line 12674 "configure" +#include "confdefs.h" + +#include <siginfo.h> + +int main() { + + struct siginfo_t ace_siginfo_t; + +; return 0; } +EOF +if { (eval echo configure:12685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_siginfo_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12698 "configure" +#include "confdefs.h" + +#include <siginfo.h> + +int main() { + + siginfo_t ace_siginfo_t; + +; return 0; } +EOF +if { (eval eho configure:12709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_siginfo_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + + + cat > conftest.$ac_ext <<EOF +#line 12725 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + struct siginfo_t ace_siginfo_t; + +; return 0; } +EOF +if { (eval echo configure:12736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_siginfo_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12749 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + siginfo_t ace_siginfo_t; + +; return 0; } +EOF +if { (eval echo configure:12760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + + ace_cv_struct_siginfo_t=yes + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + + ace_cv_struct_siginfo_t=no + + +fi +rm -f conftest* + +fi +rm -f conftest* + + + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_struct_siginfo_t" 1>&6 + if test "$ace_cv_struct_siginfo_t" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_SIGINFO_T 1 +EOF + + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for struct msghdr""... $ac_c" 1>&6 +echo "configure:12809: checking for struct msghdr" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_msghdr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 12815 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + struct msghdr ace_msghdr; + +; return 0; } +EOF +if { (eval echo configure:12829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_struct_msghdr=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_struct_msghdr=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_struct_msghdr" 1>&6 + if test "$ace_cv_struct_msghdr" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_MSG 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for condition variable support""... $ac_c" 1>&6 +echo "configure:12860: checking for condition variable support" >&5 + if eval "test \"`echo '$''{'ace_cv_struct_cond_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 12866 "configure" +#include "confdefs.h" + +#include <pthread.h> + +int main() { + + pthread_cond_t ace_pthread_cond_t; + +; return 0; } +EOF +if { (eval echo configure:12877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_struct_cond_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12888 "configure" +#include "confdefs.h" + +#include <synch.h> + +int main() { + + cond_t ace_cond_t; + +; return 0; } +EOF +if { (eval echo configure:12899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_struct_cond_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_struct_cond_t=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_struct_cond_t" 1>&6 + if test "$ace_cv_struct_cond_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_COND_T 1 +EOF + + fi + + + + echo $ac_n "checking for POSIX timer structure""... $ac_c" 1>&6 +echo "configure:12934: checking for POSIX timer structure" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_timer_struct'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 12940 "configure" +#include "confdefs.h" + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +int main() { + + timespec sr; + +; return 0; } +EOF +if { (eval echo configure:12955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_timer_struct=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 12966 "configure" +#include "confdefs.h" + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +int main() { + + timestruc_t sr; + +; return 0; } +EOF +if { (eval echo configure:12981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_timer_struct=yes + + echo $ac_n "checking for struct timespec in sys/timers.h""... $ac_c" 1>&6 +echo "configure:12987: checking for struct timespec in sys/timers.h" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_struct_timespec_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 12993 "configure" +#include "confdefs.h" + +#include <sys/timers.h> + +int main() { + + timespec sr; + +; return 0; } +EOF +if { (eval echo configure:13004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_struct_timespec_broken=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_struct_timespec_broken=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_struct_timespec_broken" 1>&6 + if test "$ace_cv_lib_posix_struct_timespec_broken" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_POSIX_TIME 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_timer_struct=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_timer_struct" 1>&6 + if test "$ace_cv_lib_posix_timer_struct" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_POSIX_TIME 1 +EOF + + if test "$ace_cv_lib_posix_struct_timespec_broken" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_POSIX_TIME 1 +EOF + + fi + + else + ace_just_a_place_holder=fixme + + + echo $ac_n "checking for struct timespec in sys/timers.h""... $ac_c" 1>&6 +echo "configure:13068: checking for struct timespec in sys/timers.h" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_struct_timespec_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13074 "configure" +#include "confdefs.h" + +#include <sys/timers.h> + +int main() { + + timespec sr; + +; return 0; } +EOF +if { (eval echo configure:13085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_struct_timespec_broken=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_struct_timespec_broken=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_struct_timespec_broken" 1>&6 + if test "$ace_cv_lib_posix_struct_timespec_broken" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_POSIX_TIME 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + fi + + + + echo $ac_n "checking for timespec_t""... $ac_c" 1>&6 +echo "configure:13119: checking for timespec_t" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_timespec_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13125 "configure" +#include "confdefs.h" + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +int main() { + + timespec_t tt; + +; return 0; } +EOF +if { (eval echo configure:13140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_timespec_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_timespec_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_timespec_t" 1>&6 + if test "$ace_cv_lib_posix_timespec_t" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_TIMESPEC_T 1 +EOF + + fi + + + + echo $ac_n "checking for union semun""... $ac_c" 1>&6 +echo "configure:13172: checking for union semun" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_defines_union_semun'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13178 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/sem.h> + +int main() { + + semun us; + +; return 0; } +EOF +if { (eval echo configure:13192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_defines_union_semun=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_defines_union_semun=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_defines_union_semun" 1>&6 + if test "$ace_cv_lib_posix_defines_union_semun" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SEMUN 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + echo $ac_n "checking for broken struct timespec members""... $ac_c" 1>&6 +echo "configure:13224: checking for broken struct timespec members" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_broken_timespec'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13230 "configure" +#include "confdefs.h" + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +int main() { + + timespec sr; + sr.ts_sec = 0; + sr.ts_nsec = 0; + +; return 0; } +EOF +if { (eval echo configure:13247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_broken_timespec=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_broken_timespec=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_broken_timespec" 1>&6 + if test "$ace_cv_lib_broken_timespec" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_TIMESPEC_MEMBERS 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for limited struct rusage""... $ac_c" 1>&6 +echo "configure:13278: checking for limited struct rusage" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_limited_rusage'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13284 "configure" +#include "confdefs.h" + +#include <sys/resource.h> + +int main() { + + rusage ace_rusage; + /* + We just pick three (i.e. > 2) of the fields that + ACE uses to see if we have a struct rusage that + has more than two fields. + */ + ace_rusage.ru_ixrss = 0; + ace_rusage.ru_idrss = 0; + ace_rusage.ru_isrss = 0; + +; return 0; } +EO +if { (eval echo configure:13303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_limited_rusage=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_limited_rusage=yes + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_limited_rusage" 1>&6 + if test "$ace_cv_lib_limited_rusage" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_LIMITED_RUSAGE_T 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + +if test "$ace_cv_struct_siginfo_t" = yes; then + + echo $ac_n "checking for si_addr member in struct siginfo_t""... $ac_c" 1>&6 +echo "configure:13335: checking for si_addr member in struct siginfo_t" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_si_addr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13341 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SIGINFO_H +# include <siginfo.h> +#endif +#include <signal.h> + +int main() { + + siginfo_t acesig; + acesig.si_addr = 0; + +; return 0; } +EOF +if { (eval echo configure:13356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_si_addr=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_si_addr=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_si_addr" 1>&6 + if test "$ace_cv_lib_posix_si_addr" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SI_ADDR 1 +EOF + + fi + +fi + + echo $ac_n "checking for sin_len member in struct sockaddr_in""... $ac_c" 1>&6 +echo "configure:13388: checking for sin_len member in struct sockaddr_in" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_has_sin_len'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13394 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +qQqq#include <netinet/in.h> + +int main() { + + sockaddr_in ace_sin; + ace_sin.sin_len = sizeof(ace_sin); + +; return 0; } +EOF +if { (eval echo configure:13409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_has_sin_len=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_has_sin_len=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_has_sin_len" 1>&6 + if test "$ace_cv_lib_has_sin_len" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SIN_LEN 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for sys_siglist""... $ac_c" 1>&6 +echo "configure:13440: checking for sys_siglist" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_sys_siglist'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13446 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#include <signal.h> +#if !defined (_sys_siglist) +# define _sys_siglist sys_siglist +#endif + +int main() { + + void* vp = (void*) &_sys_siglist; + +; return 0; } +EOF +if { (eval echo configure:13463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_sys_siglist=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_sys_siglist=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_sys_siglist" 1>&6 + if test "$ace_cv_lib_posix_sys_siglist" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SYS_SIGLIST 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for sys_errlist""... $ac_c 1>&6 +echo "configure:13494: checking for sys_errlist" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_sys_errlist'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13500 "configure" +#include "confdefs.h" + +#include <stdio.h> +#include <errno.h> +#if !defined (_sys_errlist) +# define _sys_errlist sys_errlist +#endif + +int main() { + + void* vp = (void*) &_sys_errlist; + +; return 0; } +EOF +if { (eval echo configure:13515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_sys_errlist=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_sys_errlist=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_sys_errlist" 1>&6 + if test "$ace_cv_lib_posix_sys_errlist" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SYS_ERRLIST 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for sys_nerr in headers""... $ac_c" 1>&6 +echo "configure:13546: checking for sys_nerr in headers" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_sys_nerr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13552 "configure" +#include "confdefs.h" + +#include <stdio.h> +#include <errno.h> +#if !defined (_sys_nerr) +# define _sys_nerr sys_nerr +#endif + +int main() { + + void* vp = (void*) &_sys_nerr; + +; return 0; } +EOF +if { (eval echo configure:13567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_sys_nerr=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_sys_nerr=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_sys_nerr" 1>&6 + if test "$ace_cv_lib_posix_sys_nerr" = yes; then + ace_just_a_place_holder=fixme + + + else + ace_just_a_place_holder=fixme + + echo $ac_n "checking for sys_nerr""... $ac_c" 1>&6 +echo "configure:13593: checking for sys_nerr" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sys_nerr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 13598 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sys_nerr(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sys_nerr(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sys_nerr) || defined (__stub___sys_nerr) +choke me +#else +sys_nerr(); +#endif + +; return 0; } +EOF +if { (eval echo configure:13624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sys_nerr=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sys_nerr=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sys_nerr`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SYS_NERR 1 +EOF + +fi + + + fi + + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if compiler accepts \"pragma once\" directive""... $ac_c" 1>&6 +echo "configure:13662: checking if compiler accepts \"pragma once\" directive" >&5 + if eval "test \"`echo '$''{'ace_cv_has_pragma_once'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13668 "configure" +#include "confdefs.h" + +#pragma once + +int main() { + + int a = 0; /* Put this here so we don't have an empty main(). */ + +; return 0; } +EOF +if { (eval echo configure:13679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_has_pragma_once=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_has_pragma_once=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_has_pragma_once" 1>&6 + if test "$ace_cv_has_pragma_once" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_PRAGMA_ONCE 1 +EOF + + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + +if test -n "$GXX"; then + PREPIPECXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -pipe" + PREPIPECFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -pipe" + + echo $ac_n "checking if \"-pipe\" compiler flag is supported""... $ac_c" 1>&6 +echo "configure:13722: checking if \"-pipe\" compiler flag is supported" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_gxx_has_pipe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 13728 "configure" +#include "confdefs.h" + +int main() { +int a = 0; +; return 0; } +EOF +if { (eval echo configure:13735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_gxx_has_pipe=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_gxx_has_pipe=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_gxx_has_pipe" 1>&6 + if test "$ace_cv_feature_gxx_has_pipe" = yes; then + ace_just_a_place_holder=fixme + + + else + ace_just_a_place_holder=fixme + + CXXFLAGS="$PREPIPECXXFLAGS" + CFLAGS="$PREPIPECFLAGS" + + fi + +fi + + +echo $ac_n "checking for inline""... $ac_c" 1>&6 +echo "configure:13769: checking for inline" >&5 +if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_c_inline=no +for ac_kw in inline __inline__ __inline; do + cat > conftest.$ac_ext <<EOF +#line 13776 "configure" +#include "confdefs.h" + +int main() { +} $ac_kw foo() { +; return 0; } +EOF +if { (eval echo configure:13783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_inline=$ac_kw; break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +done + +fi + +echo "$ac_t""$ac_cv_c_inline" 1>&6 +case "$ac_cv_c_inline" in + inline | yes) ;; + no) cat >> confdefs.h <<\EOF +#define inline +EOF + ;; + *) cat >> confdefs.h <<EOF +#define inline $ac_cv_c_inline +EOF + ;; +esac + +if test "$ac_cv_c_inline" = no; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_INLINE_FUNCTIONS 1 +EOF + +fi + +if test "$cross_compiling" != yes; then + echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 +echo "configure:13817: checking whether byte ordering is bigendian" >&5 +if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_cv_c_bigendian=unknown +# See if sys/param.h defines the BYTE_ORDER macro. +cat > conftest.$ac_ext <<EOF +#line 13824 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/param.h> +int main() { + +#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN + bogus endian macros +#endif +; return 0; } +EOF +if { (eval echo configure:13835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + # It does; now see whether it defined to BIG_ENDIAN or not. +cat > conftest.$ac_ext <<EOF +#line 13839 "configure" +#include "confdefs.h" +#include <sys/types.h> +#include <sys/param.h> +int main() { + +#if BYTE_ORDER != BIG_ENDIAN + not big endian +#endif +; return 0; } +EOF +if { (eval echo configure:13850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ac_cv_c_bigendian=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_c_bigendian=no +fi +rm -f conftest* +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +if test $ac_cv_c_bigendian = unknown; then +if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 13870 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +main () { + /* Are we little or big endian? From Harbison&Steele. */ + union + { + long l; + char c[sizeof (long)]; + } u; + u.l = 1; + exit (u.c[sizeof (long) - 1] == 1); +} +EOF +if { (eval echo configure:13886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_c_bigendian=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_c_bigendian=yes +fi +rm -fr conftest* +fi + +fi +fi + +echo "$ac_t""$ac_cv_c_bigendian" 1>&6 +if test $ac_cv_c_bigendian = yes; then + cat >> confdefs.h <<\EOF +#define WORDS_BIGENDIAN 1 +EOF + +fi + +fi + + +if test "$cross_compiling" != yes; then + echo $ac_n "checking size of short""... $ac_c" 1>&6 +echo "configure:13914: checking size of short" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_short=2 +else + cat > conftest.$ac_ext <<EOF +#line 13922 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(short)); + exit(0); +} +EOF +if { (eval echo configure:13936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_short=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_short=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_short" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_SHORT $ac_cv_sizeof_short +EOF + + + if test $ac_cv_sizeof_short != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_SHORT $ac_cv_sizeof_short +EOF + + fi + echo $ac_n "checking size of int""... $ac_c" 1>&6 +echo "configure:13962: checking size of int" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_int=4 +else + cat > conftest.$ac_ext <<EOF +#line 13970 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(int)); + exit(0); +} +EOF +if { (eval echo configure:13984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_int=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_int=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_int" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_INT $ac_cv_sizeof_int +EOF + + + if test $ac_cv_sizeof_int != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_INT $ac_cv_sizeof_int +EOF + + fi + echo $ac_n "checking size of long""... $ac_c" 1>&6 +echo "configure:14010: checking size of long" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_long=4 +else + cat > conftest.$ac_ext <<EOF +#line 14018 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long)); + exit(0); +} +EOF +if { (eval echo configure:14032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_long=`cat conftestval` +else + echo "configure: failed program was:" + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_long=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_long" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_LONG $ac_cv_sizeof_long +EOF + + + if test $ac_cv_sizeof_long != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_LONG $ac_cv_sizeof_long +EOF + + fi + echo $ac_n "checking size of long long""... $ac_c" 1>&6 +echo "configure:14058: checking size of long long" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_long_long=8 +else + cat > conftest.$ac_ext <<EOF +#line 14066 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long long)); + exit(0); +} +EOF +if { (eval echo configure:14080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_long_long=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_long_long=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +EOF + + + if test $ac_cv_sizeof_long_long != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_LONG_LONG $ac_cv_sizeof_long_long +EOF + + else + cat >> confdefs.h <<\EOF +#define ACE_LACKS_LONGLONG_T 1 +EOF + + fi + echo $ac_n "checking size of void *""... $ac_c" 1>&6 +echo "configure:14111: checking size of void *" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_void_p=4 +else + cat > conftest.$ac_ext <<EOF +#line 14119 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(void *)); + exit(0); +} +EOF +if { (eval echo configure:14133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_void_p=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_void_p=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_VOID_P $ac_cv_sizeof_void_p +EOF + + + if test $ac_cv_sizeof_void_p != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_VOID_P $ac_cv_sizeof_void_p +EOF + + fi + echo $ac_n "checking size of float""... $ac_c" 1>&6 +echo "configure:14159: checking size of float" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_float=4 +else + cat > conftest.$ac_ext <<EOF +#line 14167 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(float)); + exit(0); +} +EOF +if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_float=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_float=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_float" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_FLOAT $ac_cv_sizeof_float +EOF + + + if test $ac_cv_sizeof_float != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_FLOAT $ac_cv_sizeof_float +EOF + + else + cat >> confdefs.h <<\EOF +#define ACE_LACKS_FLOATING_POINT 1 +EOF + + fi + echo $ac_n "checking size of double""... $ac_c" 1>&6 +echo "configure:14212: checking size of double" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then + echo $ac_n "(cached)$ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_double=8 +else + cat > conftest.$ac_ext <<EOF +#line 14220 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(double)); + exit(0); +} +EOF +if { (eval echo configure:14234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_double=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_double=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_double" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_DOUBLE $ac_cv_sizeof_double +EOF + + + if test $ac_cv_sizeof_double != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_DOUBLE $ac_cv_sizeof_double +EOF + + else + cat >> confdefs.h <<\EOF +#define ACE_LACKS_FLOATING_POINT 1 +EOF + + fi + echo $ac_n "checking size of long double""... $ac_c" 1>&6 +echo "configure:14265: checking size of long double" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_long_double=16 +else + cat > conftest.$ac_ext <<EOF +#line 14273 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(long double)); + exit(0); +} +EOF +if { (eval echo configure:14287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_long_double=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_long_double=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double +EOF + + + if test $ac_cv_sizeof_long_double != 0; then + cat >> confdefs.h <<EOF +#define ACE_SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double +EOF + + fi + + ACE_UINT64="" + if test $ac_cv_sizeof_long = 8; then + ACE_UINT64="unsigned long" + ace_u_long_long_typedef_set=yes + elif test $ac_cv_sizeof_long_long = 8; then + ACE_UINT64="unsigned long long" + ace_u_long_long_typedef_set=yes + else + ace_u_long_long_typedef_set=no + fi + + echo $ac_n "checking size of signed char""... $ac_c" 1>&6 +echo "configure:14325: checking size of signed char" >&5 +if eval "test \"`echo '$''{'ac_cv_sizeof_signed_char'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_sizeof_signed_char=1 +else + cat > conftest.$ac_ext <<EOF +#line 14333 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <stdio.h> +main() +{ + FILE *f=fopen("conftestval", "w"); + if (!f) exit(1); + fprintf(f, "%d\n", sizeof(signed char)); + exit(0); +} +EOF +if { (eval echo configure:14347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sizeof_signed_char=`cat conftestval` +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sizeof_signed_char=0 +fi +rm -fr conftest* +fi + +fi +echo "$ac_t""$ac_cv_sizeof_signed_char" 1>&6 +cat >> confdefs.h <<EOF +#define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char +EOF + + + if test $ac_cv_sizeof_signed_char = 0; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_SIGNED_CHAR 1 +EOF + + fi +fi + + + echo $ac_n "checking for working C++ explicit template destructors""... $ac_c" 1>&6 +echo "configure:14376: checking for working C++ explicit template destructors" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_working_explicit_des'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14382 "configure" +#include "confdefs.h" + +#include <iostream.h> + +class dyn +{ + public: + dyn () { cout << "dyn" << endl; } + ~dyn () { cout << "~dyn" << endl; } +}; + +template <class T> +class Base +{ + public: + Base () { cout << "Base" << endl; } + virtual void f (void) { cout << "Base::f" << endl; } + ~Base () { cout << "~Base" << endl; } +}; + +template <class T> +class Derived +{ + public: + Derived () + { + x_ = new Base<T> (); cout << "Derived" << endl ; + } + virtual void f (void) { cout << "Derived::f" << endl; } + ~Derived () { x_->~Base (); cout << "~Derived" << endl; } + private: + Base<T> *x_; + T t_; +}; + +int main() { + + Derived<dyn> *x = new Derived<dyn> (); + + x->f (); + + delete x; + return 0; + +; return 0; } +EOF +if { (eval echo configure:14429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_working_explicit_des=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_working_explicit_des=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_working_explicit_des" 1>&6 + if test "$ace_cv_feature_working_explicit_des" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for C++ \"using\" keyword support""... $ac_c" 1>&6 +echo "configure:14460: checking for C++ \"using\" keyword support" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_cxx_using_keyword'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14466 "configure" +#include "confdefs.h" + +#include <iostream.h> + +int main() { + + using namespace std; + +; return 0; } +EOF +if { (eval echo configure:14477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_cxx_using_keyword=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_cxx_using_keyword=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_cxx_using_keyword" 1>&6 + if test "$ace_cv_feature_cxx_using_keyword" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_USING_KEYWORD 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for C++ standard namespace""... $ac_c" 1>&6 +echo "configure:14508: checking for C++ standard namespace" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_posix_uses_std_namespace'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14514 "configure" +#include "confdefs.h" + +#include <vector.h> + +int main() { + + std::vector< int > iv; + +; return 0; } +EOF +if { (eval echo configure:14525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_posix_uses_std_namespace=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_posix_uses_std_namespace=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_posix_uses_std_namespace" 1>&6 + if test "$ace_cv_feature_posix_uses_std_namespace" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for new style C++ include file support""... $ac_c" 1>&6 +echo "configure:14556: checking for new style C++ include file support" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_standard_includes'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_lib_posix_standard_includes=no + if test "$ace_cv_feature_posix_uses_std_namespace" = yes; then + cat > conftest.$ac_ext <<EOF +#line 14564 "configure" +#include "confdefs.h" + +#include <string> + +int main() { + + std::string str; + +; return 0; } +EOF +if { (eval echo configure:14575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_posix_standard_includes=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + else + cat > conftest.$ac_ext <<EOF +#line 14585 "configure" +#include "confdefs.h" + +#include <string> + +int main() { + + string str; + +; return 0; } +EOF +if { (eval echo configure:14596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_posix_standard_includes=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + fi + +fi + + echo "$ac_t""$ace_cv_lib_posix_standard_includes" 1>&6 + if test "$ace_cv_lib_posix_standard_includes" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_STDCPP_STL_INCLUDES 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_STRING_CLASS 1 +EOF + + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for ANSI C++ cast support""... $ac_c" 1>&6 +echo "configure:14628: checking for ANSI C++ cast support" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_standard_casts'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14634 "configure" +#include "confdefs.h" +/* No headers */ +int main() { + + class B { public: int b_; virtual int b() const = 0; }; + class D : public B { virtual int b() const { return b_; } }; + + void* vp = 0; + char* cp = 0; + float f = 1.0; + int i = 0; + int* ip = 0; + const int* jp = 0; + + i = static_cast<int> (f); + ip = const_cast<int*> (jp); + cp = reinterpret_cast<char*> (vp); + + B* bp = new D; + D* dp = dynamic_cast<D*> (bp); + delete bp; + +; return 0; } +EOF +if { (eval echo configure:14659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_standard_casts=yes + if eval "test \"`echo '$''{'ace_cv_lib_rtti'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ace_cv_lib_rtti=yes +fi + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 14676 "configure" +#include "confdefs.h" +/* No headers */ +int main() { + + class B { public: int b_; virtual int b() const = 0; }; + class D : public B { virtual int b() const { return b_; } }; + + void* vp = 0; + char* cp = 0; + float f = 1.0; + int i = 0; + int* ip = 0; + const int* jp = 0; + + i = static_cast<int> (f); + ip = const_cast<int*> (jp); + cp = reinterpret_cast<char*> (vp); + +; return 0; } +EOF +if { (eval echo configure:14697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_standard_casts=yes + if eval "test \"`echo '$''{'ace_cv_lib_rtti'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ace_cv_lib_rtti=no +fi + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_standard_casts=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_standard_casts" 1>&6 + if test "$ace_cv_lib_posix_standard_casts" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_ANSI_CASTS 1 +EOF + + if test "$ace_cv_lib_rtti" = no; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_RTTI 1 +EOF + + fi + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform supports explicit template instantiation""... $ac_c" 1>&6 +echo "configure:14745: checking if platform supports explicit template instantiatio + if eval "test \"`echo '$''{'ace_cv_feature_explicit_template_instantiation'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14751 "configure" +#include "confdefs.h" + + template <class T> + class Foo + { + public: + Foo(T bar) : bar_(bar) {}; + private: + T bar_; + }; + template class Foo<int>; + +int main() { + + Foo<int> foo(11); + +; return 0; } +EOF +if { (eval echo configure:14770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_explicit_template_instantiation=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_explicit_template_instantiation=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_explicit_template_instantiation" 1>&6 + if test "$ace_cv_feature_explicit_template_instantiation" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION 1 +EOF + + + else + ace_just_a_place_holder=fixme + + + echo $ac_n "checking if platform supports pragma template instantiation""... $ac_c" 1>&6 +echo "configure:14801: checking if platform supports pragma template instantiation" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_pragma_template_instantiation'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14807 "configure" +#include "confdefs.h" + + template <class T> + class Foo + { + public: + Foo(T bar) : bar_(bar) {}; + private: + T bar_; + }; +#pragma instantiate Foo<int>; + +int main() { + + Foo<int> foo(11); + +; return 0; } +EOF +if { (eval echo configure:14826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_pragma_template_instantiation=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_pragma_template_instantiation=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_pragma_template_instantiation" 1>&6 + if test "$ace_cv_feature_pragma_template_instantiation" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + fi + + + + echo $ac_n "checking if templates require source on platform""... $ac_c" 1>&6 +echo "configure:14860: checking if templates require source on platform" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_templates_require_source'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14866 "configure" +#include "confdefs.h" + +/* +#include "config/trs.h" +*/ + +int main() { + + Foo<int> foo(15); + +; return 0; } +EOF +if { (eval echo configure:14879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + + ace_cv_feature_templates_require_source=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_templates_require_source=yes + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_templates_require_source" 1>&6 + if test "$ace_cv_feature_templates_require_source" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_TEMPLATES_REQUIRE_SOURCE 1 +EOF + + + else + ace_jus_a_place_holder=fixme + fi + + + +if test X$ace_cv_feature_templates_require_source = Xyes; then + TEMPLATES_REQUIRE_SOURCE_TRUE= + TEMPLATES_REQUIRE_SOURCE_FALSE='#' +else + TEMPLATES_REQUIRE_SOURCE_TRUE='#' + TEMPLATES_REQUIRE_SOURCE_FALSE= +fi + + + echo $ac_n "checking if platform supports template specialization""... $ac_c" 1>&6 +echo "configure:14921: checking if platform supports template specialization" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_posix_template_specialization'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14927 "configure" +#include "confdefs.h" + + template <class T> + class Foo + { + public: + Foo(T bar) : bar_(bar) {}; + private: + T bar_; + }; + class Foo<int> + { + public: + Foo(int bar) : bar_(bar + 1) {}; + private: + int bar_; + }; + +int main() { + + Foo<int> foo(11); + +; return 0; } +EOF +if { (eval echo configure:14952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_posix_template_specialization=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_posix_template_specialization=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_posix_template_specialization" 1>&6 + if test "$ace_cv_feature_posix_template_specialization" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_TEMPLATE_SPECIALIZATION 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform supports typename keyword""... $ac_c" 1>&6 +echo "configure:14983: checking if platform supports typename keyword" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_posix_typename_keyword'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 14989 "configure" +#include "confdefs.h" + + class Bar + { + public: + typedef int Y; + Bar(int bar) : bar_(bar) {} + private: + int bar_; + }; + + template <class T> + class Foo + { + public: + typedef typename T::Y Y; + Foo(T* foo) : foo_(foo) {} + void bilbo(typename T::Y y); + private: + T* foo_; + }; + + template <class T> + void Foo<T>::bilbo(typename T::Y y) + { + } + +int main() { + + Bar bar(15); + Foo<Bar> foo(&bar); + foo.bilbo(10); + +; return 0; } +EOF +if { (eval echo configure:15025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_posix_typename_keyword=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_posix_typename_keyword=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_posix_typename_keyword" 1>&6 + if test "$ace_cv_feature_posix_typename_keyword" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_TYPENAME_KEYWORD 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform supports template typedefs""... $ac_c" 1>&6 +echo "configure:15056: checking if platform supports template typedefs" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_posix_template_typedefs'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 15062 "configure" +#include "confdefs.h" + +#if defined (ACE_HAS_TYPENAME_KEYWORD) +#define TYPENAME typename +#else +#define TYPENAME +#endif + + class Bar + { + public: + typedef int Y; + Bar(int bar) : bar_(bar) {} + int value() const { return bar_; } + private: + int bar_; + }; + + template <class T> + class Foo + { + public: + typedef TYPENAME T::Y Y; + Foo(T* foo) : foo_(foo) {} + void print(Y y); + private: + T* foo_; + }; + + template <class T> + void Foo<T>::print(TYPENAME T::Y y) + { + } + +int main() { + + Bar bar(15); + Foo<Bar> foo(&bar); + foo.print(11); + +; return 0; } +EOF +if { (eval echo configure:15105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_posix_template_typedefs=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_posix_template_typedefs=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_posix_template_typedefs" 1>&6 + if test "$ace_cv_feature_posix_template_typedefs" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_TEMPLATE_TYPEDEFS 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform supports static data member templates""... $ac_c" 1>&6 +echo "configure:15136: checking if platform supports static data member templates" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_posix_static_data_member_templates'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 15142 "configure" +#include "confdefs.h" + + template <class T> + class Foo + { + public: + static T* sdm; + }; + template <class T> T* Foo<T>::sdm = 0; + +int main() { + + /* No body */ + +; return 0; } +EOF +if { (eval echo configure:15159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_posix_static_data_member_templates=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_posix_static_data_member_templates=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_posix_static_data_member_templates" 1>&6 + if test "$ace_cv_feature_posix_static_data_member_templates" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES 1 +EOF + + fi + + +if test "$ace_user_enable_exceptions" = yes; then + + echo $ac_n "checking if platform supports C++ exceptions""... $ac_c" 1>&6 +echo "configure:15192: checking if platform supports C++ exceptions" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_posix_exceptions'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 15198 "configure" +#include "confdefs.h" + +int main() { + + int ret = 0; + class ACE {}; + try + { + throw ACE(); + } + catch (ACE) + { + ret = 1; + } + +; return 0; } +EOF +if { (eval echo configure:15216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_posix_exceptions=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_posix_exceptions=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_posix_exceptions" 1>&6 + if test "$ace_cv_feature_posix_exceptions" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_EXCEPTIONS 1 +EOF + + else + ace_just_a_place_holder=fixme +ace_user_enable_exceptions=no + fi + + +fi + +if test "$ac_cv_header_new" = yes && + test "$ac_cv_header_iomanip" = yes && + test "$ac_cv_header_auto_ptr" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_STANDARD_CPP_LIBRARY 1 +EOF + +fi + + + +# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works +# for constant arguments. Useless! +echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 +echo "configure:15262: checking for working alloca.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15267 "configure" +#include "confdefs.h" +#include <alloca.h> +int main() { +char *p = alloca(2 * sizeof(int)); +; return 0; } +EOF +if { (eval echo configure:15274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_header_alloca_h=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_header_alloca_h=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 +if test $ac_cv_header_alloca_h = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ALLOCA_H 1 +EOF + +fi + +echo $ac_n "checking for alloca""... $ac_c" 1>&6 +echo "configure:15295: checking for alloca" >&5 +if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15300 "configure" +#include "confdefs.h" + +#ifdef __GNUC__ +# define alloca __builtin_alloca +#else +# ifdef _MSC_VER +# include <malloc.h> +# define alloca _alloca +# else +# if HAVE_ALLOCA_H +# include <alloca.h> +# else +# ifdef _AIX + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +char *alloca (); +# endif +# endif +# endif +# endif +#endif + +int main() { +char *p = (char *) alloca(1); +; return 0; } +EOF +if { (eval echo configure:15328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + ac_cv_func_alloca_works=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ac_cv_func_alloca_works=no +fi +rm -f conftest* +fi + +echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 +if test $ac_cv_func_alloca_works = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_ALLOCA 1 +EOF + +fi + +if test $ac_cv_func_alloca_works = no; then + # The SVR3 libPW and SVR4 libucb both contain incompatible functions + # that cause trouble. Some versions do not even contain alloca or + # contain a buggy version. If you still want to use their alloca, + # use ar to extract alloca.o from them instead of compiling alloca.c. + ALLOCA=alloca.${ac_objext} + cat >> confdefs.h <<\EOF +#define C_ALLOCA 1 +EOF + + +echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 +echo "configure:15360: checking whether alloca needs Cray hooks" >&5 +if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15365 "configure" +#include "confdefs.h" +#if defined(CRAY) && ! defined(CRAY2) +webecray +#else +wenotbecray +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "webecray" >/dev/null 2>&1; then + rm -rf conftest* + ac_cv_os_cray=yes +else + rm -rf conftest* + ac_cv_os_cray=no +fi +rm - + +fi + +echo "$ac_t""$ac_cv_os_cray" 1>&6 +if test $ac_cv_os_cray = yes; then +for ac_func in _getb67 GETB67 getb67; do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:15390: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15395 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<EOF +#define CRAY_STACKSEG_END $ac_func +EOF + + break +else + echo "$ac_t""no" 1>&6 +fi + +done +fi + +echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 +echo "configure:15448: checking stack direction for C alloca" >&5 +if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_c_stack_direction=0 +else + cat > conftest.$ac_ext <<EOF +#line 15456 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +find_stack_direction () +{ + static char *addr = 0; + auto char dummy; + if (addr == 0) + { + addr = &dummy; + return find_stack_direction (); + } + else + return (&dummy > addr) ? 1 : -1; +} +main () +{ + exit (find_stack_direction() < 0); +} +EOF +if { (eval echo configure:15478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_c_stack_direction=1 +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_c_stack_direction=-1 +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 +cat >> confdefs.h <<EOF +#define STACK_DIRECTION $ac_cv_c_stack_direction +EOF + +fi + +if test "$ac_cv_header_alloca_h" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_ALLOCA_H 1 +EOF + +fi +if test "$ac_cv_func_alloca_works" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_ALLOCA 1 +EOF + +fi + + +echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6 +echo "configure:15514: checking whether closedir returns void" >&5 +if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + ac_cv_func_closedir_void=yes +else + cat > conftest.$ac_ext <<EOF +#line 15522 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +#include <sys/types.h> +#include <$ac_header_dirent> +int closedir(); main() { exit(closedir(opendir(".")) != 0); } +EOF +if { (eval echo configure:15531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_func_closedir_void=no +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_func_closedir_void=yes +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_func_closedir_void" 1>&6 +if test $ac_cv_func_closedir_void = yes; then + cat >> confdefs.h <<\EOF +#define CLOSEDIR_VOID 1 +EF + +fi + + +echo $ac_n "checking for getpwnam""... $ac_c" 1>&6 +echo "configure:15555: checking for getpwnam" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getpwnam'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15560 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getpwnam(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getpwnam(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getpwnam) || defined (__stub___getpwnam) +choke me +#else +getpwnam(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getpwnam=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getpwnam=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getpwnam`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for setpwent""... $ac_c" 1>&6 +echo "configure:15605: checking for setpwent" >&5 +if eval "test \"`echo '$''{'ac_cv_func_setpwent'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15610 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char setpwent(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char setpwent(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_setpwent) || defined (__stub___setpwent) +choke me +#else +setpwent(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_setpwent=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_setpwent=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'setpwent`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for endpwent""... $ac_c" 1>&6 +echo "configure:15655: checking for endpwent" >&5 +if eval "test \"`echo '$''{'ac_cv_func_endpwent'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15660 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char endpwent(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char endpwent(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_endpwent) || defined (__stub___endpwent) +choke me +#else +endpwent(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_endpwent=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_endpwent=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'endpwent`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for getpwent""... $ac_c" 1>&6 +echo "configure:15705: checking for getpwent" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getpwent'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15710 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getpwent(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getpwent(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getpwent) || defined (__stub___getpwent) +choke me +#else +getpwent(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getpwent=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getpwent=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getpwent`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +if test "$ac_cv_func_getpwnam" != yes || + test "$ac_cv_func_setpwent" != yes || + test "$ac_cv_func_endpwent" != yes || + test "$ac_cv_func_getpwent" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_PWD_FUNCTIONS 1 +EOF + +fi + +echo $ac_n "checking for strftime""... $ac_c" 1>&6 +echo "configure:15766: checking for strftime" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15771 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strftime(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strftime(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_strftime) || defined (__stub___strftime) +choke me +#else +strftime(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strftime=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strftime=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_STRFTIME 1 +EOF + +else + echo "$ac_t""no" 1>&6 +# strftime is in -lintl on SCO UNIX. +echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 +echo "configure:15819: checking for strftime in -lintl" >&5 +ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lintl $LIBS" +cat > conftest.$ac_ext <<EOF +#line 15827 "configure" +#include "confdefs.h" +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strftime(); + +int main() { +strftime() +; return 0; } +EOF +if { (eval echo configure:15841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_STRFTIME 1 +EOF + +LIBS="-lintl $LIBS" +else + echo "$ac_t""no" 1>&6 +fi + +fi + + +case "$target" in + *win32*) + echo $ac_n "checking for CancelIO""... $ac_c" 1>&6 +echo "configure:15871: checking for CancelIO" >&5 +if eval "test \"`echo '$''{'ac_cv_func_CancelIO'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15876 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char CancelIO(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char CancelIO(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_CancelIO) || defined (__stub___CancelIO) +choke me +#else +CancelIO(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_CancelIO=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_CancelIO=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'CancelIO`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_CANCEL_IO 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for SignalObjectAndWait""... $ac_c" 1>&6 +echo "configure:15926: checking for SignalObjectAndWait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_SignalObjectAndWait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15931 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char SignalObjectAndWait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char SignalObjectAndWait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_SignalObjectAndWait) || defined (__stub___SignalObjectAndWait) +choke me +#else +SignalObjectAndWait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_SignalObjectAndWait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_SignalObjectAndWait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'SignalObjectAndWait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SIGNAL_OBJECT_AND_WAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for TryEnterCriticalSection""... $ac_c" 1>&6 +echo "configure:15981: checking for TryEnterCriticalSection" >&5 +if eval "test \"`echo '$''{'ac_cv_func_TryEnterCriticalSection'+set}'`\" = set"; + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 15986 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char TryEnterCriticalSection(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char TryEnterCriticalSection(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_TryEnterCriticalSection) || defined (__stub___TryEnterCriticalSection) +choke me +#else +TryEnterCriticalSection(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_TryEnterCriticalSection=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_TryEnterCriticalSection=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'TryEnterCriticalSection`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_WIN32_TRYLOCK 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + ;; + *) + ;; +esac + +echo $ac_n "checking for access""... $ac_c" 1>&6 +echo "configure:16040: checking for access" >&5 +if eval "test \"`echo '$''{'ac_cv_func_access'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16045 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char access(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char access(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_access) || defined (__stub___access) +choke me +#else +access(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_access=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_access=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'access`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_ACCESS 1 +EOF + +fi + + +echo $ac_n "checking for bsearch""... $ac_c" 1>&6 +echo "configure:16096: checking for bsearch" >&5 +if eval "test \"`echo '$''{'ac_cv_func_bsearch'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16101 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char bsearch(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char bsearch(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_bsearch) || defined (__stub___bsearch) +choke me +#else +bsearch(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -sconftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_bsearch=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_bsearch=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'bsearch`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_BSEARCH 1 +EOF + +fi + + +echo $ac_n "checking for qsort""... $ac_c" 1>&6 +echo "configure:16152: checking for qsort" >&5 +if eval "test \"`echo '$''{'ac_cv_func_qsort'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16157 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char qsort(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char qsort(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_qsort) || defined (__stub___qsort) +choke me +#else +qsort(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_qsort=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_qsort=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'qsort`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_QSORT 1 +EOF + +fi + + +for ac_func in execv execvp execve +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:16210: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16215 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ac_func(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <<EOF +#define $ac_tr_func 1 +EOF + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_EXEC 1 +EOF + +fi +done + + +echo $ac_n "checking for fcntl""... $ac_c" 1>&6 +echo "configure:16271: checking for fcntl" >&5 +if eval "test \"`echo '$''{'ac_cv_func_fcntl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16276 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char fcntl(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char fcntl(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_fcntl) || defined (__stub___fcntl) +choke me +#else +fcntl(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_fcntl=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_fcntl=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'fcntl`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_FCNTL 1 +EOF + +fi + + +echo $ac_n "checking for fsync""... $ac_c" 1>&6 +echo "configure:16327: checking for fsync" >&5 +if eval "test \"`echo '$''{'ac_cv_func_fsync'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16332 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char fsync(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char fsync(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_fsync) || defined (__stub___fsync) +choke me +#else +fsync(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_fsync=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_fsync=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'fsync`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_FSYNC 1 +EOF + +fi + + +echo $ac_n "checking for getmsg""... $ac_c" 1>&6 +echo "configure:16383: checking for getmsg" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getmsg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16388 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getmsg(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getmsg(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getmsg) || defined (__stub___getmsg) +choke me +#else +getmsg(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getmsg=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getmsg=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getmsg`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_STREAM_PIPES 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for gethostbyaddr""... $ac_c" 1>&6 +echo "configure:16438: checking for gethostbyaddr" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16443 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyaddr(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyaddr(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethostbyaddr) || defined (__stub___gethostbyaddr) +choke me +#else +gethostbyaddr(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyaddr=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyaddr=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyaddr`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for difftime""... $ac_c" 1>&6 +echo "configure:16490: checking for difftime" >&5 +if eval "test \"`echo '$''{'ac_cv_func_difftime'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16495 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char difftime(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char difftime(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_difftime) || defined (__stub___difftime) +choke me +#else +difftime(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_difftime=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_difftime=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'difftime`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_DIFFTIME 1 +EOF + +fi + + +echo $ac_n "checking for bind""... $ac_c" 1>&6 +echo "configure:16546: checking for bind" >&5 +if eval "test \"`echo '$''{'ac_cv_func_bind'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16551 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char bind(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char bind(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_bind) || defined (__stub___bind) +choke me +#else +bind(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_bind=yes" +else + echo "configure: failed program was:" >&5 + + rm -rf conftest* + eval "ac_cv_func_bind=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'bind`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + + echo $ac_n "checking if bind() will select the port if it is zero""... $ac_c" 1>&6 +echo "configure:16594: checking if bind() will select the port if it is zero" >&5 + if eval "test \"`echo '$''{'ace_cv_have_wildcard_bind'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + if test "$cross_compiling" = yes; then + + ace_cv_have_wildcard_bind=yes + +else + cat > conftest.$ac_ext <<EOF +#line 16605 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <netinet/in.h> +#include <string.h> /* for memset() */ + + int main () { + + int sockfd = socket(AF_INET, SOCK_STREAM, 0); + + sockaddr_in serv_addr; + + (void) memset ((void *) &serv_addr, 0, sizeof(serv_addr)); + + serv_addr.sin_family = AF_INET; + serv_addr.sin_addr.s_addr = htonl(INADDR_ANY); + serv_addr.sin_port = 0; + + return bind (sockfd, (struct sockaddr *) &serv_addr, + sizeof(serv_addr)); + } + +EOF +if { (eval echo configure:16635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + + ace_cv_have_wildcard_bind=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + + ace_cv_have_wildcard_bind=no + +fi +rm -fr conftest* +fi + + +fi + + echo "$ac_t""$ace_cv_have_wildcard_bind" 1>&6 + if test "$ace_cv_have_wildcard_bind" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_WILDCARD_BIND 1 +EOF + + fi + + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for poll""... $ac_c" 1>&6 +echo "configure:16673: checking for poll" >&5 +if eval "test \"`echo '$''{'ac_cv_func_poll'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16678 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char poll(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char poll(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_poll) || defined (__stub___poll) +choke me +#else +poll(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_poll=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_poll=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'poll`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + + echo $ac_n "checking if poll is broken""... $ac_c" 1>&6 +echo "configure:16721: checking if poll is broken" >&5 + if eval "test \"`echo '$''{'ace_cv_poll_is_broken'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + if test "$cross_compiling" = yes; then + + ace_cv_poll_is_broken=no + +else + cat > conftest.$ac_ext <<EOF +#line 16732 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif + +#include <poll.h> +#include <time.h> + +#ifdef ACE_LACKS_SYSTIME_H +# include <sys/time.h> +#endif + + int main () { + + int timeout = 2000; /* 2000 milliseconds */ + int timeout_arg = timeout; + /* poll() modifies timeout argument on some platforms */ + + int result = 0; + + time_t *t = 0; + + time_t time1 = time(t); + + result = poll(0, 0, timeout_arg); + + time_t time2 = time(t); + + time_t diff = time2 - time1; + + /* If (diff * 1000) < timeout then poll() is broken! */ + if (result >= 0) + return (((diff * 1000) < timeout) ? 1 : 0); + else + return 1; /* We had a problem with poll() so we don't + know what really happened. */ + } + +EOF +if { (eval echo configure:16772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + + ace_cv_poll_is_broken=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + + ace_cv_poll_is_broken=yes + +fi +rm -fr conftest* +fi + + +fi + + echo "$ac_t""$ace_cv_poll_is_broken" 1>&6 + if test "$ace_cv_poll_is_broken" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_POLL_IS_BROKEN 1 +EOF + + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_USE_POLL 1 +EOF + + fi + + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for gethrtime""... $ac_c" 1>&6 +echo "configure:16813: checking for gethrtime" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethrtime'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16818 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethrtime(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethrtime(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethrtime) || defined (__stub___gethrtime) +choke me +#else +gethrtime(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethrtime=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethrtime=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethrtime`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + + + + echo $ac_n "checking for hrtime_t in sys/time.h""... $ac_c" 1>&6 +echo "configure:16863: checking for hrtime_t in sys/time.h" >&5 + if eval "test \"`echo '$''{'ace_cv_type_hrtime_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 16869 "configure" +#include "confdefs.h" + +#include <sys/time.h> + +int main() { + + hrtime_t ace_hrtime_t; + +; return 0; } +EOF +if { (eval echo configure:16880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_type_hrtime_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_type_hrtime_t=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_type_hrtime_t" 1>&6 + if test "$ace_cv_type_hrtime_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_HI_RES_TIMER 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for pread""... $ac_c" 1>&6 +echo "configure:16916: checking for pread" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pread'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16921 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pread(); beow. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pread(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pread) || defined (__stub___pread) +choke me +#else +pread(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pread=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pread=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pread`\" = yes"; then + echo "$ac_t""yes" 1>&6 + echo $ac_n "checking for pwrite""... $ac_c" 1>&6 +echo "configure:16962: checking for pwrite" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pwrite'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 16967 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pwrite(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pwrite(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pwrite) || defined (__stub___pwrite) +choke me +#else +pwrite(); +#endif + +; return 0; } +EOF +if { (eval echo configure:16993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pwrite=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pwrite=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pwrite`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_P_READ_WRITE 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for readv""... $ac_c" 1>&6 +echo "configure:17021: checking for readv" >&5 +if eval "test \"`echo '$''{'ac_cv_func_readv'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17026 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char readv(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char readv(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_readv) || defined (__stub___readv) +choke me +#else +readv(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_readv=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_readv=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'readv`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_READV 1 +EOF + +fi + +echo $ac_n "checking for writev""... $ac_c" 1>&6 +echo "configure:17076: checking for writev" >&5 +if eval "test \"`echo '$''{'ac_cv_func_writev'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17081 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char writev(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char writev(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_writev) || defined (__stub___writev) +choke me +#else +writev(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_writev=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_writev=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'writev`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_WRITEV 1 +EOF + +fi + +echo $ac_n "checking for set_t_errno""... $ac_c" 1>&6 +echo "configure:17131: checking for set_t_errno" >&5 +if eval "test \"`echo '$''{'ac_cv_func_set_t_errno'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17136 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char set_t_errno(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char set_t_errno(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_set_t_errno) || defined (__stub___set_t_errno) +choke me +#else +set_t_errno(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_set_t_errno=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_set_t_errno=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'set_t_errno`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SET_T_ERRNO 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +echo $ac_n "checking for socketpair""... $ac_c" 1>&6 +echo "configure:17185: checking for socketpair" >&5 +if eval "test \"`echo '$''{'ac_cv_func_socketpair'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17190 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char socketpair(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char socketpair(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_socketpair) || defined (__stub___socketpair) +choke me +#else +socketpair(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; the + rm -rf conftest* + eval "ac_cv_func_socketpair=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_socketpair=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'socketpair`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SOCKETPAIR 1 +EOF + +fi + + +echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6 +echo "configure:17241: checking for strcasecmp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17246 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strcasecmp(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strcasecmp(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) +choke me +#else +strcasecmp(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strcasecmp=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strcasecmp=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_STRCASECMP 1 +EOF + +fi + + +echo $ac_n "checking for strdup""... $ac_c" 1>&6 +echo "configure:17297: checking for strdup" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17302 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strdup(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strdup(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_strdup) || defined (__stub___strdup) +choke me +#else +strdup(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strdup=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strdup=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_HAS_STRDUP_EMULATION 1 +EOF + +fi + + +echo $ac_n "checking for strrchr""... $ac_c" 1>&6 +echo "configure:17353: checking for strrchr" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strrchr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17358 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strrchr(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strrchr(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_strrchr) || defined (__stub___strrchr) +choke me +#else +strrchr(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strrchr=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strrchr=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strrchr`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_STRRCHR 1 +EOF + +fi + + +echo $ac_n "checking for syscall""... $ac_c" 1>&6 +echo "configure:17409: checking for syscall" >&5 +if eval "test \"`echo '$''{'ac_cv_func_syscall'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17414 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char syscall(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char syscall(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_syscall) || defined (__stub___syscall) +choke me +#else +syscall(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_syscall=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_syscall=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'syscall`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SYSCALL 1 +EOF + +fi + + +echo $ac_n "checking for ualarm""... $ac_c" 1>&6 +echo "configure:17465: checking for ualarm" >&5 +if eval "test \"`echo '$''{'ac_cv_func_ualarm'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17470 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char ualarm(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char ualarm(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_ualarm) || defined (__stub___ualarm) +choke me +#else +ualarm(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_ualarm=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_ualarm=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'ualarm`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_UALARM 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for alarm""... $ac_c" 1>&6 +echo "configure:17520: checking for alarm" >&5 +if eval "test \"`echo '$''{'ac_cv_func_alarm'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17525 "cnfigure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char alarm(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char alarm(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_alarm) || defined (__stub___alarm) +choke me +#else +alarm(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_alarm=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_alarm=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'alarm`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for signal""... $ac_c" 1>&6 +echo "configure:17570: checking for signal" >&5 +if eval "test \"`echo '$''{'ac_cv_func_signal'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17575 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char signal(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char signal(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_signal) || defined (__stub___signal) +choke me +#else +signal(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_signal=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_signal=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'signal`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +if test "$ac_cv_func_alarm" != yes && + test "$ac_cv_func_signal" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_UNIX_SIGNALS 1 +EOF + +fi + +echo $ac_n "checking for clock_gettime""... $ac_c" 1>&6 +echo "configure:17629: checking for clock_gettime" >&5 +if eval "test \"`echo '$''{'ac_cv_func_clock_gettime'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17634 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char clock_gettime(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char clock_gettime(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_clock_gettime) || defined (__stub___clock_gettime) +choke me +#else +clock_gettime(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_clock_gettime=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_clock_gettime=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'clock_gettime`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_CLOCK_GETTIME 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for fork""... $ac_c" 1>&6 +echo "configure:17684: checking for fork" >&5 +if eval "test \"`echo '$''{'ac_cv_func_fork'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17689 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char fork(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char fork(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_fork) || defined (__stub___fork) +choke me +#else +fork(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_fork=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_fork=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'fork`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_FORK 1 +EOF + +fi + + +echo $ac_n "checking for getrlimit""... $ac_c" 1>&6 +echo "configure:17740: checking for getrlimit" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getrlimit'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17745 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getrlimit(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getrlimit(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getrlimit) || defined (__stub___getrlimit) +choke me +#else +getrlimit(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getrlimit=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getrlimit=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getrlimit`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + echo $ac_n "checking for setrlimit""... $ac_c" 1>&6 +echo "configure:17787: checking for setrlimit" >&5 +if eval "test \"`echo '$''{'ac_cv_func_setrlimit'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17792 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char setrlimit(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char setrlimit(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_setrlimit) || define +choke me +#else +setrlimit(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_setrlimit=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_setrlimit=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'setrlimit`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_RLIMIT 1 +EOF + +fi + + +else + echo "$ac_t""no" 1>&6 + + cat >> confdefs.h <<\EOF +#define ACE_LACKS_RLIMIT 1 +EOF + + +fi + + +echo $ac_n "checking for sysinfo""... $ac_c" 1>&6 +echo "configure:17854: checking for sysinfo" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sysinfo'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17859 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sysinfo(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sysinfo(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sysinfo) || defined (__stub___sysinfo) +choke me +#else +sysinfo(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sysinfo=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sysinfo=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sysinfo`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + if test "$ac_cv_header_sys_systeminfo_h" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SYSINFO 1 +EOF + + fi + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for strerror""... $ac_c" 1>&6 +echo "configure:17913: checking for strerror" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17918 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strerror(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strerror(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_strerror) || defined (__stub___strerror) +choke me +#else +strerror(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strerror=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strerror=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_STRERROR 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for lstat""... $ac_c" 1>&6 +echo "configure:17968: checking for lstat" >&5 +if eval "test \"`echo '$''{'ac_cv_func_lstat'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 17973 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char lstat(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char lstat(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_lstat) || defined (__stub___lstat) +choke me +#else +lstat(); +#endif + +; return 0; } +EOF +if { (eval echo configure:17999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_lstat=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_lstat=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'lstat`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_LSTAT 1 +EOF + +fi + + +echo $ac_n "checking for readlink""... $ac_c" 1>&6 +echo "configure:18024: checking for readlink" >&5 +if eval "test \"`echo '$''{'ac_cv_func_readlink'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18029 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char readlink(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char readlink(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_readlink) || defined (__stub___readlink) +choke me +#else +readlink(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_readlink=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_readlink=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'readlink`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_READLINK 1 +EOF + +fi + + +echo $ac_n "checking for recvmsg""... $ac_c" 1>&6 +echo "configure:18080: checking for recvmsg" >&5 +if eval "test \"`echo '$''{'ac_cv_func_recvmsg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18085 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char recvmsg(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char recvmsg(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_recvmsg) || defined (__stub___recvmsg) +choke me +#else +recvmsg(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_recvmsg=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_recvmsg=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'recvmsg`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + ech "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_RECVMSG 1 +EOF + +fi + + +echo $ac_n "checking for sendmsg""... $ac_c" 1>&6 +echo "configure:18136: checking for sendmsg" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sendmsg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18141 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sendmsg(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sendmsg(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sendmsg) || defined (__stub___sendmsg) +choke me +#else +sendmsg(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sendmsg=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sendmsg=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sendmsg`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SENDMSG 1 +EOF + +fi + + +if test "$ace_has_tli" = yes; then + echo $ac_n "checking for t_getname""... $ac_c" 1>&6 +echo "configure:18193: checking for t_getname" >&5 +if eval "test \"`echo '$''{'ac_cv_func_t_getname'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18198 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char t_getname(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char t_getname(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_t_getname) || defined (__stub___t_getname) +choke me +#else +t_getname(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_t_getname=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_t_getname=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'t_getname`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SVR4_TLI 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + +fi + +echo $ac_n "checking for getrusage""... $ac_c" 1>&6 +echo "configure:18249: checking for getrusage" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18254 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getrusage(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getrusage(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getrusage) || defined (__stub___getrusage) +choke me +#else +getrusage(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getrusage=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getrusage=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_GETRUSAGE 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for getpgid""... $ac_c" 1>&6 +echo "configure:18304: checking for getpgid" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getpgid'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18309 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getpgid(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getpgid(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getpgid) || defined (__stub___getpgid) +choke me +#else +getpgid(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getpgid=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getpgid=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getpgid`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_GETPGID 1 +EOF + +fi + + +echo $ac_n "checking for getpagesize""... $ac_c" 1>&6 +echo "configure:18360: checking for getpagesize" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getpagesize'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18365 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getpagesize(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getpagesize(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getpagesize) || defined (__stub___getpagesize) +choke me +#else +getpagesize(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getpagesize=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getpagesize=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getpagesize`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_GETPAGESIZE 1 +EOF + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_PAGE_SIZE 4096 +EOF + +fi + + +echo $ac_n "checking for msync""... $ac_c" 1>&6 +echo "configure:18419: checking for msync" >&5 +if eval "test \"`echo '$''{'ac_cv_func_msync'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18424 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char msync(); bel +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char msync(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_msync) || defined (__stub___msync) +choke me +#else +msync(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_msync=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_msync=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'msync`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MSYNC 1 +EOF + +fi + + +echo $ac_n "checking for mprotect""... $ac_c" 1>&6 +echo "configure:18475: checking for mprotect" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mprotect'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18480 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char mprotect(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char mprotect(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_mprotect) || defined (__stub___mprotect) +choke me +#else +mprotect(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_mprotect=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_mprotect=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'mprotect`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MPROTECT 1 +EOF + +fi + + +echo $ac_n "checking for mkfifo""... $ac_c" 1>&6 +echo "configure:18531: checking for mkfifo" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mkfifo'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18536 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char mkfifo(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char mkfifo(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_mkfifo) || defined (__stub___mkfifo) +choke me +#else +mkfifo(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_mkfifo=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_mkfifo=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'mkfifo`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MKFIFO 1 +EOF + +fi + +echo $ac_n "checking for mktemp""... $ac_c" 1>&6 +echo "configure:18587: checking for mktemp" >&5 +if eval "test \"`echo '$''{'ac_cv_func_mktemp'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18592 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char mktemp(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char mktemp(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_mktemp) || defined (__stub___mktemp) +choke me +#else +mktemp(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_mktemp=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_mktemp=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'mktemp`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MKTEMP 1 +EOF + +fi + + +echo $ac_n "checking for madvise""... $ac_c" 1>&6 +echo "configure:18643: checking for madvise" >&5 +if eval "test \"`echo '$''{'ac_cv_func_madvise'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18648 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char madvise(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char madvise(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_madvise) || defined (__stub___madvise) +choke me +#else +madvise(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_madvise=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_madvise=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'madvise`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MADVISE 1 +EOF + +fi + + +if test "$ac_cv_header_sys_priocntl_h" = yes; then + echo $ac_n "checking for priocntl""... $ac_c" 1>&6 +echo "configure:18700: checking for priocntl" >&5 +if eval "test \"`echo '$''{'ac_cv_func_priocntl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18705 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char priocntl(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char priocntl(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_priocntl) || defined (__stub___priocntl) +choke me +#else +priocntl(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_priocntl=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_priocntl=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'priocntl`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_PRIOCNTL 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + if test "$ac_cv_func_priocntl" = no; then + + echo $ac_n "checking if platform defines priocntl as a macro""... $ac_c" 1>&6 +echo "configure:18757: checking if platform defines priocntl as a macro" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_has_priocntl_macro'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 18763 "configure" +#include "confdefs.h" + +#include <sys/priocntl.h> + +#if defined (priocntl) + ACE_PRIOCNTL_MACRO +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_PRIOCNTL_MACRO" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_has_priocntl_macro=yes + +else + rm -rf conftest* + + ace_cv_lib_has_priocntl_macro=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_has_priocntl_macro" 1>&6 + if test "$ace_cv_lib_has_priocntl_macro" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_PRIOCNTL 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + fi fi +echo $ac_n "checking for sbrk""... $ac_c" 1>&6 +echo "configure:18803: checking for sbrk" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sbrk'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18808 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sbrk(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sbrk(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sbrk) || defined (__stub___sbrk) +choke me +#else +sbrk(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sbrk=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sbrk=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sbrk`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SBRK 1 +EOF + +fi + + +echo $ac_n "checking for msgctl""... $ac_c" 1>&6 +echo "configure:18859: checking for msgctl" >&5 +if eval "test \"`echo '$''{'ac_cv_func_msgctl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18864 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char msgctl(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char msgctl(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_msgctl) || defined (__stub___msgctl) +choke me +#else +msgctl(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_msgctl=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_msgctl=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'msgctl`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for msgget""... $ac_c" 1>&6 +echo "configure:18911: checking for msgget" >&5 +if eval "test \"`echo '$''{'ac_cv_func_msgget'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18916 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char msgget(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char msgget(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_msgget) || defined (__stub___msgget) +choke me +#else +msgget(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_msgget=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_msgget=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for msgrcv""... $ac_c" 1>&6 +echo "configure:18963: checking for msgrcv" >&5 +if eval "test \"`echo '$''{'ac_cv_func_msgrcv'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 18968 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char msgrcv(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char msgrcv(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_msgrcv) || defined (__stub___msgrcv) +choke me +#else +msgrcv(); +#endif + +; return 0; } +EOF +if { (eval echo configure:18994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_msgrcv=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_msgrcv=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'msgrcv`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for semctl""... $ac_c" 1>&6 +echo "configure:19015: checking for semctl" >&5 +if eval "test \"`echo '$''{'ac_cv_func_semctl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19020 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char semctl(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char semctl(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alia +#if defined (__stub_semctl) || defined (__stub___semctl) +choke me +#else +semctl(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_semctl=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_semctl=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'semctl`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for semget""... $ac_c" 1>&6 +echo "configure:19067: checking for semget" >&5 +if eval "test \"`echo '$''{'ac_cv_func_semget'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19072 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char semget(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char semget(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_semget) || defined (__stub___semget) +choke me +#else +semget(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_semget=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_semget=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'semget`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for semop""... $ac_c" 1>&6 +echo "configure:19119: checking for semop" >&5 +if eval "test \"`echo '$''{'ac_cv_func_semop'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19124 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char semop(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char semop(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_semop) || defined (__stub___semop) +choke me +#else +semop(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_semop=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_semop=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'semop`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for shmat""... $ac_c" 1>&6 +echo "configure:19171: checking for shmat" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19176 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmat(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmat(); + +int main() { +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shmat) || defined (__stub___shmat) +choke me +#else +shmat(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_shmat=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_shmat=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for shmctl""... $ac_c" 1>&6 +echo "configure:19223: checking for shmctl" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shmctl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19228 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmctl(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmctl(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shmctl) || defined (__stub___shmctl) +choke me +#else +shmctl(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_shmctl=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_shmctl=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'shmctl`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for shmdt""... $ac_c" 1>&6 +echo "configure:19275: checking for shmdt" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shmdt'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19280 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmdt(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmdt(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shmdt) || defined (__stub___shmdt) +choke me +#else +shmdt(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_shmdt=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_shmdt=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'shmdt`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for shmget""... $ac_c" 1>&6 +echo "configure:19327: checking for shmget" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19332 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmget(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmget(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shmget) || defined (__stub___shmget) +choke me +#else +shmget(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_shmget=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_shmget=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for read_real_time""... $ac_c" 1>&6 +echo "configure:19379: checking for read_real_time" >&5 +if eval "test \"`echo '$''{'ac_cv_func_read_real_time'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19384 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char read_real_time(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char read_real_time(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_read_real_time) || defined (__stub___read_real_time) +choke me +#else +read_real_time(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_read_real_time=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_read_real_time=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'read_real_time`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_AIX_HI_RES_TIMER 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for shm_open""... $ac_c" 1>&6 +echo "configure:19434: checking for shm_open" >&5 +if eval "test \"`echo '$''{'ac_cv_func_shm_open'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19439 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shm_open(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shm_open(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shm_open) || defined (__stub___shm_open) +choke me +#else +shm_open(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_shm_open=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_shm_open=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'shm_open`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + echo "configure: warning: platform supports shm_open but shm_open support will not be" 1>&2 + echo "configure: warning: enabled since ACE currently supports it only on LynxOS" 1>&2 + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for tempnam""... $ac_c" 1>&6 +echo "configure:19489: checking for tempnam" >&5 +if eval "test \"`echo '$''{'ac_cv_func_tempnam'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19494 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char tempnam(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char tempnam(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_tempnam) || defined (__stub___tempnam) +choke me +#else +tempnam(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_tempnam=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_tempnam=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'tempnam`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_TEMPNAM 1 +EOF + +fi + + +echo $ac_n "checking for truncate""... $ac_c" 1>&6 +echo "configure:19545: checking for truncate" >&5 +if eval "test \"`echo '$''{'ac_cv_func_truncate'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19550 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char truncate(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char truncate(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_truncate) || defined (__stub___truncate) +choke me +#else +truncate(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_truncate=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_truncate=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'truncate`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_TRUNCATE 1 +EOF + +fi + + +echo $ac_n "checking for recv_timedwait""... $ac_c" 1>&6 +echo "configure:19601: checking for recv_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_recv_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19606 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char recv_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char recv_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_recv_timedwait) || defined (__stub___r +choke me +#else +recv_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_recv_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_recv_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'recv_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_RECV_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for recvfrom_timedwait""... $ac_c" 1>&6 +echo "configure:19656: checking for recvfrom_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_recvfrom_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19661 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char recvfrom_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char recvfrom_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_recvfrom_timedwait) || defined (__stub___recvfrom_timedwait) +choke me +#else +recvfrom_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_recvfrom_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_recvfrom_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'recvfrom_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_RECVFROM_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for recvmsg_timedwait""... $ac_c" 1>&6 +echo "configure:19711: checking for recvmsg_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_recvmsg_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19716 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char recvmsg_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char recvmsg_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_recvmsg_timedwait) || defined (__stub___recvmsg_timedwait) +choke me +#else +recvmsg_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_recvmsg_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_recvmsg_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'recvmsg_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_RECVMSG_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for send_timedwait""... $ac_c" 1>&6 +echo "configure:19766: checking for send_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_send_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > contest.$ac_ext <<EOF +#line 19771 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char send_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char send_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_send_timedwait) || defined (__stub___send_timedwait) +choke me +#else +send_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_send_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_send_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'send_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SEND_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for sendto_timedwait""... $ac_c" 1>&6 +echo "configure:19821: checking for sendto_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sendto_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19826 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sendto_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sendto_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sendto_timedwait) || defined (__stub___sendto_timedwait) +choke me +#else +sendto_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sendto_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sendto_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sendto_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SENDTO_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for sendmsg_timedwait""... $ac_c" 1>&6 +echo "configure:19876: checking for sendmsg_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sendmsg_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19881 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sendmsg_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sendmsg_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sendmsg_timedwait) || defined (__stub___sendmsg_timedwait) +choke me +#else +sendmsg_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sendmsg_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sendmsg_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sendmsg_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SENDMSG_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for read_timedwait""... $ac_c" 1>&6 +echo "configure:19931: checking for read_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_read_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19936 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char read_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char read_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_read_timedwait) || defined (__stub___read_timedwait) +choke me +#else +read_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:19962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_read_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_read_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'read_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_READ_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for readv_timedwait""... $ac_c" 1>&6 +echo "configure:19986: checking for readv_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_readv_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 19991 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char readv_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char readv_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_readv_timedwait) || defined (__stub___readv_timedwait) +choke me +#else +readv_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_readv_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_readv_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'readv_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_READV_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for write_timedwait""... $ac_c" 1>&6 +echo "configure:20041: checking for write_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_write_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20046 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char write_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char write_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_write_timedwait) || defined (__stub___write_timedwait) +choke me +#else +write_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_write_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_write_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'write_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_WRITE_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for writev_timedwait""... $ac_c" 1>&6 +echo "configure:20096: checking for writev_timedwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_writev_timedwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20101 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char writev_timedwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char writev_timedwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_writev_timedwait) || defined (__stub___writev_timedwait) +choke me +#else +writev_timedwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_writev_timedwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_writev_timedwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'writev_timedwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_WRITEV_TIMEDWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +echo $ac_n "checking for sem_init""... $ac_c" 1>&6 +echo "configure:20151: checking for sem_init" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sem_init'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20156 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sem_init(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sem_init(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sem_init) || defined (__stub___sem_init) +choke me +#else +sem_init(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sem_init=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sem_init=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sem_init`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for sem_destroy""... $ac_c" 1>&6 +echo "configure:20201: checking for sem_destroy" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sem_destroy'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20206 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sem_destroy(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sem_destroy(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sem_destroy) || defined (__stub___sem_destroy) +choke me +#else +sem_destroy(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sem_destroy=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sem_destroy=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sem_destroy`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for sem_open""... $ac_c" 1>&6 +echo "configure:20251: checking for sem_open" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sem_open'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20256 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sem_open(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sem_open(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sem_open) || defined (__stub___sem_open) +choke me +#else +sem_open(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sem_open=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sem_open=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sem_open`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for sem_close""... $ac_c" 1>&6 +echo "configure:20301: checking for sem_close" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sem_close'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20306 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sem_close(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sem_close(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sem_close) || defined (__stub___sem_close) +choke me +#else +sem_close(); +#endi + +; return 0; } +EOF +if { (eval echo configure:20332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sem_close=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sem_close=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sem_close`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +if test "$ac_cv_func_sem_init" = yes && + test "$ac_cv_func_sem_destroy" = yes && + test "$ace_cv_type_sem_t" = yes && + test "$ace_has_sthreads" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_POSIX_SEM 1 +EOF + + + if test "$ac_cv_func_sem_open" != yes || + test "$ac_cv_func_sem_close" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_NAMED_POSIX_SEM 1 +EOF + + fi +fi + +if test "$ace_user_enable_threads" = yes; then + + if test "$ace_has_pthreads" = yes; then + + echo $ac_n "checking for pthread_sigmask""... $ac_c" 1>&6 +echo "configure:20374: checking for pthread_sigmask" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_sigmask'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20379 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_sigmask(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_sigmask(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_sigmask) || defined (__stub___pthread_sigmask) +choke me +#else +pthread_sigmask(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_sigmask=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_sigmask=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_sigmask`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREAD_SIGMASK 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for pthread_key_create""... $ac_c" 1>&6 +echo "configure:20429: checking for pthread_key_create" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_key_create'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20434 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_key_create(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_key_create(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_key_create) || defined (__stub___pthread_key_create) +choke me +#else +pthread_key_create(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_key_create=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_key_create=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_key_create`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_THREAD_SPECIFIC_STORAGE 1 +EOF + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_HAS_TSS_EMULATION 1 +EOF + +fi + + + echo $ac_n "checking for pthread_condattr_setpshared""... $ac_c" 1>&6 +echo "configure:20488: checking for pthread_condattr_setpshared" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_condattr_setpshared'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20493 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_condattr_setpshared(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_condattr_setpshared(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_condattr_setpshared) || defined (__stub___pthread_condattr_setpshared) +choke me +#else +pthread_condattr_setpshared(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_setpshared=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_setpshared=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_condattr_setpshared`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_CONDATTR_PSHARED 1 +EOF + +fi + + + echo $ac_n "checking for pthread_attr_setstackaddr""... $ac_c" 1>&6 +echo "configure:20544: checking for pthread_attr_setstackaddr" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setstackaddr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20549 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_attr_setstackaddr(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_attr_setstackaddr(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_attr_setstackaddr) || defined (__stub___pthread_attr_setstackaddr) +choke me +#else +pthread_attr_setstackaddr(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setstackaddr=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setstackaddr=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_attr_setstackaddr`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_THREAD_STACK_ADDR 1 +EOF + +fi + + + + + + cat > conftest.$ac_ext <<EOF +#line 20603 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:20610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_attr_setstacksize + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + echo "configure: warning: No awk program found. "Real" function may not be found." 1>&2 + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test pthread_attr_setstacksize != "$ace_real_function"; then + echo $ac_n "checking for real pthread_attr_setstacksize from pthread.h""... $ac_c" 1>&6 +echo "configure:20646: checking for real pthread_attr_setstacksize from pthread.h" >&5 + echo "$ac_t""$ace_real_function" 1>&6 + fi + else + ace_real_function=pthread_attr_setstacksize + fi + echo $ac_n "checking for $ace_real_function""... $ac_c" 1>&6 +echo "configure:20653: checking for $ace_real_function" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ace_real_function'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20658 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ace_real_function(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ace_real_function(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ace_real_function) || defined (__stub___$ace_real_function) +choke me +#else +$ace_real_function(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ace_real_function`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_THREAD_STACK_SIZE 1 +EOF + +fi + + + + + + + cat > conftest.$ac_ext <<EOF +#line 20713 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:20720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_cancel + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + echo "configure: warning: No awk program found. "Real" function may not be found." 1>&2 + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test pthread_cancel != "$ace_real_function"; then + echo $ac_n "checking for real pthread_cancel from pthread.h""... $ac_c" 1>&6 +echo "configure:20756: checking for real pthread_cancel from pthread.h" >&5 + echo "$ac_t""$ace_real_function" 1>&6 + fi + else + ace_real_function=pthread_cancel + fi + echo $ac_n "checking for $ace_real_function""... $ac_c" 1>&6 +echo "configure:20763: checking for +if eval "test \"`echo '$''{'ac_cv_func_$ace_real_function'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20768 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ace_real_function(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ace_real_function(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ace_real_function) || defined (__stub___$ace_real_function) +choke me +#else +$ace_real_function(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ace_real_function`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_PTHREAD_CANCEL 1 +EOF + +fi + + + + echo $ac_n "checking for pthread_yield""... $ac_c" 1>&6 +echo "configure:20820: checking for pthread_yield" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_yield'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20825 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_yield(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_yield(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_yield) || defined (__stub___pthread_yield) +choke me +#else +pthread_yield(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_yield=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_yield=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_yield`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_PTHREAD_YIELD 1 +EOF + +fi + + + echo $ac_n "checking for pthread_thr_sigsetmask""... $ac_c" 1>&6 +echo "configure:20876: checking for pthread_thr_sigsetmask" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_thr_sigsetmask'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20881 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_thr_sigsetmask(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_thr_sigsetmask(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_thr_sigsetmask) || defined (__stub___pthread_thr_sigsetmask) +choke me +#else +pthread_thr_sigsetmask(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_thr_sigsetmask=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_thr_sigsetmask=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_thr_sigsetmask`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_PTHREAD_THR_SIGSETMASK 1 +EOF + +fi + + + echo $ac_n "checking for pthread_attr_setdetachstate""... $ac_c" 1>&6 +echo "configure:20932: checking for pthread_attr_setdetachstate" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setdetachstate'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20937 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_attr_setdetachstate(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_attr_setdetachstate(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_attr_setdetachstate) || defined (__stub___pthread_attr_setdetachstate) +choke me +#else +pthread_attr_setdetachstate(); +#endif + +; return 0; } +EOF +if { (eval echo configure:20963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setdetachstate=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setdetachstate=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_attr_setdetachstate`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SETDETACH 1 +EOF + +fi + + + echo $ac_n "checking for pthread_attr_setsched""... $ac_c" 1>&6 +echo "configure:20988: checking for pthread_attr_setsched" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setsched'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 20993 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_attr_setsched(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_attr_setsched(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_attr_setsched) || defined (__stub___pthread_attr_setsched) +choke me +#else +pthread_attr_setsched(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setsched=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setsched=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_attr_setsched`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for pthread_attr_setschedplicy""... $ac_c" 1>&6 +echo "configure:21037: checking for pthread_attr_setschedpolicy" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedpolicy'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21042 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_attr_setschedpolicy(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_attr_setschedpolicy(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_attr_setschedpolicy) || defined (__stub___pthread_attr_setschedpolicy) +choke me +#else +pthread_attr_setschedpolicy(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setschedpolicy=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setschedpolicy=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedpolicy`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SETSCHED 1 +EOF + +fi + +fi + + + echo $ac_n "checking for pthread_attr_setscope""... $ac_c" 1>&6 +echo "configure:21095: checking for pthread_attr_setscope" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setscope'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21100 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_attr_setscope(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_attr_setscope(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_attr_setscope) || defined (__stub___pthread_attr_setscope) +choke me +#else +pthread_attr_setscope(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setscope=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setscope=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_attr_setscope`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_THREAD_PROCESS_SCOPING 1 +EOF + +fi + + + echo $ac_n "checking for pthread_mutexattr_setpshared""... $ac_c" 1>&6 +echo "configure:21151: checking for pthread_mutexattr_setpshared" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_mutexattr_setpshared'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21156 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_mutexattr_setpshared(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_mutexattr_setpshared(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_mutexattr_setpshared) || defined (__stub___pthread_mutexattr_setpshared) +choke me +#else +pthread_mutexattr_setpshared(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_setpshared=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_setpshared=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_mutexattr_setpshared`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MUTEXATTR_PSHARED 1 +EOF + +fi + + + echo $ac_n "checking for pthread_mutexattr_create""... $ac_c" 1>&6 +echo "configure:21207: checking for pthread_mutexattr_create" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_mutexattr_create'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21212 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_mutexattr_create(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_mutexattr_create(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_mutexattr_create) || defined (__stub___pthread_mutexattr_create) +choke me +#else +pthread_mutexattr_create(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_create=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_create=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_mutexattr_create`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_mutexattr_delete""... $ac_c" 1>&6 +echo "configure:21257: checking for pthread_mutexattr_delete" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_mutexattr_delete'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21262 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_mutexattr_delete(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_mutexattr_delete(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_mutexattr_delete) || defined (__stub___pthread_mutexattr_delete) +choke me +#else +pthread_mutexattr_delete(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_delete=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_p +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_mutexattr_delete`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_condattr_delete""... $ac_c" 1>&6 +echo "configure:21307: checking for pthread_condattr_delete" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_condattr_delete'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21312 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_condattr_delete(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_condattr_delete(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_condattr_delete) || defined (__stub___pthread_condattr_delete) +choke me +#else +pthread_condattr_delete(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_delete=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_delete=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_condattr_delete`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_condattr_create""... $ac_c" 1>&6 +echo "configure:21357: checking for pthread_condattr_create" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_condattr_create'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21362 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_condattr_create(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_condattr_create(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_condattr_create) || defined (__stub___pthread_condattr_create) +choke me +#else +pthread_condattr_create(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_create=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_create=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_condattr_create`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setprio""... $ac_c" 1>&6 +echo "configure:21407: checking for pthread_setprio" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setprio'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21412 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setprio(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its agument prototype would still apply. */ +char pthread_setprio(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setprio) || defined (__stub___pthread_setprio) +choke me +#else +pthread_setprio(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setprio=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setprio=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setprio`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_getprio""... $ac_c" 1>&6 +echo "configure:21457: checking for pthread_getprio" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_getprio'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21462 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_getprio(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_getprio(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_getprio) || defined (__stub___pthread_getprio) +choke me +#else +pthread_getprio(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_getprio=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_getprio=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_getprio`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setcancel""... $ac_c" 1>&6 +echo "configure:21507: checking for pthread_setcancel" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setcancel'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21512 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setcancel(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_setcancel(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setcancel) || defined (__stub___pthread_setcancel) +choke me +#else +pthread_setcancel(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setcancel=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setcancel=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setcancel`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setasynccancel""... $ac_c" 1>&6 +echo "configure:21557: checking for pthread_setasynccancel" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setasynccancel'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21562 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setasynccancel(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_setasynccancel(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setasynccancel) || defined (__stub___pthread_setasynccancel) +choke me +#else +pthread_setasynccancel(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setasynccancel=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setasynccancel=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setasynccancel`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_kill""... $ac_c" 1>&6 +echo "configure:21607: checking for pthread_kill" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_kill'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21612 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_kill(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_kill(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_kill) || defined (__stub___pthread_kill) +choke me +#else +pthread_kill(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_kill=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_kill=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_kill`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_attr_setprio""... $ac_c" 1>&6 +echo "configure:21657: checking for pthread_attr_setprio" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setprio'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21662 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_attr_setprio(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_attr_setprio(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_attr_setprio) || defined (__stub___pthread_attr_setprio) +choke me +#else +pthread_attr_setprio(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setprio=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_attr_setprio=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_attr_setprio`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_attr_getprio""... $ac_c" 1>&6 +echo "configure:21707: checking for pthread_attr_getprio" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getprio'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21712 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_attr_getprio(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_attr_getprio(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_attr_getprio) || defined (__stub___pthread_attr_getprio) +choke me +#else +pthread_attr_getprio(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_attr_getprio=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_attr_getprio=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_attr_getprio`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setintr""... $ac_c" 1>&6 +echo "configure:21757: checking for pthread_setintr" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setintr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21762 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setintr(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_setintr(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setintr) || defined (__stub___pthread_setintr) +choke me +#else +pthread_setintr(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setintr=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setintr=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setintr`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setintrtype""... $ac_c" 1>&6 +echo "configure:21807: checking for pthread_setintrtype" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setintrtype'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21812 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setintrtype(); below. */ +#include <assert.h> + +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_setintrtype(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setintrtype) || defined (__stub___pthread_setintrtype) +choke me +#else +pthread_setintrtype(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setintrtype=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setintrtype=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setintrtype`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_mutexattr_init""... $ac_c" 1>&6 +echo "configure:21857: checking for pthread_mutexattr_init" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_mutexattr_init'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21862 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_mutexattr_init(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_mutexattr_init(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_mutexattr_init) || defined (__stub___pthread_mutexattr_init) +choke me +#else +pthread_mutexattr_init(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_init=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_init=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_mutexattr_init`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_mutexattr_destroy""... $ac_c" 1>&6 +echo "configure:21907: checking for pthread_mutexattr_destroy" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_mutexattr_destroy'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21912 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_mutexattr_destroy(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_mutexattr_destroy(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_mutexattr_destroy) || defined (__stub___pthread_mutexattr_destroy) +choke me +#else +pthread_mutexattr_destroy(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_destroy=yes" +else + echo "configure: failed program was:" &5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_mutexattr_destroy=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_mutexattr_destroy`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_condattr_init""... $ac_c" 1>&6 +echo "configure:21957: checking for pthread_condattr_init" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_condattr_init'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 21962 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_condattr_init(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_condattr_init(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_condattr_init) || defined (__stub___pthread_condattr_init) +choke me +#else +pthread_condattr_init(); +#endif + +; return 0; } +EOF +if { (eval echo configure:21988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_init=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_init=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_condattr_init`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_condattr_destroy""... $ac_c" 1>&6 +echo "configure:22007: checking for pthread_condattr_destroy" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_condattr_destroy'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22012 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_condattr_destroy(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_condattr_destroy(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_condattr_destroy) || defined (__stub___pthread_condattr_destroy) +choke me +#else +pthread_condattr_destroy(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_destroy=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_condattr_destroy=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_condattr_destroy`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setschedparam""... $ac_c" 1>&6 +echo "configure:22057: checking for pthread_setschedparam" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setschedparam'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22062 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setschedparam(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_setschedparam(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setschedparam) || defined (__stub___pthread_setschedparam) +choke me +#else +pthread_setschedparam(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setschedparam=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setschedparam=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setschedparam`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_getschedparam""... $ac_c" 1>&6 +echo "configure:22107: checking for pthread_getschedparam" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_getschedparam'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22112 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_getschedparam(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_getschedparam(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_getschedparam) || defined (__stub___pthread_getschedparam) +choke me +#else +pthread_getschedparam(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_getschedparam=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_getschedparam=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_getschedparam`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setcancelstate""... $ac_c" 1>&6 +echo "configure:22157: checking for pthread_setcancelstate" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setcancelstate'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22162 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setcancelstate(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_setcancelstate(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setcancelstate) || defined (__stub___pthread_setcancelstate) +choke me +#else +pthread_setcancelstate(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setcancelstate=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setcancelstate=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setcancelstate`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + echo $ac_n "checking for pthread_setcanceltype""... $ac_c" 1>&6 +echo "configure:22207: checking for pthread_setcanceltype" >&5 +if eval "test \"`echo '$''{'ac_cv_func_pthread_setcanceltype'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22212 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char pthread_setcanceltype(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char pthread_setcanceltype(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_pthread_setcanceltype) || defined (__stub___pthread_setcanceltype) +choke me +#else +pthread_setcanceltype(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_pthread_setcanceltype=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_pthread_setcanceltype=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'pthread_setcanceltype`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + + + cat > conftest.$ac_ext <<EOF +#line 22261 "configure" +#include "confdefs.h" + +#include <pthread.h> + +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:22268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + ace_header_exists=yes +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_header_exists=no +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF + +#include <pthread.h> + ACE_REAL_FUNCTION pthread_self + +EOF + + if test "$ace_header_exists" = yes; then + if test -z "$AWK"; then + echo "configure: warning: No awk program found. "Real" function may not be found." 1>&2 + fi + + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_REAL_FUNCTION" | + (eval "$AWK '{print \$2}' > conftest.awk 2>&1"); then + rm -f conftest.$ac_ext + ace_real_function=`cat conftest.awk` + rm -f conftest.awk + fi + + if test pthread_self != "$ace_real_function"; then + echo $ac_n "checking for real pthread_self from pthread.h""... $ac_c" 1>&6 +echo "configure:22304: checking for real pthread_self from pthread.h" >&5 + echo "$ac_t""$ace_real_function" 1>&6 + fi + else + ace_real_function=pthread_self + fi + echo $ac_n "checking for $ace_real_function""... $ac_c" 1>&6 +echo "configure:22311: checking for $ace_real_function" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ace_real_function'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22316 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char $ace_real_function(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ace_real_function(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ace_real_func +choke me +#else +$ace_real_function(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ace_real_function=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ace_real_function`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +echo $ac_n "checking for thread_self""... $ac_c" 1>&6 +echo "configure:22360: checking for thread_self" >&5 +if eval "test \"`echo '$''{'ac_cv_func_thread_self'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22365 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char thread_self(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thread_self(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_thread_self) || defined (__stub___thread_self) +choke me +#else +thread_self(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_thread_self=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_thread_self=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'thread_self`\" = yes"; then + echo "$ac_t""yes" 1>&6 + + cat >> confdefs.h <<\EOF +#define ACE_HAS_THREAD_SELF 1 +EOF + + +else + echo "$ac_t""no" 1>&6 +fi + + +fi + + + + + echo $ac_n "checking if platform defines a minimum thread priority""... $ac_c" 1>&6 +echo "configure:22422: checking if platform defines a minimum thread priority" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_pthread_pthread_min_priority'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_lib_pthread_pthread_min_priority=0 + cat > conftest.$ac_ext <<EOF +#line 22429 "configure" +#include "confdefs.h" +#include <pthread.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "PTHREAD_MIN_PRIORITY" >/dev/null 2>&1; then + rm -rf conftest* + ace_cv_lib_pthread_pthread_min_priority=PTHREAD_MIN_PRIORITY +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF +#line 22441 "configure" +#include "confdefs.h" +#include <pthread.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "PX_PRIO_MIN" >/dev/null 2>&1; then + rm -rf conftest* + ace_cv_lib_pthread_pthread_min_priority=PX_PRIO_MIN +fi +rm -f conftest* + + +fi + +echo "$ac_t""$ace_cv_lib_pthread_pthread_min_priority" 1>&6 + cat >> confdefs.h <<EOF +#define ACE_THREAD_MIN_PRIORITY $ace_cv_lib_pthread_pthread_min_priority +EOF + + + echo $ac_n "checking if platform defines a maximum thread priority""... $ac_c" 1>&6 +echo "configure:22462: checking if platform defines a maximum thread priority" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_pthread_pthread_max_priority'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + 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 + cat > conftest.$ac_ext <<EOF +#line 22479 "configure" +#include "confdefs.h" +#include <pthread.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "PTHREA_MAX_PRIORITY" >/dev/null 2>&1; then + rm -rf conftest* + ace_cv_lib_pthread_pthread_max_priority=PTHREAD_MAX_PRIORITY +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF +#line 22491 "configure" +#include "confdefs.h" +#include <pthread.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "PX_PRIO_MAX" >/dev/null 2>&1; then + rm -rf conftest* + ace_cv_lib_pthread_pthread_max_priority=PX_PRIO_MAX +fi +rm -f conftest* + + +fi + +echo "$ac_t""$ace_cv_lib_pthread_pthread_max_priority" 1>&6 + cat >> confdefs.h <<EOF +#define ACE_THREAD_MAX_PRIORITY $ace_cv_lib_pthread_pthread_max_priority +EOF + + + fi + if test "$ace_has_sthreads" = yes; then + echo $ac_n "checking for thr_keycreate""... $ac_c" 1>&6 +echo "configure:22514: checking for thr_keycreate" >&5 +if eval "test \"`echo '$''{'ac_cv_func_thr_keycreate'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22519 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char thr_keycreate(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thr_keycreate(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_thr_keycreate) || defined (__stub___thr_keycreate) +choke me +#else +thr_keycreate(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_thr_keycreate=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_thr_keycreate=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'thr_keycreate`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_THREAD_SPECIFIC_STORAGE 1 +EOF + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_HAS_TSS_EMULATION 1 +EOF + +fi + + + echo $ac_n "checking for thr_yield""... $ac_c" 1>&6 +echo "configure:22573: checking for thr_yield" >&5 +if eval "test \"`echo '$''{'ac_cv_func_thr_yield'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22578 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char thr_yield(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thr_yield(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_thr_yield) || defined (__stub___thr_yield) +choke me +#else +thr_yield(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_thr_yield=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_thr_yield=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'thr_yield`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_THR_YIELD 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for thr_keydelete""... $ac_c" 1>&6 +echo "configure:22628: checking for thr_keydelete" >&5 +if eval "test \"`echo '$''{'ac_cv_func_thr_keydelete'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22633 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char thr_keydelete(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thr_keydelete(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_thr_keydelete) || defined (__stub___thr_keydelete) +choke me +#else +thr_keydelete(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_thr_keydelete=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_thr_keydelete=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'thr_keydelete`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_THR_KEYDELETE 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for thr_min_stack""... $ac_c" 1>&6 +echo "configure:22683: checking for thr_min_stack" >&5 +if eval "test \"`echo '$''{'ac_cv_func_thr_min_stack'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22688 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char thr_min_stack(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thr_min_stack(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_thr_min_stack) || defined (__stub___thr_min_stack) +choke me +#else +thr_min_stack(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_thr_min_stack=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_thr_min_stack=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'thr_min_stack`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 + + echo $ac_n "checking for thr_minstack""... $ac_c" 1>&6 +echo "configure:22733: checking for thr_minstack" >&5 +if eval "test \"`echo '$''{'ac_cv_func_thr_minstack'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22738 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char thr_minstack(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char thr_minstack(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_thr_minstack) || defined (__stub___thr_minstack) +choke me +#else +thr_minstack(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_thr_minstack=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_thr_minstack=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'thr_minstack`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_THR_MINSTACK 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + +fi + + + fi +fi + +echo $ac_n "checking for sigwait""... $ac_c" 1>&6 +echo "configure:22794: checking for sigwait" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sigwait'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22799 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char sigwait(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sigwait(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sigwait) || defined (__stub___sigwait) +choke me +#else +sigwait(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sigwait=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sigwait=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sigwait`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_SIGWAIT 1 +EOF + +else + echo "$ac_t""no" 1>&6 +fi + + + +if test "$ace_user_enable_reentrant_funcs" = yes; then + echo $ac_n "checking for rand_r""... $ac_c" 1>&6 +echo "configure:22851: checking for rand_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_rand_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22856 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char rand_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char rand_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_rand_r) || defined (__stub___rand_r) +choke me +#else +rand_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_rand_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_rand_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'rand_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for strtok_r""... $ac_c" 1>&6 +echo "configure:22903: checking for strtok_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_strtok_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22908 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char strtok_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strtok_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always f + something starting with __ and the normal name is an alias. */ +#if defined (__stub_strtok_r) || defined (__stub___strtok_r) +choke me +#else +strtok_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_strtok_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_strtok_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'strtok_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6 +echo "configure:22955: checking for getpwnam_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 22960 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getpwnam_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getpwnam_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getpwnam_r) || defined (__stub___getpwnam_r) +choke me +#else +getpwnam_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:22986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getpwnam_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getpwnam_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getpwnam_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_PWD_REENTRANT_FUNCTIONS 1 +EOF + +fi + + + echo $ac_n "checking for ctime_r""... $ac_c" 1>&6 +echo "configure:23011: checking for ctime_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_ctime_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23016 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char ctime_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char ctime_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_ctime_r) || defined (__stub___ctime_r) +choke me +#else +ctime_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_ctime_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_ctime_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'ctime_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for localtime_r""... $ac_c" 1>&6 +echo "configure:23063: checking for localtime_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_localtime_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23068 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char localtime_r); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char localtime_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_localtime_r) || defined (__stub___localtime_r) +choke me +#else +localtime_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_localtime_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_localtime_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'localtime_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for gmtime_r""... $ac_c" 1>&6 +echo "configure:23115: checking for gmtime_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gmtime_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23120 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gmtime_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gmtime_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) +choke me +#else +gmtime_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gmtime_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gmtime_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gmtime_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for asctime_r""... $ac_c" 1>&6 +echo "configure:23167: checking for asctime_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_asctime_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23172 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char asctime_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char asctime_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_asctime_r) || defined (__stub___asctime_r) +choke me +#else +asctime_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_asctime_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_asctime_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'asctime_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for getprotobyname_r""... $ac_c" 1>&6 +echo "configure:23219: checking for getprotobyname_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getprotobyname_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23224 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getprotobyname_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getprotobyname_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getprotobyname_r) || defined (__stub___getprotobyname_r) +choke me +#else +getprotobyname_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getprotobyname_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getprotobyname_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getprotobyname_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for getprotobynumber_r""... $ac_c" 1>&6 +echo "configure:23271: checking for getprotobynumber_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getprotobynumber_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23276 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getprotobynumber_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getprotobynumber_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getprotobynumber_r) || defined (__stub___getprotobynumber_r) +choke me +#else +getprotobynumber_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getprotobynumber_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getprotobynumber_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getprotobynumber_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for gethostbyaddr_r""... $ac_c" 1>&6 +echo "configure:23323: checking for gethostbyaddr_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23328 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyaddr_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyaddr_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethostbyaddr_r) || defined (__stub___gethostbyaddr_r) +choke me +#else +gethostbyaddr_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyaddr_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyaddr_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyaddr_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 +echo "configure:23375: checking for gethostbyname_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23380 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyname_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) +choke me +#else +gethostbyname_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_gethostbyname_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_gethostbyname_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + + + echo $ac_n "checking for getservbyname_r""... $ac_c" 1>&6 +echo "configure:23427: checking for getservbyname_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_getservbyname_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23432 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char getservbyname_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char getservbyname_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) +choke me +#else +getservbyname_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_getservbyname_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_getservbyname_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'getservbyname_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +fi +echo $ac_n "checking for readdir_r""... $ac_c" 1>&6 +echo "configure:23479: checking for readdir_r" >&5 +if eval "test \"`echo '$''{'ac_cv_func_readdir_r'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23484 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char readdir_r(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We us + builtin and then its argument prototype would still apply. */ +char readdir_r(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_readdir_r) || defined (__stub___readdir_r) +choke me +#else +readdir_r(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_readdir_r=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_readdir_r=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'readdir_r`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_READDIR_R 1 +EOF + +fi + + +echo $ac_n "checking for seekdir""... $ac_c" 1>&6 +echo "configure:23535: checking for seekdir" >&5 +if eval "test \"`echo '$''{'ac_cv_func_seekdir'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23540 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char seekdir(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char seekdir(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_seekdir) || defined (__stub___seekdir) +choke me +#else +seekdir(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_seekdir=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_seekdir=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'seekdir`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SEEKDIR 1 +EOF + +fi + + +echo $ac_n "checking for telldir""... $ac_c" 1>&6 +echo "configure:23591: checking for telldir" >&5 +if eval "test \"`echo '$''{'ac_cv_func_telldir'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext <<EOF +#line 23596 "configure" +#include "confdefs.h" +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char telldir(); below. */ +#include <assert.h> +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char telldir(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_telldir) || defined (__stub___telldir) +choke me +#else +telldir(); +#endif + +; return 0; } +EOF +if { (eval echo configure:23622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_telldir=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_telldir=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'telldir`\" = yes"; then + echo "$ac_t""yes" 1>&6 + +else + echo "$ac_t""no" 1>&6 +cat >> confdefs.h <<\EOF +#define ACE_LACKS_TELLDIR 1 +EOF + +fi + + + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -error" + fi + + + if test "$ace_has_svr4_dynamic_linking" = yes; then + + echo $ac_n "checking if dlopen takes a char *""... $ac_c" 1>&6 +echo "configure:23659: checking if dlopen takes a char *" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_charptr_dl'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 23665 "configure" +#include "confdefs.h" + +#include <dlfcn.h> + +int main() { + + const char *filename = 0; + int flag = 0; + void *ptr = dlopen(filename, flag); + +; return 0; } +EOF +if { (eval echo configure:23678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_charptr_dl=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 23689 "configure" +#include "confdefs.h" + +#include <dlfcn.h> + +int main() { + + char *filename = 0; + int flag = 0; + void *ptr = dlopen(filename, flag); + +; return 0; } +EOF +if { (eval echo configure:23702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_charptr_dl=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_charptr_dl=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_charptr_dl" 1>&6 + if test "$ace_cv_lib_charptr_dl" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_CHARPTR_DL 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + fi + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + if test "$ac_cv_func_gethostbyaddr" = yes; then + + echo $ac_n "checking \"getby\" functions take a non-const char *""... $ac_c" 1>&6 +echo "configure:23751: checking \"getby\" functions take a non-const char *" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_nonconst_getby'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 23757 "configure" +#include "confdefs.h" + +#include <sys/socket.h> + +int main() { + + char *addr = 0; + int len = 0; + int type = 0; + struct hostent *mystruct = 0; + + mystruct = gethostbyaddr(name, len, type); + +; return 0; } +EOF +if { (eval echo configure:23773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_nonconst_getby=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_nonconst_getby=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_nonconst_getby" 1>&6 + if test "$ace_cv_lib_nonconst_getby" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_NONCONST_GETBY 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + fi + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + +if test "$ace_user_enable_exceptions" = yes; then + + echo $ac_n "checking if new throws bad_alloc exception on failure""... $ac_c" 1>&6 +echo "configure:23811: checking if new throws bad_alloc exception on failure" >&5 + if eval "test \"`echo '$''{'ace_cv_new_throws_bad_alloc_exception'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + if test "$cross_compiling" = yes; then + + ace_cv_new_throws_bad_alloc_exception=no + +else + cat > conftest.$ac_ext <<EOF +#line 23822 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif + +#if defined (ACE_HAS_NEW_NO_H) +# include <new> +#elif defined (ACE_HAS_NEW_H) +# include <new.h> +#endif + +#if defined (ACE_HAS_STDEXCEPT_NO_H) +# include <stdexcept> +#elif defined (ACE_HAS_EXCEPTION_H) +# include <exception.h> +#endif + + int main() { + while (1) { + try { + char *a = new char[1024*1024]; + if (a == 0) { + return 1; /* new() does NOT throw exceptions */ + } + } + + catch (bad_alloc) + { + return 0; /* new() does throw exceptions */ + } + }; + + return 1; /* ERROR: We shouldn't get this far! */ + } + +EOF +if { (eval echo configure:23859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + + ace_cv_new_throws_bad_alloc_exception=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + + ace_cv_new_throws_bad_alloc_exception=no + +fi +rm -fr conftest* +fi + + +fi + + echo "$ac_t""$ace_cv_new_throws_bad_alloc_exception" 1>&6 + if test "$ace_cv_new_throws_bad_alloc_exception" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_NEW_THROWS_EXCEPTIONS 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + if test "$ace_cv_new_throws_bad_alloc_exception" != yes; then + + echo $ac_n "checking if new throws xalloc exception on failure""... $ac_c" 1>&6 +echo "configure:23893: checking if new throws xalloc exception on failure" >&5 + if eval "test \"`echo '$''{'ace_cv_new_throws_xalloc_exception'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + if test "$cross_compiling" = yes; then + + ace_cv_new_throws_xalloc_exception=no + +else + cat > conftest.$ac_ext <<EOF +#line 23904 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif + +#if defined (ACE_HAS_NEW_NO_H) +# include <new> +#elif defined (ACE_HAS_NEW_H) +# include <new.h> +#endif + +#if defined (ACE_HAS_STDEXCEPT_NO_H) +# include <stdexcept> +#elif defined (ACE_HAS_EXCEPTION_H) +# include <exception.h> +#endif + + int main() { + while (1) { + try { + char *a = new char[1024*1024]; + if (a == 0) { + return 1; /* new() does NOT throw exceptions */ + } + } + + catch (xalloc) + { + return 0; /* new() does throw exceptions */ + } + }; + + return 1; /* ERROR: We shouldn't get this far! */ + } + +EOF +if { (eval echo configure:23941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + + ace_cv_new_throws_xalloc_exception=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + + ace_cv_new_throws_xalloc_exception=no + +fi +rm -fr conftest* +fi + + +fi + + echo "$ac_t""$ace_cv_new_throws_xalloc_exception" 1>&6 + if test "$ace_cv_new_throws_xalloc_exception" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_NEW_THROWS_EXCEPTIONS 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + fi fi + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + if test "$ac_cv_func_getmsg" = yes || + test "$ac_cv_header_stropts_h" = yes; then + + echo $ac_n "checking if putmsg takes a const struct strbuf*""... $ac_c" 1>&6 +echo "configure:23984: checking if putmsg takes a const struct strbuf*" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_const_strbufptr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 23990 "configure" +#include "confdefs.h" + +#include <stropts.h> + +int main() { + + int result = 0; + int fd = 0; + const struct strbuf * ace_str = 0; + int flags = 0; + + result = putmsg(fd, ace_str, ace_str, flags); + +; return 0; } +EOF +if { (eval echo configure:24006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_const_strbufptr=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_const_strbufptr=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_const_strbufptr" 1>&6 + if test "$ace_cv_lib_const_strbufptr" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_CONST_STRBUF_PTR 1 +EOF + + fi + + fi + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if select takes int instead of fd_set""... $ac_c" 1>&6 +echo "configure:24052: checking if select takes int instead of fd_set" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_select_takes_int'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24058 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#ifdef ACE_HAS_SELECT_H +# include <sys/select.h> +#endif + +int main() { + + int n; + fd_set* readfds = 0; + fd_set* writefds = 0; + fd_set* exceptfds = 0; + timeval* timeout = 0; + int result = 0; + + result = select(n, readfds, writefds, exceptfds, timeout); + +; return 0; } +EOF +if { (eval echo configure:24085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_select_takes_int=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 24096 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#ifdef ACE_HAS_SELECT_H +# include <sys/select.h> +#endif + +int main() { + + int n; + int* readfds = 0; + int* writefds = 0; + int* exceptfds = 0; + timeval* timeout = 0; + int result = 0; + + result = select(n, readfds, writefds, exceptfds, timeout); + +; return 0; } +EOF +if { (eval echo configure:24123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_select_takes_int=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_select_takes_int=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_select_takes_int" 1>&6 + if test "$ace_cv_lib_select_takes_int" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_SELECT_USES_INT 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + +echo $ac_n "checking if setrlimit() takes an enum as 1st parameter (a)""... $ac_c" 1>&6 +echo "configure:24163: checking if setrlimit() takes an enum as 1st parameter (a)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_posix_setrlimit_enum_1_a'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_lib_posix_setrlimit_enum_1_a=no + cat > conftest.$ac_ext <<EOF +#line 24170 "configure" +#include "confdefs.h" +#include <sys/resource.h> +int main() { +enum __rlimit_resource rsrc; + const struct rlimit* rlp; + setrlimit(rsrc, rlp); +; return 0; } +EOF +if { (eval echo configure:24179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_posix_setrlimit_enum_1_a=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_posix_setrlimit_enum_1_a" 1>&6 + +echo $ac_n "checking if setrlimit() takes an enum as 1st parameter (b)""... $ac_c" 1>&6 +echo "configure:24193: checking if setrlimit() takes an enum as 1st parameter (b)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_posix_setrlimit_enum_1_b'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_lib_posix_setrlimit_enum_1_b=no + cat > conftest.$ac_ext <<EOF +#line 24200 "configure" +#include "confdefs.h" +#include <sys/resource.h> +int main() { +enum __rlimit_resource rsrc; + struct rlimit* rlp; + setr +; return 0; } +EOF +if { (eval echo configure:24209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_posix_setrlimit_enum_1_b=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_posix_setrlimit_enum_1_b" 1>&6 + +if test "$ace_cv_lib_posix_setrlimit_enum_1_a" = yes || + test "$ace_cv_lib_posix_setrlimit_enum_1_b" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_RLIMIT_RESOURCE_ENUM enum __rlimit_resource +EOF + +fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +echo $ac_n "checking if setrlimit() takes a const pointer as 2nd parameter (a)""... $ac_c" 1>&6 +echo "configure:24240: checking if setrlimit() takes a const pointer as 2nd parameter (a)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_posix_setrlimit_const_2_a'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24246 "configure" +#include "confdefs.h" + +#include <sys/resource.h> + +int main() { + + int rsrc; + const struct rlimit* rlp; + setrlimit(rsrc, rlp); + +; return 0; } +EOF +if { (eval echo configure:24259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_setrlimit_const_2_a=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_setrlimit_const_2_a=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_posix_setrlimit_const_2_a" 1>&6 + +echo $ac_n "checking if setrlimit() takes a const pointer as 2nd parameter (b)""... $ac_c" 1>&6 +echo "configure:24279: checking if setrlimit() takes a const pointer as 2nd parameter (b)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_posix_setrlimit_const_2_b'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_lib_posix_setrlimit_const_2_b=no + cat > conftest.$ac_ext <<EOF +#line 24286 "configure" +#include "confdefs.h" +#include <sys/resource.h> +int main() { +enum __rlimit_resource rsrc; + const struct rlimit* rlp; + setrlimit(rsrc, rlp); +; return 0; } +EOF +if { (eval echo configure:24295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_posix_setrlimit_const_2_b=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_posix_setrlimit_const_2_b" 1>&6 + +if test "$ace_cv_lib_posix_setrlimit_const_2_a" != yes && + test "$ace_cv_lib_posix_setrlimit_const_2_b" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_SETRLIMIT 1 +EOF + +fi + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + +if test "$ac_cv_func_getrusage" = yes; then + + echo $ac_n "checking if getrusage() takes an enum as 1st parameter""... $ac_c" 1>&6 +echo "configure:24325: checking if getrusage() takes an enum as 1st parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_getrusage_enum_1'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24331 "configure" +#include "confdefs.h" + +#include <sys/resource.h> + +int main() { + + enum __rusage_who who; + struct rusage* rup; + getrusage(who, rup); + +; return 0; } +EOF +if { (eval echo configure:24344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_getrusage_enum_1=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_getrusage_enum_1=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_getrusage_enum_1" 1>&6 + if test "$ace_cv_lib_posix_getrusage_enum_1" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_RUSAGE_WHO_ENUM enum __rusage_who +EOF + + else + ace_just_a_place_holder=fixme + fi + +fi + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if select takes a const fifth parameter""... $ac_c" 1>&6 +echo "configure:24384: checking if select takes a const fifth parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_select_const_5'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24390 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#ifdef ACE_HAS_SELECT_H +# include <sys/select.h> +#endif + +int main() { + + int n; + fd_set *readfds; + fd_set *writefds; + fd_set *exceptfds; + const struct timeval* timeout = 0; + select(n, readfds, writefds, exceptfds, timeout); + +; return 0; } +EOF +if { (eval echo configure:24415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_select_const_5=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_select_const_5=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_select_const_5" 1>&6 + if test "$ace_cv_lib_posix_select_const_5" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_NONCONST_SELECT_TIMEVAL 1 +EOF + + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + +if test "$ace_cv_struct_msghdr" = yes && + test "$ac_cv_func_sendmsg" = yes; then + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if sendmsg omits the const from the second parameter""... $ac_c" 1>&6 +echo "configure:24463: checking if sendmsg omits the const from the second parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_broken_sendmsg'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24469 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + int s = 0; + const struct msghdr *msg = 0; + unsigned int flags = 0; + + int result = 0; + + result = (int) sendmsg(s, msg, flags); + +; return 0; } +EOF +if { (eval echo configure:24489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_broken_sendmsg=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_broken_sendmsg=yes + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_broken_sendmsg" 1>&6 + if test "$ace_cv_lib_broken_sendmsg" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_SENDMSG 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + fi +if test "$ac_cv_header_sys_uio_h" = yes && + test "$ac_cv_func_writev" = yes; then + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if writev omits the const from the iovec parameter""... $ac_c" 1>&6 +echo "configure:24536: checking if writev omits the const from the iovec parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_broken_writev'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24542 "configure" +#include "confdefs.h" + +#ifdef ACE_HAS_UNISTD_H +# include <unistd.h> +#endif + +#include <sys/uio.h> + +int main() { + + int filedes = 0; + const struct iovec *vector = 0; + size_t count = 0; + + int result = 0; + + result = (int) writev(filedes, vector, count); + +; return 0; } +EOF +if { (eval echo configure:24563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_broken_writev=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_broken_writev=yes + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_broken_writev" 1>&6 + if test "$ace_cv_lib_broken_writev" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_WRITEV 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + fi + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if socket size is denoted by size_t""... $ac_c" 1>&6 +echo "configure:24609: checking if socket size is denoted by size_t" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_socket_len_size_t'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24615 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + int s; + struct sockaddr* addr; + int* addrlen; + accept(s, addr, addrlen); + +; return 0; } +EOF +if { (eval echo configure:24632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_socket_len_size_t=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 24643 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + int s; + struct sockaddr* addr; + size_t* addrlen; + accept(s, addr, addrlen); + +; return 0; } +EOF +if { (eval echo configure:24660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_socket_len_size_t=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_socket_len_size_t=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_socket_len_size_t" 1>&6 + if test "$ace_cv_lib_posix_socket_len_size_t" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SIZET_SOCKET_LEN 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking for (struct sockaddr *) msg_name field""... $ac_c" 1>&6 +echo "configure:24708: checking for (struct sockaddr *) msg_name field" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_sockaddr_msg_name'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24714 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + msghdr ace_msghdr; + sockaddr name; + + ace_msghdr.msg_name = (struct sockaddr *)name; + +; return 0; } +EOF +if { (eval echo configure:24731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_sockaddr_msg_name=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_sockaddr_msg_name=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_sockaddr_msg_name" 1>&6 + if test "$ace_cv_lib_sockaddr_msg_name" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SOCKADDR_MSG_NAME 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if setsockopt() takes a char* fourth parameter""... $ac_c" 1>&6 +echo "configure:24777: checking if setsockopt() takes a char* fourth parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_setsockopt_charp_4'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24783 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + int s; + int level; + int optname; + char* optval; +#if defined(ACE_HAS_SIZET_SOCKET_LEN) + size_t* optlen; +#else + int* optlen; +#endif + setsockopt(s, level, optname, optval, optlen); + +; return 0; } +EOF +if { (eval echo configure:24806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_setsockopt_charp_4=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_setsockopt_charp_4=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_setsockopt_charp_4" 1>&6 + if test "$ace_cv_lib_posix_setsockopt_charp_4" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_CHARPTR_SOCKOPT 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if setsockopt() takes a void* fourth parameter""... $ac_c" 1>&6 +echo "configure:24851: checking if setsockopt() takes a void* fourth parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_setsockopt_voidp_4'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24857 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + int s; + int level; + int optname; + void* optval; +#if defined(ACE_HAS_SIZET_SOCKET_LEN) + size_t* optlen; +#else + int* optlen; +#endif + setsockopt(s, level, optname, optval, optlen); + +; return 0; } +EOF +if { (eval echo configure:24880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_setsockopt_voidp_4=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_setsockopt_voidp_4=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_setsockopt_voidp_4" 1>&6 + if test "$ace_cv_lib_posix_setsockopt_voidp_4" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_VOIDPTR_SOCKOPT 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if mmap() takes a void* first argument""... $ac_c" 1>&6 +echo "configure:24925: checking if mmap() takes a void* first argument" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_voidptr_mmap'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 24931 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#include <sys/mman.h> + +int main() { + + void *start; + size_t length; + int prot; + int flags; + int fd; + off_t offset; + + void *result = 0; + + result = (void *)mmap(start, length, prot, flags, fd, offset); + +; return 0; } +EOF +if { (eval echo configure:24957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_voidptr_mmap=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_voidptr_mmap=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_voidptr_mmap" 1>&6 + if test "$ace_cv_lib_posix_voidptr_mmap" = yes; then + ace_just_a_ +cat >> confdefs.h <<\EOF +#define ACE_HAS_VOIDPTR_MMAP 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + +if test "$ac_cv_func_msync" = yes; then + + echo $ac_n "checking if msync accepts a third "sync" argument""... $ac_c" 1>&6 +echo "configure:24995: checking if msync accepts a third "sync" argument" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_broken_msync'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25001 "configure" +#include "confdefs.h" + +#include <sys/mman.h> + +#if defined (ACE_HAS_VOIDPTR_MMAP) + /* Needed for some odd OS's (e.g., SGI). */ + typedef void *ACE_MMAP_TYPE; +#else + typedef char *ACE_MMAP_TYPE; +#endif /* ACE_HAS_VOIDPTR_MMAP */ + +int main() { + + ACE_MMAP_TYPE start = 0; + size_t length = 0; + int flags = MS_SYNC; + + int result; + + result = msync(start, length, flags); + +; return 0; } +EOF +if { (eval echo configure:25025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_broken_msync=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 25036 "configure" +#include "confdefs.h" + +#include <sys/mman.h> + +#if defined (ACE_HAS_VOIDPTR_MMAP) + /* Needed for some odd OS's (e.g., SGI). */ + typedef void *ACE_MMAP_TYPE; +#else + typedef char *ACE_MMAP_TYPE; +#endif /* ACE_HAS_VOIDPTR_MMAP */ + +int main() { + + ACE_MMAP_TYPE start = 0; + size_t length = 0; + + int result; + + result = msync(start, length); + +; return 0; } +EOF +if { (eval echo configure:25059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_broken_msync=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_broken_msync=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_broken_msync" 1>&6 + if test "$ace_cv_lib_broken_msync" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_NETBSD_MSYNC 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + +fi + + echo $ac_n "checking if platform has iostream method ipfx()""... $ac_c" 1>&6 +echo "configure:25093: checking if platform has iostream method ipfx()" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_iostream_ipfx'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25099 "configure" +#include "confdefs.h" + +#include <iostream.h> + +int main() { + + cin.ipfx(); + +; return 0; } +EOF +if { (eval echo configure:25110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_has_iostream_ipfx=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_iostream_ipfx=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_has_iostream_ipfx" 1>&6 + if test "$ace_cv_feature_has_iostream_ipfx" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_IOSTREAM_FX 1 +EOF + + fi + + + + echo $ac_n "checking if platform has line-buffered streambufs""... $ac_c" 1>&6 +echo "configure:25142: checking if platform has line-buffered streambufs" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_linebuffered_streambuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25148 "configure" +#include "confdefs.h" + +#include <iostream.h> + +int main() { + + cin.rdbuf()->linebuffered(1); + +; return 0; } +EOF +if { (eval echo configure:25159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_has_linebuffered_streambuf=yes + +else + echo "configure: faile program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_linebuffered_streambuf=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_has_linebuffered_streambuf" 1>&6 + if test "$ace_cv_feature_has_linebuffered_streambuf" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_LINEBUFFERED_STREAMBUF 1 +EOF + + fi + + + + echo $ac_n "checking if platform has unbuffered streambufs""... $ac_c" 1>&6 +echo "configure:25191: checking if platform has unbuffered streambufs" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_unbuffered_streambuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25197 "configure" +#include "confdefs.h" + +#include <iostream.h> + +int main() { + + cin.rdbuf()->unbuffered(1); + +; return 0; } +EOF +if { (eval echo configure:25208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_has_unbuffered_streambuf=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_has_unbuffered_streambuf=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_has_unbuffered_streambuf" 1>&6 + if test "$ace_cv_feature_has_unbuffered_streambuf" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_UNBUFFERED_STREAMBUF 1 +EOF + + fi + + +echo $ac_n "checking if signal takes a void (*)(int) as second parameter""... $ac_c" 1>&6 +echo "configure:25239: checking if signal takes a void (*)(int) as second parameter" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_vi1_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25245 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(int); + void handler(int) + { + } + +int main() { + + SA nn = handler; + signal(SIGINT, nn); + +; return 0; } +EOF +if { (eval echo configure:25261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_vi1_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_vi1_2=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_vi1_2" 1>&6 + +echo $ac_n "checking if signal takes a void (*)(void) as second parameter""... $ac_c" 1>&6 +echo "configure:25281: checking if signal takes a void (*)(void) as second parameter" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_vv1_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25287 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(void); + void handler(int) { } + +int main() { + + SA nn = handler; + signal(SIGINT, nn); + +; return 0; } +EOF +if { (eval echo configure:25301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_vv1_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_vv1_2=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_vv1_2" 1>&6 + +echo $ac_n "checking if signal takes a void (*)(int, ...) as second parameter""... $ac_c" 1>&6 +echo "configure:25321: checking if signal takes a void (*)(int, ...) as second parameter" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_vi1a2_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25327 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(int, ...); + void handler(int, ...) { } + +int main() { + + SA nn = handler; + signal(SIGINT, nn); + +; return 0; } +EOF +if { (eval echo configure:25341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_vi1a2_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_vi1a2_2=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_vi1a2_2" 1>&6 + +echo $ac_n "checking if signal takes a void (*)(...) as second parameter""... $ac_c" 1>&6 +echo "configure:25361: checking if signal takes a void (*)(...) as second parameter" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_va1_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25367 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(...); + void handler(...) { } + +int main() { + + SA nn = handler; + signal(SIGINT, nn); + +; return 0; } +EOF +if { (eval echo configure:25381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_va1_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_va1_2=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_va1_2" 1>&6 + +echo $ac_n "checking if signal returns a void (*)(int)""... $ac_c" 1>&6 +echo "configure:25401: checking if signal returns a void (*)(int)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_vi1_ret'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25407 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(int); + void foo(SA nn) { } + +int main() { + + SA nn = SIG_DFL; + nn = signal(SIGINT, 0); + foo(nn); + +; return 0; } +EOF +if { (eval echo configure:25422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_vi1_ret=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_vi1_ret=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_vi1_ret" 1>&6 + +echo $ac_n "checking if signal returns a void (*)(void)""... $ac_c" 1>&6 +echo "configure:25442: checking if signal returns a void (*)(void)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_vv1_ret'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25448 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(void); + void foo(SA nn) { } + +int main() { + + SA nn = SIG_DFL; + nn = signal(SIGINT, 0); + foo(nn); + +; return 0; } +EOF +if { (eval echo configure:25463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_vv1_ret=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_vv1_ret=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_vv1_ret" 1>&6 + +echo $ac_n "checking if signal returns a void (*)(int, ...)""... $ac_c" 1>&6 +echo "configure:25483: checking if signal returns a void (*)(int, ...)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_vi1a2_ret'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25489 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(int, ...); + +int main() { + + SA oo = signal(SIGINT, 0); + +; return 0; } +EOF +if { (eval echo configure:25501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_vi1a2_ret=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_vi1a2_ret=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_vi1a2_ret" 1>&6 + +echo $ac_n "checking if signal returns a void (*)(...)""... $ac_c" 1>&6 +echo "configure:25521: checking if signal returns a void (*)(...)" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_signal_va1_ret'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25527 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(...); + +int main() { + + SA oo = signal(SIGINT, 0); + +; return 0; } +EOF +if { (eval echo configure:25539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_signal_va1_ret=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_signal_va1_ret=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_signal_va1_ret" 1>&6 + +if test "$ace_cv_struct_sigaction" = yes; then + echo $ac_n "checking if struct sigaction takes a void (*)(int) handler""... $ac_c" 1>&6 +echo "configure:25560: checking if struct sigaction takes a void (*)(int) handler" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_struct_sigaction_vi1_handler'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25566 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(int); + void foo(struct sigaction* sa, SA nn) { } + +int main() { + + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + +; return 0; } +EOF +if { (eval echo configure:25582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_struct_sigaction_vi1_handler=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_struct_sigaction_vi1_handler=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_struct_sigaction_vi1_handler" 1>&6 + + echo $ac_n "checking if struct sigaction takes a void (*)(void) handler""... $ac_c" 1>&6 +echo "configure:25602: checking if struct sigaction takes a void (*)(void) handler" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_struct_sigaction_vv1_handler'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25608 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(void); + void foo(struct sigaction* sa, SA nn) { } + +int main() { + + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + +; return 0; } +EOF +if { (eval echo configure:25624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_struct_sigaction_vv1_handler=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_struct_sigaction_vv1_handler=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_struct_sigaction_vv1_handler" 1>&6 + + echo $ac_n "checking if struct sigaction takes a void (*)(int, ...) handler""... $ac_c" 1>&6 +echo "configure:25644: checking if struct sigaction takes a void (*)(int, ...) handler" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_struct_sigaction_vi1a2_handler'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25650 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(int, ...); + void foo(struct sigaction* sa, SA nn) { } + +int main() { + + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + +; return 0; } +EOF +if { (eval echo configure:25666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_struct_sigaction_vi1a2_handler=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_struct_sigaction_vi1a2_handler=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_struct_sigaction_vi1a2_handler" 1>&6 + + echo $ac_n "checking if struct sigaction takes a void (*)(...) handler""... $ac_c" 1>&6 +echo "configure:25686: checking if struct sigaction takes a void (*)(...) handler" >&5 +if eval "test + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25692 "configure" +#include "confdefs.h" + +#include <signal.h> + typedef void (*SA)(...); + void foo(struct sigaction* sa, SA nn) { } + +int main() { + + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + +; return 0; } +EOF +if { (eval echo configure:25708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_struct_sigaction_va1_handler=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_struct_sigaction_va1_handler=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_struct_sigaction_va1_handler" 1>&6 +fi + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if msgsnd() takes a struct msgbuf* second parameter""... $ac_c" 1>&6 +echo "configure:25737: checking if msgsnd() takes a struct msgbuf* second parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_msgsnd_msgbufp_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25743 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +#ifndef ACE_LACKS_SYSV_MSG_H +# include <sys/msg.h> +#endif + +int main() { + + int msqid; + struct msgbuf* msgp = 0; + int msgsz; + int msgflg; + msgsnd(msqid, msgp, msgsz, msgflg); + +; return 0; } +EOF +if { (eval echo configure:25764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_msgsnd_msgbufp_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_msgsnd_msgbufp_2=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_msgsnd_msgbufp_2" 1>&6 + if test "$ace_cv_lib_posix_msgsnd_msgbufp_2" = yes; then + ace_just_a_place_holder=fixme + + + else + ace_just_a_place_holder=fixme + + + echo $ac_n "checking if msgsnd() takes a const void* second parameter""... $ac_c" 1>&6 +echo "configure:25791: checking if msgsnd() takes a const void* second parameter" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_msgsnd_cvoidp_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25797 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +#ifndef ACE_LACKS_SYSV_MSG_H +# include <sys/msg.h> +#endif + +int main() { + + int msqid; + const void* msgp = 0; + int msgsz; + int msgflg; + msgsnd(msqid, msgp, msgsz, msgflg); + +; return 0; } +EOF +if { (eval echo configure:25818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_msgsnd_cvoidp_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_msgsnd_cvoidp_2=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_msgsnd_cvoidp_2" 1>&6 + if test "$ace_cv_lib_posix_msgsnd_cvoidp_2" = yes; then + ace_just_a_place_holder=fixme + + + else + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_NONCONST_MSGSND 1 +EOF + + + fi + + + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +echo $ac_n "checking if msgrcv() takes a void* second parameter""... $ac_c" 1>&6 +echo "configure:25869: checking if msgrcv() takes a void* second parameter" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_posix_msgrcv_voidp_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25875 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +#ifndef ACE_LACKS_SYSV_MSG_H +# include <sys/msg.h> +#endif + +int main() { + + int msqid; + void* msgp; + int msgsz; + long msgtyp; + int msgflg; + msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); + +; return 0; } +EOF +if { (eval echo configure:25897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_msgrcv_voidp_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_msgrcv_voidp_2=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_posix_msgrcv_voidp_2" 1>&6 + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +echo $ac_n "checking if shmat() takes a void* second parameter""... $ac_c" 1>&6 +echo "configure:25931: checking if shmat() takes a void* second parameter" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_posix_shmat_voidp_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25937 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +# include <sys/shm.h> + +int main() { +int shmid; + void* shmaddr; + int shmflg; + shmat(shmid, shmaddr, shmflg); + +; return 0; } +EOF +if { (eval echo configure:25954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_shmat_voidp_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_shmat_voidp_2=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_posix_shmat_voidp_2" 1>&6 + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +echo $ac_n "checking if sigaction() takes a const* second parameter""... $ac_c" 1>&6 +echo "configure:25988: checking if sigaction() takes a const* second parameter" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_posix_sigaction_constp_2'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 25994 "configure" +#include "confdefs.h" + +#include <signal.h> + +int main() { + + int signum; + const struct sigaction* act = 0; + struct sigaction* oldact; + sigaction(signum, act, oldact); + +; return 0; } +EOF +if { (eval echo configure:26008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_sigaction_constp_2=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_sigaction_constp_2=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_posix_sigaction_constp_2" 1>&6 + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + echo $ac_n "checking if wait() takes a (union wait *) rather than int *""... $ac_c" 1>&6 +echo "configure:26035: checking if wait() takes a (union wait *) rather than int *" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_wait_takes_union_wait_ptr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26041 "configure" +#include "confdefs.h" + +#include <sys/wait.h> + +int main() { + + int* status; + int result; + result=wait(status); + +; return 0; } +EOF +if { (eval echo configure:26054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_wait_takes_union_wait_ptr=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 26065 "configure" +#include "confdefs.h" + +#include <sys/wait.h> + +int main() { + + union wait* status; + int result; + result=wait(status); + +; return 0; } +EOF +if { (eval echo configure:26078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_wait_takes_union_wait_ptr=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_wait_takes_union_wait_ptr=no + echo "configure: warning: wait() doesn't seem to take either int* or union wait*" 1>&2 + echo "configure: warning: as an argument. Going to assume that int* will work." 1>&2 + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_wait_takes_union_wait_ptr" 1>&6 + if test "$ace_cv_lib_wait_takes_union_wait_ptr" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_UNION_WAIT 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + +echo $ac_n "checking if gettimeofday() takes a void * second argument""... $ac_c" 1>&6 +echo "configure:26121: checking if gettimeofday() takes a void * second argument" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_voidptr_gettimeofday'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26127 "configure" +#include "confdefs.h" + +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + +int main() { + + struct timeval *tv = 0; + void *tzp = 0; + + gettimeofday(tv, tzp); + +; return 0; } +EOF +if { (eval echo configure:26144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_voidptr_gettimeofday=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_voidptr_gettimeofday=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_voidptr_gettimeofday" 1>&6 + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + +if test "$ace_cv_lib_voidptr_gettimeofday" = no; then + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + echo $ac_n "checking if gettimeofday() takes a timzeone * second argument""... $ac_c" 1>&6 +echo "configure:26179: checking if gettimeofday() takes a timzeone * second argument" >&5 +if eval "test \"`echo '$''{'ace_cv_lib_timezone_gettimeofday'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26185 "configure" +#include "confdefs.h" + +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + +int main() { + + struct timeval *tv = 0; + struct timezone *tzp = 0; + + gettimeofday(tv, tzp); + +; return 0; } +EOF +if { (eval echo configure:26202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_timezone_gettimeofday=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_timezone_gettimeofday=no + +fi +rm -f conftest* + +fi + +echo "$ac_t""$ace_cv_lib_timezone_gettimeofday" 1>&6 + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + fi +if test "$ace_cv_lib_voidptr_gettimeofday" = yes || + test "$ace_cv_lib_timezone_gettimeofday" = yes; then + + echo $ac_n "checking for gettimeofday() protoype""... $ac_c" 1>&6 +echo "configure:26231: checking for gettimeofday() protoype" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_has_gettimeofday_prototype'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26237 "configure" +#include "confdefs.h" + +#include <time.h> + +#ifdef ACE_LACKS_SYSTIME_H +# include <sys/time.h> +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "gettimeofday" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_has_gettimeofday_prototype=yes + +else + rm -rf conftest* + + ace_cv_lib_has_gettimeofday_prototype=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_has_gettimeofday_prototype" 1>&6 + if test "$ace_cv_lib_has_gettimeofday_prototype" = yes; then + ace_just_a_place_holder=fixme + + if test "$ace_cv_lib_voidptr_gettimeofday" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SUNOS4_GETTIMEOFDAY 1 +EOF + + else + cat >> confdefs.h <<\EOF +#define ACE_HAS_TIMEZONE_GETTIMEOFDAY 1 +EOF + + fi + + else + ace_just_a_place_holder=fixme + + if test "$ace_cv_lib_voidptr_gettimeofday" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SVR4_GETTIMEOFDAY 1 +EOF + + else + cat >> confdefs.h <<\EOF +#define ACE_HAS_OSF1_GETTIMEOFDAY 1 +EOF + + fi + + fi + +fi + +if test "$ac_cv_func_ctime_r" = yes; then + + echo $ac_n "checking if ctime_r() takes two parameters""... $ac_c" 1>&6 +echo "configure:26302: checking if ctime_r() takes two parameters" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_ctime_r_2_params'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26308 "configure" +#include "confdefs.h" + +#ifndef _REENTRANT +# define _REENTRANT +#endif + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +int main() { + + const time_t *t ; + char *buf; + ctime_r(t, buf); + +; return 0; } +EOF +if { (eval echo configure:26329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_ctime_r_2_params=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_ctime_r_2_params=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_ctime_r_2_params" 1>&6 + if test "$ace_cv_lib_posix_ctime_r_2_params" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + +fi + + +if test "$ace_cv_struct_msghdr" = yes; then + + + echo $ac_n "checking if struct msghdr has a msg_accrights member""... $ac_c" 1>&6 +echo "configure:26364: checking if struct msghdr has a msg_accrights member" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_struct_msghdr_has_msg_accrights'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26370 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + msghdr mh; + mh.msg_accrights = 0; + +; return 0; } +EOF +if { (eval echo configure:26385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_struct_msghdr_has_msg_accrights=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_struct_msghdr_has_msg_accrights=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_struct_msghdr_has_msg_accrights" 1>&6 + if test "$ace_cv_lib_posix_struct_msghdr_has_msg_accrights" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if struct msghdr has a msg_accrights_len member""... $ac_c" 1>&6 +echo "configure:26413: checking if struct msghdr has a msg_accrights_len member" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26419 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +int main() { + + msghdr mh; + mh.msg_accrightslen = 0; + +; return 0; } +EOF +if { (eval echo configure:26434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_lib_posix_st + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len" 1>&6 + if test "$ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme + fi + + + if test "$ace_cv_lib_posix_struct_msghdr_has_msg_accrights" = no && + test "$ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len" = no; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_MSG_ACCRIGHTS 1 +EOF + + + echo $ac_n "checking for 4.4 BSD style struct msghdr""... $ac_c" 1>&6 +echo "configure:26468: checking for 4.4 BSD style struct msghdr" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_4_4bsd_msghdr'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26474 "configure" +#include "confdefs.h" +#include <sys/socket.h> +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "msg_control" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_4_4bsd_msghdr=yes + +else + rm -rf conftest* + + ace_cv_lib_4_4bsd_msghdr=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_4_4bsd_msghdr" 1>&6 + if test "$ace_cv_lib_4_4bsd_msghdr" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_4_4BSD_SENDMSG_RECVMSG 1 +EOF + + + else + ace_just_a_place_holder=fixme + + echo "configure: warning: No supported msghdr structure was found. ACE may not compile or function properly." 1>&2 + + fi + + fi + + if test "$ace_cv_lib_4_4bsd_msghdr" = yes; then + + echo $ac_n "checking if CMSG_DATA is defined""... $ac_c" 1>&6 +echo "configure:26516: checking if CMSG_DATA is defined" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_cmsg_data'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26522 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + +#if defined (CMSG_DATA) + ACE_CMSG_DATA_DEFINED +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_CMSG_DATA_DEFINED" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_lib_cmsg_data=yes + +else + rm -rf conftest* + + ace_cv_lib_cmsg_data=no + cat > conftest.$ac_ext <<EOF +#line 26547 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + +int main() { + + /* This is sloppy. Oh well. :) */ + unsigned char ace_cmsg_data[0]; + + cmsghdr ace_cmsg; + ace_cmsg.cmsg_data = ace_cmsg_data; + +; return 0; } +EOF +if { (eval echo configure:26566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 26576 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + +int main() { + + /* This is sloppy. Oh well. :) */ + unsigned char ace_cmsg_data[0]; + + cmsghdr ace_cmsg; + ace_cmsg.__cmsg_data = ace_cmsg_data; + +; return 0; } +EOF +if { (eval echo configure:26595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + { echo "configure: error: cmsgmdr member '__cmsg_data0' not supported by ACE's CMSG_DATA macro" 1>&2; exit 1; } + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 26606 "configure" +#include "confdefs.h" + +#ifdef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + +int main() { + + cmsghdr ace_cmsg; + +; return 0; } +EOF +if { (eval echo configure:26621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + if eval "test \"`echo '$''{'ace_cv_lib_cmsg_data_member'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ace_cv_lib_cmsg_data_member=no +fi + + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + { echo "configure: error: No supported cmsghdr structure exists. ACE cannot be built without one." 1>&2; exit 1; } + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_lib_cmsg_data" 1>&6 + if test "$ace_cv_lib_cmsg_data" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_LACKS_CMSG_DATA_MACRO 1 +EOF + + if test "$ace_cv_lib_cmsg_data_member"=no; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_CMSG_DATA_MEMBER 1 +EOF + + fi + + + fi + + fi +fi + +if test "$cross_compiling" != yes; then + echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6 +echo "configure:26679: checking for restartable system calls" >&5 +if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test "$cross_compiling" = yes; then + { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } +else + cat > conftest.$ac_ext <<EOF +#line 26687 "configure" +#include "confdefs.h" +#ifdef __cplusplus +extern "C" void exit(int); +#endif +/* Exit 0 (true) if wait returns something other than -1, + i.e. the pid of the child, which means that wait was restarted + after getting the signal. */ +#include <sys/types.h> +#include <signal.h> +ucatch (isig) { } +main () { + int i = fork (), status; + if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } + signal (SIGINT, ucatch); + status = wait(&i); + if (status == -1) wait(&i); + exit (status == -1); +} + +EOF +if { (eval echo configure:26708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +then + ac_cv_sys_restartable_syscalls=yes +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -fr conftest* + ac_cv_sys_restartable_syscalls=no +fi +rm -fr conftest* +fi + +fi + +echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6 +if test $ac_cv_sys_restartable_syscalls = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_RESTARTABLE_SYSCALLS 1 +EOF + +fi + + if test "$ac_cv_sys_restartable_syscalls" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SIGNAL_SAFE_OS_CALLS 1 +EOF + + fi +fi + + + echo $ac_n "checking if platform defines ctime() as a macro""... $ac_c" 1>&6 +echo "configure:26740: checking if platform defines ctime() as a macro" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_have_ctime_macro'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26746 "configure" +#include "confdefs.h" + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +#if defined (ctime) + ACE_CTIME_MACRO +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_CTIME_MACRO" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_have_ctime_macro=yes + +else + rm -rf conftest* + + ace_cv_feature_have_ctime_macro=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_have_ctime_macro" 1>&6 + if test "$ace_cv_feature_have_ctime_macro" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_CTIME 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform defines some reentrant functions as macros""... $ac_c" 1>&6 +echo "configure:26791: checking if platform defines some reentrant functions as macros" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_has_broken_r_routines'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26797 "configure" +#include "confdefs.h" + +#ifndef _REENTRANT +# define _REENTRANT +#endif + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +#if defined (HAVE_PWD_H) +# include <pwd.h> +#endif + +#if defined (ctime_r) || \ + defined (asctime_r) || \ + defined (rand_r) || \ + defined (getpwnam_r) + ACE_R_MACROS +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_R_MACROS" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_has_broken_r_routines=yes + +else + rm -rf conftest* + + ace_cv_feature_has_broken_r_routines=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_has_broken_r_routines" 1>&6 + if test "$ace_cv_feature_has_broken_r_routines" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_R_ROUTINES 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform defines sig{empty fill add del}set as macros""... $ac_c" 1>&6 +echo "configure:26853: checking if platform defines sig{empty fill add del}set as macros" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_have_sig_macros'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26859 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <signal.h> + +#if defined (sigemptyset) && \ + defined (sigfillset) && \ + defined (sigaddset) && \ + defined (sigdelset) && \ + defined (sigismember) + ACE_SIG_MACROS +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_SIG_MACROS" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_have_sig_macros=yes + +else + rm -rf conftest* + + ace_cv_feature_have_sig_macros=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_have_sig_macros" 1>&6 + if test "$ace_cv_feature_have_sig_macros" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_SIG_MACROS 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for open() mode masks""... $ac_c" 1>&6 +echo "configure:26907: checking for open() mode masks" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_have_open_mode_masks'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26913 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/stat.h> +#include <fcntl.h> + + /* These are ORed so that ACE will not redefine + any of them if any of them exist. */ +#if defined (S_IRWXU) || \ + defined (S_IRUSR) || \ + defined (S_IWUSR) || \ + defined (S_IXUSR) || \ + defined (S_IRWXG) || \ + defined (S_IRGRP) || \ + defined (S_IWGRP) || \ + defined (S_IXGRP) || \ + defined (S_IRWXO) || \ + defined (S_IROTH) || \ + defined (S_IWOTH) || \ + defined (S_IXOTH) + ACE_OPEN_MODE_MASKS_EXIST +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_OPEN_MODE_MASKS_EXIST" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_have_open_mode_masks=yes + +else + rm -rf conftest* + + ace_cv_feature_have_open_mode_masks=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_have_open_mode_masks" 1>&6 + if test "$ace_cv_feature_have_open_mode_masks" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_MODE_MASKS 1 +EOF + + fi + + + + + echo $ac_n "checking for POSIX O_NONBLOCK semantics""... $ac_c" 1>&6 +echo "configure:26973: checking for POSIX O_NONBLOCK semantics" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_posix_o_nonblock'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 26979 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/stat.h> +#include <fcntl.h> + +#if defined (O_NONBLOCK) + ACE_POSIX_O_NONBLOCK +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_POSIX_O_NONBLOCK" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_posix_o_nonblock=yes + +else + rm -rf conftest* + + ace_cv_feature_posix_o_nonblock=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_posix_o_nonblock" 1>&6 + if test "$ace_cv_feature_posix_o_nonblock" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_POSIX_NONBLOCK 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform defines MAP_FAILED as a long constant""... $ac_c" 1>&6 +echo "configure:27024: checking if platform defines MAP_FAILED as a long constant" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_long_map_failed'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 27030 "configure" +#include "confdefs.h" + +#include <sys/mman.h> + ACEMAPFAILED MAP_FAILED + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACEMAPFAILED.+[0-9]L" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_long_map_failed=yes + +else + rm -rf conftest* + + ace_cv_feature_long_map_failed=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_long_map_failed" 1>&6 + if test "$ace_cv_feature_long_map_failed" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_LONG_MAP_FAILED 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform supports SO_SNDBUF/SO_RCVBUF socket options""... $ac_c" 1>&6 +echo "configure:27068: checking if platform supports SO_SNDBUF/SO_RCVBUF socket options" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_so_sndbuf_rcvbuf'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 27074 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +#if defined (SO_SNDBUF) && \ + defined (SO_RCVBUF) + ACE_SO_BUF +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_SO_BUF" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_so_sndbuf_rcvbuf=yes + +else + rm -rf conftest* + + ace_cv_feature_so_sndbuf_rcvbuf=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_so_sndbuf_rcvbuf" 1>&6 + if test "$ace_cv_feature_so_sndbuf_rcvbuf" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_SOCKET_BUFSIZ 1 +EOF + + fi + + +if test "$ac_cv_header_dlfcn_h" = yes && + test "$ace_has_svr4_dynamic_linking" = yes; then + + echo $ac_n "checking if platform calls init/fini automatically""... $ac_c" 1>&6 +echo "configure:27122: checking if platform calls init/fini automatically" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_auto_init_fini'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_feature_auto_init_fini=yes + # TODO: We know how to check for this, but we need to: + # + # 1. Compile one file. + # 2. Compile and link another file. + # 3. Run file in point (2); it returns what we need. + # + # How do we do all that? + +fi + + echo "$ac_t""$ace_cv_feature_auto_init_fini" 1>&6 + if test "$ace_cv_feature_auto_init_fini" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_AUTOMATIC_INIT_FINI 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + +fi +if test "$ace_user_enable_threads" = yes; then + + echo $ac_n "checking for recursive thread exit semantics""... $ac_c" 1>&6 +echo "configure:27153: checking for recursive thread exit semantics" >&5 + if eval "test \"`echo '$''{ + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_feature_recursive_thr_exit=yes + # TODO: How do we check for recursive thread exit semantics + +fi + + echo "$ac_t""$ace_cv_feature_recursive_thr_exit" 1>&6 + if test "$ace_cv_feature_recursive_thr_exit" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + +fi + +if test "$ace_has_aio_funcs" = yes; then + + echo $ac_n "checking for asynchronous IO calls""... $ac_c" 1>&6 +echo "configure:27179: checking for asynchronous IO calls" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_aio_calls'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 27185 "configure" +#include "confdefs.h" + +#include <aio.h> + +int main() { + + aiocb* aiocb_ptr (void); + +; return 0; } +EOF +if { (eval echo configure:27196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_aio_calls=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_aio_calls=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_aio_calls" 1>&6 + if test "$ace_cv_feature_aio_calls" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_AIO_CALLS 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + +fi + + echo $ac_n "checking for UNIX domain sockets""... $ac_c" 1>&6 +echo "configure:27227: checking for UNIX domain sockets" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_unix_sockets'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 27233 "configure" +#include "confdefs.h" + +#include <sys/un.h> + +int main() { + + sockaddr_un su; + +; return 0; } +EOF +if { (eval echo configure:27244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_unix_sockets=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_unix_sockets=no + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_unix_sockets" 1>&6 + if test "$ace_cv_feature_unix_sockets" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_UNIX_DOMAIN_SOCKETS 1 +EOF + + fi + + + + echo $ac_n "checking for ACE_Handle_Set optimized for select()""... $ac_c" 1>&6 +echo "configure:27276: checking for ACE_Handle_Set optimized for select()" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_handle_set_optimized_for_select'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + ace_cv_feature_handle_set_optimized_for_select=yes + # TODO: We know how to check this. We need to: + # + # 1. Compile and link a file. + # 2. Run nm on that file. + # + # How do we do that? + +fi + + echo "$ac_t""$ace_cv_feature_handle_set_optimized_for_select" 1>&6 + if test "$ace_cv_feature_handle_set_optimized_for_select" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for IP multicast support""... $ac_c" 1>&6 +echo "configure:27305: checking for IP multicast support" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_ip_multicast'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 27311 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <netinet/in.h> + +int main() { + + ip_mreq im; + +; return 0; } +EOF +if { (eval echo configure:27325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_ip_multicast=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -r conftest* + + cat > conftest.$ac_ext <<EOF +#line 27336 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/netinet/in.h> + +int main() { + + ip_mreq im; + +; return 0; } +EOF +if { (eval echo configure:27350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_ip_multicast=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_ip_multicast=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_ip_multicast" 1>&6 + if test "$ace_cv_feature_ip_multicast" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_IP_MULTICAST 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform runs on an Alpha""... $ac_c" 1>&6 +echo "configure:27384: checking if platform runs on an Alpha" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_alpha'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + case "$target" in + alpha*) + ace_cv_feature_alpha=yes + ;; + *) + ace_cv_feature_alpha=no + ;; + esac + +fi + + echo "$ac_t""$ace_cv_feature_alpha" 1>&6 + if test "$ace_cv_feature_alpha" = yes; then + ace_just_a_place_holder=fixme + + case "$target" in + *linux*) + if test -n "$GXX"; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_ALPHA_TIMER 1 +EOF + + fi + ;; + esac + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform runs on a Power PC""... $ac_c" 1>&6 +echo "configure:27422: checking if platform runs on a Power PC" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_powerpc'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + case "$target" in + powerpc*) + ace_cv_feature_powerpc=yes + ;; + *) + ace_cv_feature_powerpc=no + ;; + esac + +fi + + echo "$ac_t""$ace_cv_feature_powerpc" 1>&6 + if test "$ace_cv_feature_powerpc" = yes; then + ace_just_a_place_holder=fixme + + case "$target" in + *aix*) + ;; + *) + if test -n "$GXX"; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_POWERPC_TIMER 1 +EOF + + fi + ;; + esac + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking if platform runs on a Pentium(tm) processor""... $ac_c" 1>&6 +echo "configure:27462: checking if platform runs on a Pentium(tm) processor" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_pentium'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + case "$target" in + i386-* | i486-* |i586-* | i686-*) + ace_cv_feature_pentium=yes + ;; + *) + ace_cv_feature_pentium=no + ;; + esac + +fi + + echo "$ac_t""$ace_cv_feature_pentium" 1>&6 + if test "$ace_cv_feature_pentium" = yes; then + ace_just_a_place_holder=fixme + + cat >> confdefs.h <<\EOF +#define ACE_HAS_PENTIUM 1 +EOF + + + else + ace_just_a_place_holder=fixme + fi + + + +if test X$ace_cv_feature_pentium = Xyes; then + ACE_ON_PENTIUM_TRUE= + ACE_ON_PENTIUM_FALSE='#' +else + ACE_ON_PENTIUM_TRUE='#' + ACE_ON_PENTIUM_FALSE= +fi + + + TEMPCXXFLAGS="" + if test -n "$GXX"; then + TEMPCXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -Werror" + fi + + + + echo $ac_n "checking if platform requires _GNU_SOURCE for getpgid definition""... $ac_c" 1>&6 +echo "configure:27511: checking if platform requires _GNU_SOURCE for getpgid definition" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_gnu_source'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 27517 "configure" +#include "confdefs.h" + +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + +int main() { + + int id = getpgid(0); + +; return 0; } +EOF +if { (eval echo configure:27530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_gnu_source=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + cat > conftest.$ac_ext <<EOF +#line 27541 "configure" +#include "confdefs.h" + +#define _GNU_SOURCE +/* #define _GNU_SOURCE_EXTENDED */ +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + +int main() { + + int id = getpgid(0); + +; return 0; } +EOF +if { (eval echo configure:27556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + + ace_cv_feature_gnu_source=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + ace_cv_feature_gnu_source=no + +fi +rm -f conftest* + +fi +rm -f conftest* + +fi + + echo "$ac_t""$ace_cv_feature_gnu_source" 1>&6 + if test "$ace_cv_feature_gnu_source" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define _GNU_SOURCE 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + if test -n "$TEMPCXXFLAGS"; then + CXXFLAGS="$TEMPCXXFLAGS" + fi + + + + echo $ac_n "checking if platform only supports SCHED_OTHER scheduling policy""... $ac_c" 1>&6 +echo "configure:27596: checking if platform only supports SCHED_OTHER scheduling policy" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_only_have_sched_other'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + cat > conftest.$ac_ext <<EOF +#line 27602 "configure" +#include "confdefs.h" + +#ifdef ACE_HAS_PTHREADS +# include <pthread.h> +#elif defined (ACE_HAS_STHREADS) +# include <thread.h> +#endif + +#if defined (ACE_LACKS_SCHED_H) +# include <sched.h> +#endif + + /* These are ORed so that ACE will not redefine + any of them if any of them exist. */ +#if !defined (SCHED_FIFO) && \ + !defined (SCHED_RR) + WE_ONLY_HAVE_SCHED_OTHER +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "WE_ONLY_HAVE_SCHED_OTHER" >/dev/null 2>&1; then + rm -rf conftest* + + ace_cv_feature_only_have_sched_other=yes + +else + rm -rf conftest* + + ace_cv_feature_only_have_sched_other=no + +fi +rm -f conftest* + + +fi + + echo "$ac_t""$ace_cv_feature_only_have_sched_other" 1>&6 + if test "$ace_cv_feature_only_have_sched_other" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_ONLY_SCHED_OTHER 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + + +if test "$ace_user_enable_reentrant_funcs" = yes && + test "$ac_cv_func_rand_r" = yes && + test "$ac_cv_func_strtok_r" = yes && + test "$ac_cv_func_ctime_r" = yes && + test "$ac_cv_func_localtime_r" = yes && + test "$ac_cv_func_gmtime_r" = yes && + test "$ac_cv_func_asctime_r" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_REENTRANT_FUNCTIONS 1 +EOF + +fi + +if test "$ace_user_enable_reentrant_funcs" = no || + test "$ac_cv_func_getprotobyname_r" = no || + test "$ac_cv_func_getprotobynumber_r" = no || + test "$ac_cv_func_gethostbyaddr_r" = no || + test "$ac_cv_func_gethostbyname_r" = no || + test "$ac_cv_func_getservbyname_r" = no; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS 1 +EOF + +fi + +case "$target" in + *linux*) cat >> confdefs.h <<\EOF +#define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS 1 +EOF +;; + *) ;; +esac + + + +if test "$ace_cv_lib_posix_msgsnd_msgbufp_2" = yes || + test "$ace_cv_lib_posix_msgrcv_voidp_2" != yes || + test "$ace_cv_lib_posix_shmat_voidp_2" != yes || + test "$ace_cv_lib_posix_sigaction_constp_2" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_SOME_POSIX_PROTOTYPES 1 +EOF + +fi + +if test "$ac_cv_func_msgctl" = yes && + test "$ac_cv_func_msgget" = yes && + test "$ac_cv_func_msgrcv" = yes && + test "$ac_cv_func_semctl" = yes && + test "$ac_cv_func_semget" = yes && + test "$ac_cv_func_semop" = yes && + test "$ac_cv_func_shmat" = yes && + test "$ac_cv_func_shmctl" = yes && + test "$ac_cv_func_shmdt" = yes && + test "$ac_cv_func_shmget" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SYSV_IPC 1 +EOF + +fi + +if test "$ac_cv_func_shmat" != yes || + test "$ac_cv_func_shmctl" != yes || + test "$ac_cv_func_shmdt" != yes || + test "$ac_cv_func_shmget" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_LACKS_SYSV_SHMEM 1 +EOF + +fi + +echo $ac_n "checking which POSIX thread library was found""... $ac_c" 1>&6 +echo "configure:27727: checking which POSIX thread library was found" >&5 + +ace_has_pthreads=no + +if test "$ac_cv_func_pthread_mutexattr_create" = yes && + test "$ac_cv_func_pthread_mutexattr_delete" = yes && + test "$ac_cv_func_pthread_condattr_delete" = yes && + test "$ac_cv_func_pthread_condattr_create" = yes && + test "$ac_cv_func_pthread_setprio" = yes && + test "$ac_cv_func_pthread_getprio" = yes && + test "$ac_cv_func_pthread_setcancel" = yes && + test "$ac_cv_func_pthread_setasynccancel" = yes && + test "$ac_cv_func_pthread_kill" = yes; then + ace_has_pthreads=yes + echo "$ac_t""POSIX Threads Draft 4" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS_DRAFT4 1 +EOF + +elif test "$ac_cv_func_pthread_mutexattr_init" = yes && + test "$ac_cv_func_pthread_mutexattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_init" = yes && + test "$ac_cv_func_pthread_attr_setprio" = yes && + test "$ac_cv_func_pthread_attr_getprio" = yes && + test "$ac_cv_func_pthread_setintr" = yes && + test "$ac_cv_func_pthread_setintrtype" = yes; then + ace_has_pthreads=yes + echo "$ac_t""POSIX Threads Draft 6" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS_DRAFT6 1 +EOF + +elif test "$ac_cv_func_pthread_mutexattr_init" = yes && + test "$ac_cv_func_pthread_mutexattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_init" = yes && + test "$ac_cv_func_pthread_setschedparam" = yes && + test "$ac_cv_func_pthread_getschedparam" = yes && + test "$ac_cv_func_pthread_setcancelstate" = yes && + test "$ac_cv_func_pthread_setcanceltype" = yes && + test "$ace_has_sched_yield" != yes; then + ace_has_pthreads=yes + echo "$ac_t""POSIX Threads Draft 7" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS_DRAFT7 1 +EOF + +elif test "$ac_cv_func_pthread_mutexattr_init" = yes && + test "$ac_cv_func_pthread_mutexattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_init" = yes && + test "$ac_cv_func_pthread_setschedparam" = yes && + test "$ac_cv_func_pthread_getschedparam" = yes && + test "$ac_cv_func_pthread_setcancelstate" = yes && + test "$ac_cv_func_pthread_setcanceltype" = yes && + test "$ace_has_sched_yield" = yes; then + ace_has_pthreads=yes + echo "$ac_t""POSIX Threads Draft Standard" 1>&6 + cat >> confdefs.h <<\EOF +#define ACE_HAS_PTHREADS_STD 1 +EOF + +else + ace_has_pthreads=no + echo "$ac_t""none" 1>&6 +fi +echo $ac_n "checking if a UNIX International thread library was found""... $ac_c" 1>&6 +echo "configure:27795: checking if a UNIX International thread library was found" >&5 +if test "$ace_has_sthreads" = yes; then + echo "$ac_t""yes" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +if test "$ace_user_enable_threads" != yes || + test "$ace_has_pthreads" != yes && + test "$ace_has_sthreads" != yes; then + ace_user_enable_threads=no + echo "configure: warning: It appears that you do NOT have any usable thread libraries" 1>&2 + echo "configure: warning: or thread support was explicitly disabled." 1>&2 + echo "configure: warning: Disabling thread support." 1>&2 + if test "$ac_cv_func_readdir_r" = yes; then + echo "configure: warning: Disabling support for readdir_r() since thread support" 1>&2 + echo "configure: warning: is being disabled." 1>&2 + cat >> confdefs.h <<\EOF +#define ACE_LACKS_READDIR_R 1 +EOF + + fi fi +if test "$ace_user_enable_threads" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_THREADS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_MT_SAFE 1 +EOF + + cat >> confdefs.h <<\EOF +#define _REENTRANT 1 +EOF + + if test "$ace_has_pthreads" = yes && + test "$ace_has_sthreads" != yes; then + cat >> confdefs.h <<\EOF +#define _POSIX_THREADS 1 +EOF + + cat >> confdefs.h <<\EOF +#define _POSIX_THREAD_SAFE_FUNCTIONS 1 +EOF + + cat >> confdefs.h <<\EOF + +EOF + + fi fi + +if test "$ac_cv_header_libc_h" != yes || + test "$ac_cv_header_osfcn_h" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_CPLUSPLUS_HEADERS 1 +EOF + +fi + + + +if test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES 1 +EOF + +elif test "$ace_cv_lib_signal_vi1_2" != yes && + test "$ace_cv_lib_signal_vv1_2" != yes && + test "$ace_cv_lib_signal_vi1a2_2" != yes && + test "$ace_cv_lib_signal_va1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" != yes && + test "$ace_cv_lib_signal_vv1_ret" != yes && + test "$ace_cv_lib_signal_vi1a2_ret" != yes && + test "$ace_cv_lib_signal_va1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vv1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vi1a2_handler" != yes && + test "$ace_cv_lib_struct_sigaction_va1_handler" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_LYNXOS_SIGNALS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_TANDEM_SIGNALS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_IRIX_53_SIGNALS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_SUNOS4_SIGNAL_T 1 +EOF + +elif test "$ace_cv_lib_signal_vi1a2_2" = yes && + test "$ace_cv_lib_signal_vi1a2_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1a2_handler" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SPARCWORKS_401_SIGNALS 1 +EOF + +elif test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" != yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SVR4_SIGNAL_T 1 +EOF + +elif test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vv1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vv1_handler" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_SVR4_SIGNAL_T 1 +EOF + +elif test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" != yes && + test "$ace_cv_lib_signal_vv1_ret" != yes && + test "$ace_cv_lib_signal_vi1a2_ret" != yes && + test "$ace_cv_lib_signal_va1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vv1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vi1a2_handler" != yes && + test "$ace_cv_lib_struct_sigaction_va1_handler" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_UNIXWARE_SVR4_SIGNAL_T 1 +EOF + +fi + + +case "$target" in + *aix3*) + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000) +EOF + + ;; + *aix4.1*) + cat >> confdefs.h <<\EOF +#define AIX 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_AIX_BROKEN_SOCKET_HEADER 1 +EOF + + ;; + *aix4.2*) + cat >> confdefs.h <<\EOF +#define AIX 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TLI_TCP_DEVICE "/dev/xti/tcp" +EOF + + ;; + *cray*) + ;; + *dgux4.11*) + cat >> confdefs.h <<\EOF +#define ACE_DGUX 1 +EOF + + cat >> confdefs.h <<\EOF +#define IP_ADD_MEMBERSHIP 0x13 +EOF + + cat >> confdefs.h <<\EOF +#define IP_DROP_MEMBERSHIP 0x14 +EOF + + ;; + *dgux4*) + cat >> confdefs.h <<\EOF +#define ACE_DGUX 1 +EOF + + cat >> confdefs.h <<\EOF +#define IP_ADD_MEMBERSHIP 0x13 +EOF + + cat >> confdefs.h <<\EOF +#define IP_DROP_MEMBERSHIP 0x14 +EOF + + ;; + *freebsd*) + ;; + *fsu*) + cat >> confdefs.h <<\EOF +#define PTHREAD_STACK_MIN (1024*10) +EOF + + ;; + *hpux9*) + cat >> confdefs.h <<\EOF +#define HPUX 1 +EOF + + ;; + *hpux10*) + cat >> confdefs.h <<\EOF +#define HPUX 1 +EOF + + cat >> confdefs.h <<\EOF +#define HPUX_10 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TLI_TCP_DEVICE "/dev/inet_cots" +EOF + + ;; + *hpux11*) + cat >> confdefs.h <<\EOF +#define HPUX 1 +EOF + + cat >> condefs.h <<\EOF +#define HPUX_11 1 +EOF + + cat > conftest.$ac_ext <<EOF +#line 28035 "configure" +#include "confdefs.h" + +#ifdef __LP64__ + ACE_ON_64BIT_HP +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_ON_64BIT_HP" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x0000001100000000) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDRL ((char *) 0x0000001100000000) +EOF + + +else + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000) +EOF + + +fi +rm -f conftest* + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + ;; + *irix5.2*) + cat >> confdefs.h <<\EOF +#define IRIX5 1 +EOF + + ;; + *irix5.3*) + cat >> confdefs.h <<\EOF +#define IRIX5 1 +EOF + + ;; + *irix6*) + cat >> confdefs.h <<\EOF +#define IRIX6 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_IRIX62_THREADS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) (1024U * 1024 * 1024)) +EOF + + if test "$ace_user_enable_threads" = yes; then + cat >> confdefs.h <<\EOF +#define ACE_HAS_IRIX62_THREADS 1 +EOF + + fi + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + ;; + *linux*) + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_MAX_SOCKET_BUFSIZ 65535 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_SELECT_REACTOR_SIZE 256 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_BIG_FD_SET 1 +EOF + cat >> confdefs.h <<\EOF +#define ACE_UINT64_FORMAT_SPECIFIER "%Lu" +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + ;; + *lynxos*) + cat >> confdefs.h <<\EOF +#define ACE_MALLOC_ALIGN 8 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_MAP_PRIVATE ACE_MAP_SHARED +EOF + + cat >> confdefs.h <<\EOF +#define ACE_USE_RCSID 0 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_LYNXOS_SIGNALS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + ;; + *m88k*) + cat >> confdefs.h <<\EOF +#define m88k 1 +EOF + + cat >> confdefs.h <<\EOF +#define __m88k__ 1 +EOF + + cat >> confdefs.h <<\EOF +#define IP_ADD_MEMBERSHIP 0x13 +EOF + + cat >> confdefs.h <<\EOF +#define IP_DROP_MEMBERSHIP 0x14 +EOF + + ;; + *mvs*) + ;; + *netbsd*) + cat >> confdefs.h <<\EOF +#define ACE_NETBSD 1 +EOF + + ;; + *osf3.2*) + cat > conftest.$ac_ext <<EOF +#line 28183 "configure" +#include "confdefs.h" + +#if defined(__DECCXX) + ACE_DEC_CXX +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_DEC_CXX" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define DEC_CXX 1 +EOF + + +fi +rm -f conftest* + + ;; + *osf4.0*) + cat > conftest.$ac_ext <<EOF +#line 28206 "configure" +#include "confdefs.h" + +#if defined(__DECCXX) + ACE_DEC_CXX +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_DEC_CXX" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define DEC_CXX 1 +EOF + + +fi +rm -f conftest* + + cat > conftest.$ac_ext <<EOF +#line 28227 "configure" +#include "confdefs.h" + + /* Include unistd.h to define _POSIX_C_SOURCE. */ +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + +#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 199506L) + ACE_ON_DEC_WITH_POS_SRC +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_ON_DEC_WITH_POS_SRC" >/dev/null 2>&1; then + rm -rf conftest* + + cat >> confdefs.h <<\EOF +#define DIGITAL_UNIX 1 +EOF + + +fi +rm -f conftest* + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_BASE_ADDR ((char *) 0x80000000) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_NEEDS_HUGE_THREAD_STACKSIZE (1024 * 1024) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + ;; + *psos*) + cat >> confdefs.h <<\EOF +#define ACE_PSOS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_PSOSIM 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_PSOSTBD 1 +EOF + + cat > conftest.$ac_ext <<EOF +#line 28279 "configure" +#include "confdefs.h" + +#if defined (ACE_HAS_TSS_EMULATION) + ACE_TSS_EMULATION +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_TSS_EMULATION" >/dev/null 2>&1; then + rm -rf conftest* + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_THREAD_KEYS 256 +EOF + +fi +rm -f conftest* + + cat >> confdefs.h <<\EOF +#define ACE_MAIN extern "C" void root +EOF + + cat >> confdefs.h <<\EOF +#define ACE_MALLOC_ALIGN 8 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_USE_RCSID 0 +EOF + + ;; + *sco4.2*) + cat >> confdefs.h <<\EOF +#define SCO 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_CLOSE_ALL_HANDLES 0 +EOF + + ;; + *sco5*) + cat >> confdefs.h <<\EOF +#define SCO 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_CLOSE_ALL_HANDLES 0 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_HAS_BIG_FD_SET 1 +EOF + ;; + *sunos4*) + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + ;; + *solaris2.4*) + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_NEEDS_LWP_PRIO_SET 1 +EOF + + ;; + *solaris2.5*) + cat >> confdefs.h <<\EOF +#define ACE_MALLOC_ALIGN 8 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_NEEDS_LWP_PRIO_SET 1 +EOF + + ;; + *solaris2.6*) + cat >> confdefs.h <<\EOF +#define ACE_MALLOC_ALIGN 8 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_NEEDS_LWP_PRIO_SET 1 +EOF + + ;; + *solaris2.7*) + cat >> confdefs.h <<\EOF +#define ACE_MALLOC_ALIGN 8 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_NEEDS_LWP_PRIO_SET 1 +EOF + + ;; + *86*solaris*) + cat >> confdefs.h <<\EOF +#define ACE_HAS_X86_STAT_MACROS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + cat >> confdefs.h <<\EOF +#define ACE_NEEDS_LWP_PRIO_SET 1 +EOF + + ;; + *tandem*) + cat >> confdefs.h <<\EOF +#define ACE_TIMER_SKEW (1000 * 10) +EOF + + ;; + *unixware2.0*) + cat >> confdefs.h <<\EOF +#define UNIXWARE 1 +EOF + + cat >> confdefs.h <<\EOF +#define UNIXWARE_2_0 1 +EOF + + ;; + *unixware2.1*) + cat >> confdefs.h <<\EOF +#define UNIXWARE 1 +EOF + + cat >> confdefs.h <<\EOF +#define UNIXWARE_2_1 1 +EOF + + ;; + *vxworks*) + cat >> confdefs.h <<\EOF +#define VXWORKS 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_MAIN ace_main +EOF + + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_MAX_SOCKET_BUFSIZ 32768 +EOF + + cat > conftest.$ac_ext <<EOF +#line 28445 "configure" +#include "confdefs.h" + +#if defined (ACE_HAS_TSS_EMULATION) + ACE_TSS_EMULATION +#endif + +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "ACE_TSS_EMULATION" >/dev/null 2>&1; then + rm -rf conftest* + cat >> confdefs.h <<\EOF +#define ACE_DEFAULT_THREAD_KEYS 16 +EOF + +fi +rm -f conftest* + + cat >> confdefs.h <<\EOF +#define ACE_THR_PRI_FIFO_DEF 101 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_USE_RCSID 0 +EOF + + ;; + *cygwin32*) + ;; + *win32*) + cat >> confdefs.h <<\EOF +#define ACE_WIN32 1 +EOF + + cat >> confdefs.h <<\EOF +#define ACE_UINT64_FORMAT_SPECIFIER "%I64u" +EOF + + if test "$ace_u_long_long_typedef_set" != yes; then + ACE_UINT64="unsigned __int64" + ace_u_long_long_typedef_set=yes + fi ;; + *) + ;; +esac + +if test "$ace_u_long_long_typedef_set" = yes; then + cat >> confdefs.h <<EOF +#define ACE_UINT64_TYPEDEF $ACE_UINT64 +EOF + +fi + + +if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -Wall -Wpointer-arith" + if test "$ace_user_enable_repo" = no; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -fno-implicit-templates" + fi +fi + +if test -n "$GCC"; then + ACE_CFLAGS="$ACE_CFLAGS -Wall -Wpointer-arith" +fi + +if test "$ace_user_enable_optimize"; then + CXXFLAGS="$CXXFLAGS $OCXXFLAGS" + CFLAGS="$CFLAGS $OCFLAGS" +fi +CXXFLAGS="$ACE_CXXFLAGS $X_CFLAGS $CXXFLAGS" +CXXCPPFLAGS="$ACE_CXXCPPFLAGS $CXXCPPFLAGS" +CFLAGS="$ACE_CFLAGS $X_CFLAGS $CFLAGS" +CPPFLAGS="$ACE_CPPFLAGS $CPPFLAGS" +LDFLAGS="$ACE_LDFLAGS $LDFLAGS" + + + + echo $ac_n "checking for ACE iostream support""... $ac_c" 1>&6 +echo "configure:28523: checking for ACE iostream support" >&5 + if eval "test \"`echo '$''{'ace_cv_feature_ace_iostream'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + if test -f ${srcdir}/ace/config.h; then + mv ${srcdir}/ace/config.h ${srcdir}/ace/config.h.conf + fi + + touch ${srcdir}/ace/config.h + + + + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -I. -I${srcdir}" + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -I. -I${srcdir}" + + cat > conftest.$ac_ext <<EOF +#line 28544 "configure" +#include "confdefs.h" +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#include "ace/IOStream.cpp" + +int main() { +int a=0; a += 1; + +; return 0; } +EOF +if { (eval echo configure:28557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_feature_ace_iostream=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_cv_feature_ace_iostream=no + +fi +rm -f conftest* + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + + + + if test -f ${srcdir}/ace/config.h.conf; then + mv ${srcdir}/ace/config.h.conf ${srcdir}/ace/config.h + else + rm ${srcdir}/ace/config.h + fi + + +fi + + echo "$ac_t""$ace_cv_feature_ace_iostream" 1>&6 + if test "$ace_cv_feature_ace_iostream" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_LACKS_ACE_IOSTREAM 1 +EOF + + fi + + + + echo $ac_n "checking if ACE needs minimum iostream header inclusion""... $ac_c" 1>&6 +echo "configure:28600: checking if ACE needs minimum iostream header inclusion" >&5 + if eval "test \"`echo '$''{'ace_cv_lib_minimum_iostream'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + if test -f ${srcdir}/ace/config.h; then + mv ${srcdir}/ace/config.h ${srcdir}/ace/config.h.conf + fi + + touch ${srcdir}/ace/config.h + + + + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -I. -I${srcdir}" + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -I. -I${srcdir}" + + cat > conftest.$ac_ext <<EOF +#line 28621 "configure" +#include "confdefs.h" +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#include "ace/OS.cpp" + +int main() { +int a=0; a += 1; + +; return 0; } +EOF +if { (eval echo configure:28634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_minimum_iostream=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -I. -I${srcdir}" + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -I. -I${srcdir}" + + cat > conftest.$ac_ext <<EOF +#line 28650 "configure" +#include "confdefs.h" +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#define ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION +#include "ace/OS.cpp" + +int main() { +int a=0; a += 1; + +; return 0; } +EOF +if { (eval echo configure:28664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_minimum_iostream=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_cv_lib_minimum_iostream=no + +fi +rm -f conftest* + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + + +fi +rm -f conftest* + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + + + + if test -f ${srcdir}/ace/config.h.conf; then + mv ${srcdir}/ace/config.h.conf ${srcdir}/ace/config.h + else + rm ${srcdir}/ace/config.h + fi + + +fi + + echo "$ac_t""$ace_cv_lib_minimum_iostream" 1>&6 + if test "$ace_cv_lib_minimum_iostream" = yes; then + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION 1 +EOF + + else + ace_just_a_place_holder=fixme + fi + + + + echo $ac_n "checking for ACE_addr::sap_any support""... $ac_c" 1>&6 +ech + if eval "test \"`echo '$''{'ace_cv_lib_sap_any_support'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + + + if test -f ${srcdir}/ace/config.h; then + mv ${srcdir}/ace/config.h ${srcdir}/ace/config.h.conf + fi + + touch ${srcdir}/ace/config.h + + + + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -I. -I${srcdir}" + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -I. -I${srcdir}" + + cat > conftest.$ac_ext <<EOF +#line 28735 "configure" +#include "confdefs.h" +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#include "ace/Addr.cpp" + +int main() { +int a=0; a += 1; + +; return 0; } +EOF +if { (eval echo configure:28748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_sap_any_support=yes + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + + save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -I. -I${srcdir}" + + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -I. -I${srcdir}" + + cat > conftest.$ac_ext <<EOF +#line 28764 "configure" +#include "confdefs.h" +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#define ACE_HAS_BROKEN_SAP_ANY +#include "ace/Addr.cpp" + +int main() { +int a=0; a += 1; + +; return 0; } +EOF +if { (eval echo configure:28778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + ace_cv_lib_sap_any_support=no + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + ace_cv_lib_sap_any_support=yes + +fi +rm -f conftest* + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + + +fi +rm -f conftest* + + CXXFLAGS="$save_CXXFLAGS" + CFLAGS="$save_CFLAGS" + + + + + if test -f ${srcdir}/ace/config.h.conf; then + mv ${srcdir}/ace/config.h.conf ${srcdir}/ace/config.h + else + rm ${srcdir}/ace/config.h + fi + + +fi + + echo "$ac_t""$ace_cv_lib_sap_any_support" 1>&6 + if test "$ace_cv_lib_sap_any_support" = yes; then + ace_just_a_place_holder=fixme +: + else + ace_just_a_place_holder=fixme +cat >> confdefs.h <<\EOF +#define ACE_HAS_BROKEN_SAP_ANY 1 +EOF + + fi + + + + + +LD="$PURELINK $PRELINK $LD" + + +if test "$no_x" != yes; then + ACE_LIBDIR="${X_LIBS} -L\${libdir}" +else + ACE_LIBDIR='-L${libdir}' +fi +ACE_LIBS="${X_PRE_LIBS} ${ACE_XLIBS} ${X_EXTRA_LIBS} ${LIBS}" +ACE_INCLUDEDIR='-I${includedir}' + + + + + + + +trap '' 1 2 15 +cat > confcache <<\EOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs. It is not useful on other systems. +# If it contains results you don't want to keep, you may remove or edit it. +# +# By default, configure uses ./config.cache as the cache file, +# creating it if it does not exist already. You can give configure +# the --cache-file=FILE option to use a different cache file; that is +# what configure does when it calls configure scripts in +# subdirectories, so they share the cache. +# Giving --cache-file=/dev/null disables caching, for debugging configure. +# config.status only pays attention to the cache file if you give it the +# --recheck option to rerun configure. +# +EOF +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, don't put newlines in cache variables' values. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +(set) 2>&1 | + case `(ac_space=' '; set | grep ac_space) 2>&1` in + *ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote substitution + # turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + -e "s/'/'\\\\''/g" \ + -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" + ;; + *) + # `set' quotes correctly as required by POSIX, so do not ad quotes. + sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' + ;; + esac >> confcache +if cmp -s $cache_file confcache; then + : +else + if test -w $cache_file; then + echo "updating cache $cache_file" + cat confcache > $cache_file + else + echo "not updating unwritable cache $cache_file" + fi +fi +rm -f confcache + +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +# Any assignment to VPATH causes Sun make to only execute +# the first set of double-colon rules, so remove it if not needed. +# If there is a colon in the path, we need to keep it. +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' +fi + +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 + +DEFS=-DHAVE_CONFIG_H + +# Without the "./", some shells look in PATH for config.status. +: ${CONFIG_STATUS=./config.status} + +echo creating $CONFIG_STATUS +rm -f $CONFIG_STATUS +cat > $CONFIG_STATUS <<EOF +#! /bin/sh +# Generated automatically by configure. +# Run this file to recreate the current configuration. +# This directory was configured as follows, +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# +# $0 $ac_configure_args +# +# Compiler output produced by configure, useful for debugging +# configure, is in ./config.log if it exists. + +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" +for ac_option +do + case "\$ac_option" in + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" + exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; + -version | --version | --versio | --versi | --vers | --ver | --ve | --v) + echo "$CONFIG_STATUS generated by autoconf version 2.13" + exit 0 ;; + -help | --help | --hel | --he | --h) + echo "\$ac_cs_usage"; exit 0 ;; + *) echo "\$ac_cs_usage"; exit 1 ;; + esac +done + +ac_given_srcdir=$srcdir +ac_given_INSTALL="$INSTALL" + +trap 'rm -fr `echo " + ace-config + ace-diff-config + ace/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 +EOF +cat >> $CONFIG_STATUS <<EOF + +# Protect against being on the right side of a sed subst in config.status. +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF +$ac_vpsub +$extrasub +s%@SHELL@%$SHELL%g +s%@CFLAGS@%$CFLAGS%g +s%@CPPFLAGS@%$CPPFLAGS%g +s%@CXXFLAGS@%$CXXFLAGS%g +s%@FFLAGS@%$FFLAGS%g +s%@DEFS@%$DEFS%g +s%@LDFLAGS@%$LDFLAGS%g +s%@LIBS@%$LIBS%g +s%@exec_prefix@%$exec_prefix%g +s%@prefix@%$prefix%g +s%@program_transform_name@%$program_transform_name%g +s%@bindir@%$bindir%g +s%@sbindir@%$sbindir%g +s%@libexecdir@%$libexecdir%g +s%@datadir@%$datadir%g +s%@sysconfdir@%$sysconfdir%g +s%@sharedstatedir@%$sharedstatedir%g +s%@localstatedir@%$localstatedir%g +s%@libdir@%$libdir%g +s%@includedir@%$includedir%g +s%@oldincludedir@%$oldincludedir%g +s%@infodir@%$infodir%g +s%@mandir@%$mandir%g +s%@host@%$host%g +s%@host_alias@%$host_alias%g +s%@host_cpu@%$host_cpu%g +s%@host_vendor@%$host_vendor%g +s%@host_os@%$host_os%g +s%@target@%$target%g +s%@target_alias@%$target_alias%g +s%@target_cpu@%$target_cpu%g +s%@target_vendor@%$target_vendor%g +s%@target_os@%$target_os%g +s%@build@%$build%g +s%@build_alias@%$build_alias%g +s%@build_cpu@%$build_cpu%g +s%@build_vendor@%$build_vendor%g +s%@build_os@%$build_os%g +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g +s%@INSTALL_DATA@%$INSTALL_DATA%g +s%@PACKAGE@%$PACKAGE%g +s%@VERSION@%$VERSION%g +s%@ACLOCAL@%$ACLOCAL%g +s%@AUTOCONF@%$AUTOCONF%g +s%@AUTOMAKE@%$AUTOMAKE%g +s%@AUTOHEADER@%$AUTOHEADER%g +s%@MAKEINFO@%$MAKEINFO%g +s%@SET_MAKE@%$SET_MAKE%g +s%@CC@%$CC%g +s%@CPP@%$CPP%g +s%@CXX@%$CXX%g +s%@CXXCPP@%$CXXCPP%g +s%@ACE_CROSS_COMPILED_TRUE@%$ACE_CROSS_COMPILED_TRUE%g +s%@ACE_CROSS_COMPILED_FALSE@%$ACE_CROSS_COMPILED_FALSE%g +s%@AWK@%$AWK%g +s%@ACE_CURRENT@%$ACE_CURRENT%g +s%@ACE_AGE@%$ACE_AGE%g +s%@ACE_REVISION@%$ACE_REVISION%g +s%@LN_S@%$LN_S%g +s%@LEX@%$LEX%g +s%@LEXLIB@%$LEXLIB%g +s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g +s%@YACC@%$YACC%g +s%@GPERF@%$GPERF%g +s%@PROF@%$PROF%g +s%@RANLIB@%$RANLIB%g +s%@LD@%$LD%g +s%@NM@%$NM%g +s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g +s%@LIBTOOL@%$LIBTOOL%g +s%@DLLTOOL@%$DLLTOOL%g +s%@AS@%$AS%g +s%@PURIFY@%$PURIFY%g +s%@QUANTIFY@%$QUANTIFY%g +s%@X_CFLAGS@%$X_CFLAGS%g +s%@X_PRE_LIBS@%$X_PRE_LIBS%g +s%@X_LIBS@%$X_LIBS%g +s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g +s%@COMPILE_GPERF_TRUE@%$COMPILE_GPERF_TRUE%g +s%@COMPILE_GPERF_FALSE@%$COMPILE_GPERF_FALSE%g +s%@XTREACTOR_TEST_XLIBS@%$XTREACTOR_TEST_XLIBS%g +s%@COMPILE_XTREACTOR_TEST_TRUE@%$COMPILE_XTREACTOR_TEST_TRUE%g +s%@COMPILE_XTREACTOR_TEST_FALSE@%$COMPILE_XTREACTOR_TEST_FALSE%g +s%@TEMPLATES_REQUIRE_SOURCE_TRUE@%$TEMPLATES_REQUIRE_SOURCE_TRUE%g +s%@TEMPLATES_REQUIRE_SOURCE_FALSE@%$TEMPLATES_REQUIRE_SOURCE_FALSE%g +s%@ALLOCA@%$ALLOCA%g +s%@ACE_ON_PENTIUM_TRUE@%$ACE_ON_PENTIUM_TRUE%g +s%@ACE_ON_PENTIUM_FALSE@%$ACE_ON_PENTIUM_FALSE%g +s%@ACE_XLIBS@%$ACE_XLIBS%g +s%@ACE_LIBDIR@%$ACE_LIBDIR%g +s%@ACE_LIBS@%$ACE_LIBS%g +s%@ACE_INCLUDEDIR@%$ACE_INCLUDEDIR%g + +CEOF +EOF + +cat >> $CONFIG_STATUS <<\EOF + +# Split the substitutions into bite-sized pieces for seds with +# small command number limits, like on Digital OSF/1 and HP-UX. +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. +ac_file=1 # Number of current file. +ac_beg=1 # First line for current file. +ac_end=$ac_max_sed_cmds # Line after last line for current file. +ac_more_lines=: +ac_sed_cmds="" +while $ac_more_lines; do + if test $ac_beg -gt 1; then + sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file + else + sed "${ac_end}q" conftest.subs > conftest.s$ac_file + fi + if test ! -s conftest.s$ac_file; then + ac_more_lines=false + rm -f conftest.s$ac_file + else + if test -z "$ac_sed_cmds"; then + ac_sed_cmds="sed -f conftest.s$ac_file" + else + ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" + fi + ac_file=`expr $ac_file + 1` + ac_beg=$ac_end + ac_end=`expr $ac_end + $ac_max_sed_cmds` + fi +done +if test -z "$ac_sed_cmds"; then + ac_sed_cmds=cat +fi +EOF + +cat >> $CONFIG_STATUS <<EOF + +CONFIG_FILES=\${CONFIG_FILES-" ace-config + ace-diff-config + "} +EOF +cat >> $CONFIG_STATUS <<\EOF +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. + + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" + # A "../" for each directory in $ac_dir_suffix. + ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` + else + ac_dir_suffix= ac_dots= + fi + + case "$ac_given_srcdir" in + .) srcdir=. + if test -z "$ac_dots"; then top_srcdir=. + else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; + /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; + *) # Relative path. + srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" + top_srcdir="$ac_dots$ac_given_srcdir" ;; + esac + + case "$ac_given_INSTALL" in + [/$]*) INSTALL="$ac_given_INSTALL" ;; + *) INSTALL="$ac_dots$ac_given_INSTALL" ;; + esac + + echo creating "$ac_file" + rm -f "$ac_file" + configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." + case "$ac_file" in + *Makefile*) ac_comsub="1i\\ +# $configure_input" ;; + *) ac_comsub= ;; + esac + + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + sed -e "$ac_comsub +s%@configure_input@%$configure_input%g +s%@srcdir@%$srcdir%g +s%@top_srcdir@%$top_srcdir%g +s%@INSTALL@%$INSTALL%g +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file +fi; done +rm -f conftest.s* + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' +ac_dC='\3' +ac_dD='%g' +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". +ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='\([ ]\)%\1#\2define\3' +ac_uC=' ' +ac_uD='\4%g' +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_eB='$%\1#\2define\3' +ac_eC=' ' +ac_eD='%g' + +if test "${CONFIG_HEADERS+set}" != set; then +EOF +cat >> $CONFIG_STATUS <<EOF + CONFIG_HEADERS="ace/config.h" +EOF +cat >> $CONFIG_STATUS <<\EOF +fi +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". + case "$ac_file" in + *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` + ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; + *) ac_file_in="${ac_file}.in" ;; + esac + + echo creating $ac_file + + rm -f conftest.frag conftest.in conftest.out + ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` + cat $ac_file_inputs > conftest.in + +EOF + +# Transform confdefs.h into a sed script conftest.vals that substitutes +# the proper values into config.h.in to produce config.h. And first: +# Protect against being on the right side of a sed subst in config.status. +# Protect against being in an unquoted here document in config.status. +rm -f conftest.vals +cat > conftest.hdr <<\EOF +s/[\\&%]/\\&/g +s%[\\$`]%\\&%g +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp +s%ac_d%ac_u%gp +s%ac_u%ac_e%gp +EOF +sed -n -f conftest.hdr confdefs.h > conftest.vals +rm -f conftest.hdr + +# This sed command replaces #undef with comments. This is necessary, for +# example, in the case of _POSIX_SOURCE, which is predefined and required +# on some systems where configure will not decide to define it. +cat >> conftest.vals <<\EOF +s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% +EOF + +# Break up conftest.vals because some shells have a limit on +# the size of here documents, and old seds have small limits too. + +rm -f conftest.tail +while : +do + ac_lines=`grep -c . conftest.vals` + # grep -c gives empty output for an empty file on some AIX systems. + if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi + # Write a limited-size here document to conftest.frag. + echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS + echo 'CEOF + sed -f conftest.frag conftest.in > conftest.out + rm -f conftest.in + mv conftest.out conftest.in +' >> $CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail + rm -f conftest.vals + mv conftest.tail conftest.vals +done +rm -f conftest.vals + +cat >> $CONFIG_STATUS <<\EOF + rm -f conftest.frag conftest.h + echo "/* $ac_file. Generated automatically by configure. */" > conftest.h + cat conftest.in >> conftest.h + rm -f conftest.in + if cmp -s $ac_file conftest.h 2>/dev/null; then + echo "$ac_file is unchanged" + rm -f conftest.h + else + # Remove last slash and all that follows it. Not all systems have dirname. + ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` + if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then + # The file is in a subdirectory. + test ! -d "$ac_dir" && mkdir "$ac_dir" + fi + rm -f $ac_file + mv conftest.h $ac_file + fi +fi; done + +EOF +cat >> $CONFIG_STATUS <<EOF + + +EOF +cat >> $CONFIG_STATUS <<\EOF +test -z "$CONFIG_HEADERS" || echo timestamp > ace/stamp-h + +exit 0 +EOF +chmod +x $CONFIG_STATUS +rm -fr confdefs* $ac_clean_files +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 + + + +echo "" +echo "Configuration of ACE is now complete." +echo "" diff --git a/configure.in b/configure.in new file mode 100644 index 00000000000..6b58261789e --- /dev/null +++ b/configure.in @@ -0,0 +1,6121 @@ +dnl +dnl $Id$ + +AC_REVISION($Revision 0.53 $)dnl + +dnl +dnl An autoconf script to automatically configure ACE. +dnl Process this file with autoconf to produce a configure script. +dnl + +dnl +dnl The autoconf documentation states that this is the recommended +dnl sequence for this file: +dnl +dnl `AC_INIT(FILE)' +dnl checks for programs +dnl checks for libraries +dnl checks for header files +dnl checks for typedefs +dnl checks for structures +dnl checks for variables +dnl checks for compiler characteristics +dnl checks for library functions +dnl checks for system services +dnl `AC_OUTPUT([FILE...])' +dnl +dnl I followed this convention, and added a few sections. +dnl -- Gonzo + + +dnl +dnl SECTION 1: `AC_INIT(FILE)' +dnl +dnl This macro must be the very first invoked. +dnl Its argument names a file that must exist in the directory where +dnl autoconf will run, just to check things. +dnl AC_INIT(ace_unique.m4) +dnl +AC_INIT(ace/ACE.cpp) + +dnl Require GNU Autoconf 2.13 or better. +AC_PREREQ(2.13) + +dnl Check what platform we are running on. +AC_CANONICAL_SYSTEM + +dnl Allow the standard program name transformations. +dnl We probably don't need AC_ARG_PROGRAM any longer since AM_INIT_AUTOMAKE +dnl handles this functionality. -- Ossama +dnl AC_ARG_PROGRAM + +dnl Cause GNU Automake to initialize the state of things and run +dnl some sanity checks +PACKAGE=ace +changequote(, )dnl +ACE_VERSION=`head -1 ${srcdir}/VERSION | sed 's/.*version \([0-9.]*\).*/\1/'` +changequote([, ])dnl + +AM_INIT_AUTOMAKE("$PACKAGE", "$ACE_VERSION", ) + +dnl Generate a header file with all settings. +AM_CONFIG_HEADER(ace/config.h) + +dnl Move before the AC_ARG_ENABLE stuff to prevent autoconf complaints. +dnl This is a bit messy but it makes life easier for me. +dnl -Ossama +dnl +dnl SECTION: checks for programs +dnl + +dnl Check if system supports "#! /bin/sh" line in scripts +AC_SYS_INTERPRETER + +dnl Check the C compiler and preprocessor. +AC_PROG_CC +AC_PROG_CPP +AC_PROG_CC_C_O + +dnl Check the C++ compiler and preprocessor. +AC_PROG_CXX +AC_PROG_CXXCPP + +if test -n "$GXX"; then +dnl Temporarily change M4 quotes to prevent "regex []" from being eaten +changequote(, )dnl + if g++ --version | egrep -v '^2\.[0-7]' > /dev/null; then +changequote([, ])dnl + acenothinghere="" + else + AC_DEFINE(ACE_HAS_GNUG_PRE_2_8) dnl + AC_DEFINE(ACE_HAS_GNUC_BROKEN_TEMPLATE_INLINE_FUNCTIONS) dnl + fi +fi + +dnl If we are cross compiling disable certain things in the Makefiles. +AM_CONDITIONAL(ACE_CROSS_COMPILED, test X$cross_compiling = Xyes) + + +dnl This checks for a binary called gm4, gnum4 or m4, and assigns +dnl whatever was found (or "gonzo") to the M4 macro. +dnl AC_CHECK_PROGS(M4, gm4 gnum4 m4, gonzo) + +dnl Look for the best awk-style program available. +AC_PROG_AWK + +dnl Set some version information +ACE_CURRENT=0 +ACE_AGE=0 +ACE_REVISION=0 + +if test -n "$AWK"; then + ACE_MAJOR=`echo "$ACE_VERSION" | sed 's/\./ /g' | $AWK '{ print \[$]1 }'` + ACE_MINOR=`echo "$ACE_VERSION" | sed 's/\./ /g' | $AWK '{ print \[$]2 }'` + ACE_BETA=`echo "$ACE_VERSION" | sed 's/\./ /g' | $AWK '{ print \[$]3 }'` + +dnl This is a terrible kludge to fool libtool into making it produce a shared +dnl library with the "right" version information. +dnl We really should switch to a version scheme that is compatible with +dnl libtool. +dnl -Ossama +ACE_CURRENT=`expr $ACE_MAJOR + $ACE_MINOR` +ACE_AGE=$ACE_MINOR +ACE_REVISION=$ACE_BETA + +fi + +AC_SUBST(ACE_CURRENT) +AC_SUBST(ACE_AGE) +AC_SUBST(ACE_REVISION) + +dnl Do the usual install settings; don't forget to include a +dnl install-sh script, in case the is no BDS compatible install +dnl installed (no pun intended) in your machine. +dnl +dnl We don't need this anymore since AM_INIT_AUTOMAKE calls AM_PROG_INSTALL +dnl yes "AM_PROG_INSTALL," not "AC_PROG_INSTALL." -- Ossama +dnl AC_PROG_INSTALL + +dnl Special handling for some UNIX variants and Cygwin32 +AC_AIX +AC_ISC_POSIX +AC_MINIX +AC_CYGWIN + +dnl The user's/default C++ flags are stored in "CXXFLAGS." We use +dnl the variable "ACE_CXXFLAGS" to set the C++ flags we want. At the end +dnl of the configuration process we combine ACE_CXXFLAGS and CXXFLAGS +dnl into CXXFLAGS (e.g., CXXFLAGS="$ACE_CXXFLAGS $CXXFLAGS"). CXXFLAGS +dnl goes after ACE_CXXFLAGS so that the user's C++ flag command line +dnl choices always override the configure script's choices. +ACE_CXXFLAGS="" +ACE_CFLAGS="" + +dnl Set the test language as C++ +AC_LANG_CPLUSPLUS + +dnl Check if we support symlinks +AC_PROG_LN_S + +dnl Check if a lexical analyzer exists (lex, flex, etc.) +AM_PROG_LEX + +dnl Check if some implementation of YACC exists (yacc, byacc, bison, etc.) +AC_PROG_YACC +dnl if test -z "$YACC"; then +dnl ./missing yacc +dnl fi + +dnl Check for perfect hash function generator +AC_CHECK_PROG(GPERF, gperf, gperf) dnl + +dnl Check for profiling progam +AC_CHECK_PROGS(PROF, gprof prof,) dnl + +dnl Call ACE_SET_COMPILER_FLAGS before AM_PROG_LIBTOOL +ACE_SET_COMPILER_FLAGS + +dnl Since we are linking ACE with the C++ compiler, and since +dnl libtool checks linker characteristics using the C compiler, +dnl temporarily state that the C compiler is the C++ compiler. +save_CC="$CC" +CC="$CXX" + +dnl Disable building of static libraries by default +AM_DISABLE_STATIC + +dnl Check for libtool and turn on Automake processing for Libtool +AM_PROG_LIBTOOL + + +dnl Restore the C compiler variable +CC="$save_CC" + +dnl +dnl SECTION 2: Configure script command line options +dnl + + +AC_ARG_ENABLE(debug, + [ --enable-debug enable debugging [default=yes]], + [ + case "${enableval}" in + yes) + ACE_CXXFLAGS="$ACE_CXXFLAGS $DCXXFLAGS" + ;; + no) + AC_DEFINE(ACE_NDEBUG) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-debug) + ;; + esac + ],) + +AC_ARG_ENABLE(exceptions, + [ --enable-exceptions enable C++ exception handling [default=yes]], + [ + case "${enableval}" in + yes) + ace_user_enable_exceptions=yes + ;; + no) + ace_user_enable_exceptions=no + if test -n "$GXX"; then +dnl Temporarily change M4 quotes to prevent "regex []" from being eaten +changequote(, )dnl + if g++ --version | egrep -v '^2\.[0-7]' > /dev/null; then +changequote([, ])dnl + ACE_CXXFLAGS="$ACE_CXXFLAGS -fno-exceptions" + fi + fi + if test -n "$GCC"; then +dnl Temporarily change M4 quotes to prevent "regex []" from being eaten +changequote(, )dnl + if gcc --version | egrep -v '^2\.[0-7]' > /dev/null; then +changequote([, ])dnl + ACE_CFLAGS="$ACE_CFLAGS -fno-exceptions" + fi + fi + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-exceptions) + ;; + esac + ], + [ + ace_user_enable_exceptions=yes + ]) + + +AC_ARG_ENABLE(fast, + [ --enable-fast enable -fast flag, e.g. Sun C++ [default=no]], + [ + case "${enableval}" in + yes) + ACE_CXXFLAGS="$ACE_CXXFLAGS -fast" + ACE_CFLAGS="$ACE_CFLAGS -fast" + ;; + no) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-fast) + ;; + esac + ],) + +AC_ARG_ENABLE(inline, + [ --enable-inline enable code inlining [default=yes]], + [ + case "${enableval}" in + yes) + AC_DEFINE(__ACE_INLINE__) + ;; + no) + AC_DEFINE(ACE_NO_INLINE) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-inline) + ;; + esac + ], + [ + AC_DEFINE(__ACE_INLINE__) + ]) + +AC_ARG_ENABLE(log-msg-prop, + [ --enable-log-msg-prop enable threads inheriting + ACE_Log_Msg properties from parent + thread [default=yes]], + [ + case "${enableval}" in + yes) + dnl nothing to do + ;; + no) + AC_DEFINE(ACE_THREADS_DONT_INHERIT_LOG_MSG) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-log-msg-prop) + ;; + esac + ],) + +AC_ARG_ENABLE(logging, + [ --enable-logging enable ACE logging macros [default=yes]], + [ + case "${enableval}" in + yes) + dnl nothing to do + ;; + no) + AC_DEFINE(ACE_NLOGGING) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-logging) + ;; + esac + ],) + +AC_ARG_ENABLE(malloc-stats, + [ --enable-malloc-stats enable malloc statistics + collection [default=no]], + [ + case "${enableval}" in + yes) + AC_DEFINE(ACE_HAS_MALLOC_STATS) + ;; + no) + dnl nothing to do + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-malloc-stats) + ;; + esac + ],) + +AC_ARG_ENABLE(optimize, + [ --enable-optimize enable additional optimizations [default=yes]], + [ + case "${enableval}" in + yes) + ace_user_enable_optimize=yes + ;; + no) + AC_MSG_WARN(Optimization configure support not implemented yet.) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-optimize) + ;; + esac + ], + [ + ace_user_enable_optimize=yes + ]) + +AC_ARG_ENABLE(probe, + [ --enable-probe enable ACE_Timeprobes [default=no]], + [ + case "${enableval}" in + yes) + AC_DEFINE(ACE_COMPILE_TIMEPROBES) + ;; + no) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-probe) + ;; + esac + ],) + +AC_ARG_ENABLE(profile, + [ --enable-profile enable profiling [default=no]], + [ + case "${enableval}" in + yes) + if test -z "$PROF"; then + AC_MSG_WARN(No profiling program found. Assuming 'prof' exists) + ACE_CXXFLAGS="$ACE_CXXFLAGS -p" + ACE_CFLAGS="$ACE_CFLAGS -p" + else + case "$PROF" in + gprof) + echo "Building with 'gprof' support" + ACE_CXXFLAGS="$ACE_CXXFLAGS -pg" + ACE_CFLAGS="$ACE_CFLAGS -pg" + ;; + prof) + echo "Building with 'prof' support" + ACE_CXXFLAGS="$ACE_CXXFLAGS -p" + ACE_CFLAGS="$ACE_CFLAGS -p" + ;; + *) + dnl We shouldn't get here. + AC_MSG_WARN(Assuming 'prof' exists) + ACE_CXXFLAGS="$ACE_CXXFLAGS -p" + ACE_CFLAGS="$ACE_CFLAGS -p" + ;; + esac + fi + ;; + no) + dnl Do nothing + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-profile) + ;; + esac + ],) + +AC_ARG_ENABLE(purify, + [ --enable-purify Purify all executables [default=no]], + [ + case "${enableval}" in + yes) + AC_CHECK_PROG(PURIFY, purify, purify,) + if test -n "$PURIFY"; then + PURE_CACHE_BASE_DIR=/tmp/purifycache + PURE_CACHE_DIR=${PURE_CACHE_BASE_DIR}-${LOGNAME}-${notdir ${CXX} } + PURELINK="$PURIFY -best-effort -chain-length=20 \ + -cache-dir=$PURE_CACHE_DIR \ + -fds-inuse-at-exit=no -ignore-signals=SIGINT -inuse-at-exit \ + -max_threads=100" + ACE_CXXFLAGS="$ACE_CXXFLAGS -DACE_HAS_PURIFY" + ACE_CFLAGS="$ACE_CFLAGS -DACE_HAS_PURIFY" + else + AC_MSG_WARN(Purify program was not found.) + AC_MSG_WARN(Disabling purify support.) + fi + ;; + no) + PURELINK="" + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-purify) + ;; + esac + ], PURELINK="") + +AC_ARG_ENABLE(quantify, + [ --enable-quantify Quantify all executables [default=no]], + [ + case "${enableval}" in + yes) + AC_CHECK_PROG(QUANTIFY, quantify, quantify,) + if test -n "$QUANTIFY"; then + PURE_CACHE_BASE_DIR=/tmp/purifycache + PURE_CACHE_DIR=${PURE_CACHE_BASE_DIR}-${LOGNAME}-${notdir ${CXX} } + PRELINK="$QUANTIFY -best-effort -max_threads=100 \ + -cache-dir=$PURE_CACHE_DIR" + ACE_CXXFLAGS="$ACE_CXXFLAGS -DACE_HAS_QUANTIFY" + ACE_CFLAGS="$ACE_CFLAGS -DACE_HAS_QUANTIFY" + else + AC_MSG_WARN(Quantify program was not found.) + AC_MSG_WARN(Disabling quantify support.) + fi + ;; + no) + PRELINK="" + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-quantify) + ;; + esac + ], PRELINK="") + +AC_ARG_ENABLE(reentrant, + [ --enable-reentrant enable reentrant functions [default=yes]], + [ + case "${enableval}" in + yes) + ace_user_enable_reentrant_funcs=yes + ;; + no) + ace_user_enable_reentrant_funcs=no + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-reentrant) + ;; + esac + ], + [ + ace_user_enable_reentrant_funcs=yes + ]) + + +AC_ARG_ENABLE(repo, + [ --enable-repo use GNU template repository + GNU C++ with repo patches and + EGCS only [default=no]], + [ + case "${enableval}" in + yes) + if test -n "$GXX"; then + ace_user_enable_repo=yes + ACE_CXXFLAGS="$ACE_CXXFLAGS -frepo" + AC_DEFINE(ACE_HAS_GNU_REPO) + else + ace_user_enable_repo=no + AC_MSG_WARN(Not using GNU C++! GNU template respository disabled) + fi + ;; + no) + ace_user_enable_repo=no + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-repo) + ;; + esac + ], + [ + ace_user_enable_repo=no + ]) + +AC_ARG_ENABLE(rtti, + [ --enable-rtti enable run-time type + identification + *Currently only for Sun C++ [default=no]], + [ + case "${enableval}" in + yes) + if test -z "$GXX"; then + case "$target" in + *solaris*) + ACE_CXXFLAGS="$ACE_CXXFLAGS -features=rtti" + ;; + *) + ;; + esac + else + AC_MSG_WARN(Not using Sun C++. RTTI will not be enabled.) + fi + ;; + no) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-rtti) + ;; + esac + ],) + +AC_ARG_ENABLE(static-obj-mgr, + [ --enable-static-obj-mgr enable static Object_Manager [default=yes]], + [ + case "${enableval}" in + yes) + dnl nothing to do + ;; + no) + AC_DEFINE(ACE_HAS_NONSTATIC_OBJECT_MANAGER) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-static-obj-mgr) + ;; + esac + ],) + +AC_ARG_ENABLE(threads, + [ --enable-threads enable thread support [default=yes]], + [ + case "${enableval}" in + yes) + ace_user_enable_threads=yes + ;; + no) + ace_user_enable_threads=no + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-threads) + ;; + esac + ], + [ + ace_user_enable_threads=yes + ]) + + +AC_ARG_ENABLE(verb-not-sup, + [ --enable-verb-not-sup enable verbose ENOTSUP reports [default=no]], + [ + case "${enableval}" in + yes) + AC_DEFINE(ACE_HAS_VERBOSE_NOTSUP) + ;; + no) + dnl Do nothing + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-verb-not-sup) + ;; + esac + ],) + +AC_ARG_ENABLE(trace, + [ --enable-trace enable ACE tracing [default=no]], + [ + case "${enableval}" in + yes) + ;; + no) + AC_DEFINE(ACE_NTRACE) + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-trace) + ;; + esac + ], + [ + AC_DEFINE(ACE_NTRACE) + ]) + +AC_ARG_ENABLE(xt-reactor, + [ --enable-xt-reactor build support for the XtReactor [default=no]], + [ + case "${enableval}" in + yes) + AC_PATH_XTRA +dnl Here, if X isn't found or the user sets "--without-x" on the command +dnl line, then "no_x" is set to "yes." + if test "$no_x" != yes; then + ACE_XLIBS="-lX11 -lXt" + AC_DEFINE(ACE_HAS_XT) + ace_user_enable_xt_reactor=yes + else + ACE_XLIBS="" + ace_user_enable_xt_reactor=no + AC_MSG_WARN(X was not found or it was disabled.) + AC_MSG_WARN(ACE_XtReactor will not be enabled.) + fi + ;; + no) + ACE_XLIBS="" + ace_user_enable_xt_reactor=no + ;; + *) + AC_MSG_ERROR(bad value ${enableval} for --enable-xt-reactor) + ;; + esac + ],) + +AC_ARG_WITH(gperf, + [ --with-gperf compile the gperf program [default=yes]], + [ + case "${withval}" in + yes) + ace_user_with_gperf=yes + AC_DEFINE(ACE_HAS_GPERF) + if test -n "$GPERF"; then + AC_MSG_WARN(gperf program already exists) + AC_MSG_WARN(existing gperf may be overwritten during installation) + fi + ;; + no) + ace_user_with_gperf=no + ;; + *) + AC_MSG_ERROR(bad value ${withval} for --with-gperf) + ;; + esac + ], + [ + ace_user_with_gperf=yes + AC_DEFINE(ACE_HAS_GPERF) + if test -n "$GPERF"; then + AC_MSG_WARN(gperf program already exists) + AC_MSG_WARN(existing gperf may be overwritten during installation) + fi + ]) +AM_CONDITIONAL(COMPILE_GPERF, + test X$ace_user_with_gperf = Xyes) + +AC_ARG_WITH(orbix, + [ --with-orbix[=DIR] compile ACE with Orbix [default=no]], + [ + case "${withval}" in + yes) + AC_MSG_WARN(Orbix configure support not implemented yet.) + ;; + no) + ;; + *) + AC_MSG_WARN(Orbix configure support not implemented yet.) + ;; + esac + ],) + +AC_ARG_WITH(tli-device, + [ --with-tli-device[=DEV] device for TCP on TLI [default=/dev/tcp]], + [ + case "${withval}" in + yes) + AC_MSG_ERROR(Specify the TLI/TCP device if you use this option.) + ;; + no) + ;; + *) + if test -e "${withval}"; then + AC_DEFINE_UNQUOTED(ACE_TLI_TCP_DEVICE, "${withval}") + else + AC_MSG_ERROR(TLI/TCP device ${withval} does not exist.) + fi + ;; + esac + ],) + +dnl +dnl SECTION 3: check for programs <--- moved before section 2 (Ossama) +dnl + +dnl Platform specific defines and libraries needed for ACE's autoconf tests +dnl that currently do not have tests themselves. +dnl Platform specific flags +case "$target" in + *aix3*) + ;; + *aix4.1*) + AC_DEFINE(_BSD, 44) + ;; + *aix4.2*) + AC_DEFINE(_BSD, 44) + AC_DEFINE(_BSD_INCLUDES) + ;; + t3e-cray-unicosmk*) + AC_DEFINE(_CRAYMPP) + AC_DEFINE(_CRAYT3E) + AC_DEFINE(_UNICOS,) + ;; + t3e-cray*) + AC_DEFINE(_CRAYT3E) + AC_DEFINE(_UNICOS,) + ;; + *cray-unicos*) + AC_DEFINE(_UNICOS,) + ;; + *dgux4.11*) + LIBS="$LIBS -lc" + AC_DEFINE(_POSIX_SOURCE) + AC_DEFINE(_DGUX_SOURCE) + ;; + *dgux4*) + LIBS="$LIBS -lc" + AC_DEFINE(_POSIX4A_DRAFT10_SOURCE) + AC_DEFINE(_POSIX4_DRAFT_SOURCE) + ;; + *freebsd*) + LIBS="$LIBS -lcompat" + ;; + *hpux9*) + LIBS="$LIBS -lcma -lrt" + AC_DEFINE(HPUX) + ;; + *hpux10*) + LIBS="$LIBS -lcma -lrt" + AC_DEFINE(_HPUX_SOURCE) + ;; + *hpux11*) + LIBS="$LIBS -lcma -lrt" + ;; + *irix5.2*) + ;; + *irix5.3*) + if test -z "$GXX"; then + AC_DEFINE(_BSD_TYPES) + fi + ;; + *irix6*) + AC_DEFINE(_SGI_MP_SOURCE) + AC_DEFINE(_MODERN_C_) + ;; + *linux*) + ;; + *lynxos*) + AC_DEFINE(_POSIX_THREADS_CALLS) + AC_DEFINE(__NO_INCLUDE_WARN__) + ;; + *m88k*) + ;; + *mvs*) + AC_DEFINE(_ALL_SOURCE) + ;; + *netbsd*) + ;; + *osf3.2*) + LIBS="$LIBS -lmach -lsys5 -lcxx -lc -lrt" + ;; + *osf4.0*) + LIBS="$LIBS -lmach -lrt" + ;; + *psos*) + LIBS="$LIBS -lm" + ;; + *sco4.2*) + ;; + *sco5*) + AC_DEFINE(_SVID3) + ;; + *sunos4*) + ;; + *solaris2.4*) + ;; + *solaris2.5*) + ;; + *solaris2.6*) + ;; + *86*solaris*) + ;; + *tandem*) + ;; + *unixware2.0*) + ;; + *unixware2.1*) + ;; + *vxworks*) + ;; + *cygwin32*) + ;; + *win32*) + ;; + *) + ;; +esac + +dnl +dnl SECTION 4: checks for libraries +dnl + +dnl Additional X library checks +dnl We only check for these libraries if the user has +dnl enabled XtReactor support. + +if test "$ace_user_enable_xt_reactor" = yes; then +XTREACTOR_TEST_XLIBS="" +dnl Check for Motif if we have X + T_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $X_LIBS" + +dnl Note that ACE currently only needs -lX11 and -lXt for the XtReactor +dnl so we define another library variable that contains additional +dnl libraries for the XtReactor test since it needs either Motif or the +dnl Athena widget set. + + xt_reactor_go=no + AC_CHECK_LIB(Xm, XmCreateRowColumn, dnl + [ + XTREACTOR_TEST_XLIBS="-lXm" + xt_reactor_go=yes + ], + [ + AC_DEFINE(ACE_LACKS_MOTIF) + AC_CHECK_LIB(Xaw, XawInitializeWidgetSet, + [ + XTREACTOR_TEST_XLIBS="-lXaw -lXmu" + xt_reactor_go=yes + ], + [ + xt_reactor_go=no + AC_MSG_WARN(No usable X widget libraries were found.) + AC_MSG_WARN(XtReactor test compilation will be disabled.) + ], -lXmu) + ],-lXt) + + AC_SUBST(XTREACTOR_TEST_XLIBS) + + AM_CONDITIONAL(COMPILE_XTREACTOR_TEST, test X$xt_reactor_go = Xyes) + +dnl Restore pre-test linker flags + LDFLAGS="$T_LDFLAGS" + +fi dnl test "$ace_user_enable_xt_reactor"= yes + +dnl End additional X library checks + +dnl Some platforms do not have a dynamic linking library, however the +dnl dlopen, dlclose, etc., functions may exist in the C library. +dnl (e.g. Digital UNIX) +dnl Check for dynamic linking library +AC_CHECK_FUNC(dlopen, ace_has_svr4_dynamic_linking=yes, dnl + AC_CHECK_LIB(dl, dlopen, + [ + ace_has_svr4_dynamic_linking=yes + LIBS="$LIBS -ldl" + ], + AC_CHECK_LIB(svld, dlopen, + [ + ace_has_svr4_dynamic_linking=yes + LIBS="$LIBS -lsvld" + ], + AC_CHECK_LIB(dld, shl_get,,)))) + +dnl Check if the socket library is available +AC_CHECK_FUNC(socket, , dnl + AC_CHECK_LIB(socket, socket,,)) + +dnl Check for gethostbyname in -lnsl since some platforms (e.g. Solaris) +dnl put it there. +AC_CHECK_FUNC(gethostbyname, , dnl + AC_CHECK_LIB(nsl, gethostbyname,,)) + +dnl Check for getservbyname in -lxnet since some platforms (e.g. Solaris) +dnl may put it there. Define ACE_LACKS_GETSERVBYNAME in case the getservbyname +dnl AC_CHECK_FUNC gets skipped due to caching. +AC_CHECK_FUNC(getservbyname, , dnl + AC_CHECK_LIB(xnet, getservbyname,, + AC_DEFINE(ACE_LACKS_GETSERVBYNAME))) + +dnl Check for compile() regex function in -lgen. Solaris, for example, +dnl may put it there. +AC_CHECK_FUNC(compile, , dnl + AC_CHECK_LIB(gen, compile, ,)) + +dnl Check for exception handling library (e.g. for Digital UNIX) +AC_CHECK_FUNC(exc_continue, , dnl + AC_CHECK_LIB(exc, exc_continue, ,)) + +dnl Check for ctime_r in -lc_r. Some platforms, such as Digital UNIX, +dnl put reentrant functions such as asctime_r, ctime_r, gmtime_r, and +dnl localtime_r in -lc_r. +AC_CHECK_FUNC(ctime_r, , dnl + AC_CHECK_LIB(c_r, ctime_r, ,)) + +dnl TLI library check +ace_has_tli_funcs=yes +AC_CHECK_FUNC(t_accept, , dnl + AC_CHECK_LIB(xti, t_accept, , + AC_CHECK_LIB(tli_r, t_accept, , + AC_CHECK_LIB(tli, t_accept, , + AC_CHECK_LIB(nsl, t_accept, ,ace_has_tli_funcs=no))))) + +dnl Asynchronous IO library check +dnl Some platforms, such as Solaris puts aio_read in -lposix4, for example. +ace_has_aio_funcs=yes +AC_CHECK_FUNC(aio_read, , dnl + AC_CHECK_LIB(aio, aio_read, , + AC_CHECK_LIB(posix4, aio_read, , ace_has_aio_funcs=no))) + +dnl Check for all of the things we need to compile and link threads +dnl properly. +if test "$ace_user_enable_threads" = yes; then + ACE_CHECK_THREADS +fi dnl test "$ace_user_enable_threads" = yes + +dnl Check for sched_yield() in posix4 library. +dnl Some platforms, such as Solaris, may define sched_yield() there. +dnl Later we run AC_CHECK_FUNC(sched_yield), which is redundant i this case +dnl but is needed if sched_yield() is defined in one of the other libraries +dnl we check for. +AC_CHECK_FUNC(sched_yield, ace_has_sched_yield=yes, dnl + AC_CHECK_LIB(posix4, sched_yield, ace_has_sched_yield=yes,)) + + +dnl +dnl SECTION 5: checks for header files +dnl + +dnl Check for dirent headers +AC_HEADER_DIRENT + +if test "$ac_cv_header_dirent_dirent_h" = yes || + test "$ac_cv_header_dirent_sys_ndir_h" = yes || + test "$ac_cv_header_dirent_sys_dir_h" = yes || + test "$ac_cv_header_dirent_ndir_h" = yes; then + AC_DEFINE(ACE_HAS_DIRENT) +fi + +dnl Check for sys/wait.h Posix.1 compliance +AC_HEADER_SYS_WAIT + +if test "$am_cv_cygwin32" = yes; then + AC_CHECK_HEADER(cygwin32/socket.h, dnl + AC_DEFINE(ACE_HAS_CYGWIN32_SOCKET_H),) +fi + +AC_CHECK_HEADER(dlfcn.h, dnl + [ + dnl We already checked for dlopen in the previous library checks however, + dnl it is possible that ac_cv_func_dlopen=yes if dlopen wasn't found before + dnl the library test. Hence we cannot use AC_CHECK_FUNC(dlopen) here + dnl the previously cached value may prevent ACE_HAS_SVR4_DYNAMIC_LINKING + dnl from being defined. + dnl -Ossama + if test "$ace_has_svr4_dynamic_linking" = yes; then + AC_DEFINE(ACE_HAS_SVR4_DYNAMIC_LINKING) + fi + ],) + +AC_CHECK_HEADER(malloc.h, dnl + , + AC_DEFINE(ACE_LACKS_MALLOC_H)) + +AC_CHECK_HEADER(memory.h, dnl + , + AC_DEFINE(ACE_LACKS_MEMORY_H)) + +AC_CHECK_HEADER(bytesex.h, dnl + AC_DEFINE(ACE_HAS_BYTESEX_H)) + +dnl We don't need to explicitly include this on linux. +dnl AC_CHECK_HEADER(features.h, dnl +dnl AC_DEFINE(ACE_HAS_FEATURES_H)) + +AC_CHECK_HEADER(sys/msg.h, dnl + [ + ACE_CACHE_CHECK(if _KERNEL is needed for msg prototypes, + ace_cv_lib_broken_msg_h, + [ + AC_TRY_COMPILE( + [ +#include <sys/msg.h> + ], + [ + struct msg ace_msg; + ], + [ + ace_cv_lib_broken_msg_h=no + ], + [ + AC_TRY_COMPILE( + [ +#ifndef _KERNEL +# define _KERNEL +#endif +#include <sys/msg.h> + ], + [ + struct msg ace_msg; + ], + [ + ace_cv_lib_broken_msg_h=yes + ], + [ + dnl If we get here, then we have no idea if it is broken or not. + ace_cv_lib_broken_msg_h=no + ]) + ]) + ], + [ + AC_DEFINE(ACE_HAS_BROKEN_MSG_H) + ],) + ], + AC_DEFINE(ACE_LACKS_SYSV_MSG_H)) + +AC_CHECK_HEADER(sys/param.h, dnl + , + AC_DEFINE(ACE_LACKS_PARAM_H)) + +AC_CHECK_HEADER(sys/priocntl.h, ,) + +AC_CHECK_HEADER(sys/procfs.h, dnl + AC_DEFINE(ACE_HAS_PROC_FS)) + +AC_CHECK_HEADER(sys/select.h, dnl + AC_DEFINE(ACE_HAS_SELECT_H)) + +AC_CHECK_HEADER(netinet/tcp.h, dnl + , + AC_DEFINE(ACE_LACKS_TCP_H)) + +AC_CHECK_HEADER(sys/sockio.h, dnl + AC_DEFINE(ACE_HAS_SOCKIO_H)) + +AC_CHECK_HEADER(sysent.h, dnl + AC_DEFINE(ACE_HAS_SYSENT_H),) + +AC_CHECK_HEADER(sys/systeminfo.h, ,) dnl + +AC_CHECK_HEADER(sys/filio.h, dnl + AC_DEFINE(ACE_HAS_SYS_FILIO_H),) + +AC_CHECK_HEADER(sys/uio.h,,) dnl + +AC_CHECK_HEADER(sys/ioctl.h, dnl + AC_DEFINE(ACE_HAS_SYS_IOCTL_H),) + +AC_CHECK_HEADER(sys/types.h, dnl + , + AC_DEFINE(ACE_LACKS_SYS_TYPES_H)) + +AC_CHECK_HEADER(sys/termios.h, dnl + [ + AC_EGREP_CPP(ACE_WITH_TERM_IOCTLS, + [ +#include <sys/termios.h> + +#if defined (ACE_HAS_SYS_IOCTL_H) +# include <sys/ioctl.h> +#endif + +#if defined(TCGETS) && defined(TCSETS) + ACE_WITH_TERM_IOCTLS +#elif defined(TCGETA) && defined(TCSETA) + ACE_WITH_TERM_IOCTLS +#endif + ], + [ + AC_DEFINE(ACE_HAS_TERM_IOCTLS) + ],) + ],) + +if test "$ace_has_tli_funcs" = yes; then +AC_CHECK_HEADER(xti.h, dnl + [ + ace_has_tli=yes + AC_DEFINE(ACE_HAS_XTI) + AC_DEFINE(ACE_HAS_TLI) + ],) + +AC_CHECK_HEADER(sys/xti.h, dnl + [ + ace_has_tli=yes + AC_DEFINE(ACE_HAS_SYS_XTI_H) + AC_DEFINE(ACE_HAS_XTI) + AC_DEFINE(ACE_HAS_TLI) + ],) + +AC_CHECK_HEADER(sys/timod.h, dnl + [ + AC_DEFINE(ACE_HAS_TIMOD_H) + ], + [ + AC_CHECK_HEADER(tli/timod.h, + [ + AC_DEFINE(ACE_HAS_OSF_TIMOD_H) + ],) + ]) + +AC_CHECK_HEADER(tiuser.h, dnl + [ + ace_has_tli=yes + AC_DEFINE(ACE_HAS_TIUSER_H) + AC_DEFINE(ACE_HAS_TLI) + ],) + +if test "$ac_cv_header_tiuser_h" = yes; then + ACE_CACHE_CHECK(if tiuser.h is protected by extern \"C\", + ace_cv_lib_tiuser_with_extern_c,[ + AC_EGREP_HEADER(extern \"C\", tiuser.h, + [ + ace_cv_lib_tiuser_with_extern_c=yes + ], + [ + ace_cv_lib_tiuser_with_extern_c=no + ]) + ], , AC_DEFINE(ACE_HAS_TIUSER_H_BROKEN_EXTERN_C)) +fi dnl test "$ac_cv_header_tiuser_h" = yes + +AC_CHECK_HEADER(xliuser.h, dnl + [ + ace_has_tli=yes + AC_DEFINE(ACE_HAS_XLI) + AC_DEFINE(ACE_HAS_TLI) + ],) + + +dnl Check for TLI prototypes +if test "$ace_has_tli" = yes; then + ACE_CACHE_CHECK(for TLI prototypes, + ace_cv_lib_tli_prototypes, + [ +dnl We only check for t_accept. This should hopefully be enough. + AC_EGREP_CPP(t_accept, + [ +#if defined (ACE_HAS_TIMOD_H) +# include <sys/timod.h> +#endif + +#if defined (ACE_HAS_OSF_TIMOD_H) +# include <tli/timod.h> +#endif + +#if defined (ACE_HAS_TIUSER_H) || defined (ACE_HAS_XTI) +# if defined (ACE_HAS_TIUSER_H) +# include /**/ <tiuser.h> +# else +# if defined (ACE_HAS_BROKEN_XTI_MACROS) +# undef TCP_NODELAY +# undef TCP_MAXSEG +# endif /* ACE_HAS_BROKEN_XTI_MACROS */ +# if defined ACE_HAS_SYS_XTI_H +# define class ace_xti_class +# include /**/ <sys/xti.h> +# undef class +# else +# include /**/ <xti.h> +# endif /* ACE_HAS_SYS_XTI_H */ +# endif /* ACE_HAS_TIUSER_H */ +#endif /* ACE_HAS_TIUSER_H || ACE_HAS_XTI */ + +#if defined (ACE_HAS_XLI) +# include <xliuser.h> +#endif + ], + [ + ace_cv_lib_tli_prototypes=yes + ], + [ + ace_cv_lib_tli_prototypes=no + ]) + ], AC_DEFINE(ACE_HAS_TLI_PROTOTYPES),) + +dnl Check for t_errno type in TLI headers + ACE_CACHE_CHECK(for t_errno in TLI headers, + ace_cv_lib_has_t_errno, + [ + dnl Check if t_errno is declared in the TLI headers + AC_EGREP_CPP(t_errno, + [ +#if defined (ACE_HAS_TIMOD_H) +# include <sys/timod.h> +#endif + +#if defined (ACE_HAS_OSF_TIMOD_H) +# include <tli/timod.h> +#endif + +#if defined (ACE_HAS_TIUSER_H) || defined (ACE_HAS_XTI) +# if defined (ACE_HAS_TIUSER_H) +# include /**/ <tiuser.h> +# else +# if defined (ACE_HAS_BROKEN_XTI_MACROS) +# undef TCP_NODELAY +# undef TCP_MAXSEG +# endif /* ACE_HAS_BROKEN_XTI_MACROS */ +# if defined ACE_HAS_SYS_XTI_H +# define class ace_xti_class +# include /**/ <sys/xti.h> +# undef class +# else +# include /**/ <xti.h> +# endif /* ACE_HAS_SYS_XTI_H */ +# endif /* ACE_HAS_TIUSER_H */ +#endif /* ACE_HAS_TIUSER_H || ACE_HAS_XTI */ + +#if defined (ACE_HAS_XLI) +# include <xliuser.h> +#endif + +#ifndef _THREAD_SAFE +# define _THREAD_SAFE +#endif + ], + [ + ace_cv_lib_has_t_errno=yes + ], + [ + ace_cv_lib_has_t_errno=no + ]) + ], + [ + dnl Do not define ACE_HAS_BROKEN_T_ERRNO if t_errno isn't declared in a + dnl header since ACE's definition of _terrno needs a previously declared + dnl t_errno. + AC_CHECK_FUNC(_terrno, , AC_DEFINE(ACE_HAS_BROKEN_T_ERRNO)) + ], + [ + AC_DEFINE(ACE_LACKS_T_ERRNO) + ]) + +fi dnl test "$ace_has_tli" = yes +fi dnl test "$ace_has_tli_funcs" = yes + +AC_CHECK_HEADER(sys/time.h, dnl + [ + AC_EGREP_HEADER(sys/time.h, time.h, + , + [ + AC_DEFINE(ACE_LACKS_SYSTIME_H) + ]) + ],) + +dnl See the notes about ACE_LACKS_MMAP in the functions section of this +dnl configure script. +dnl -Ossama +AC_CHECK_HEADER(sys/mman.h, dnl + [ + AC_EGREP_HEADER(extern \"C\", sys/mman.h, + , + [ + AC_DEFINE(ACE_HAS_BROKEN_MMAP_H) + ]) + ], + [ + AC_DEFINE(ACE_LACKS_MMAP) + ]) + +dnl Check for bzero() prototype if bstring.h exists. +AC_CHECK_HEADER(bstring.h, dnl + [ + AC_EGREP_HEADER(bzero, bstring.h, + [ + AC_DEFINE(ACE_HAS_BSTRING) + ],) + ],) + +AC_CHECK_HEADER(strings.h, dnl + [ + AC_EGREP_HEADER(bzero, strings.h, + [ + AC_DEFINE(ACE_HAS_STRINGS) + ],) + ],) + +AC_CHECK_HEADER(sys/syscall.h, dnl + AC_DEFINE(ACE_HAS_SYSCALL_H),) + +AC_CHECK_HEADER(poll.h, dnl + AC_DEFINE(ACE_HAS_POLL),) + +dnl We want AC_CHECK_HEADERS so that "HAVE_PWD_H" gets defined if we have it. +dnl "HAVE_PWD_H" is used in one of the tests later on. +AC_CHECK_HEADERS(pwd.h,,) dnl + +AC_CHECK_HEADER(regexpr.h, dnl + AC_DEFINE(ACE_HAS_REGEX),) + +AC_CHECK_HEADER(stropts.h, dnl + AC_DEFINE(ACE_HAS_STREAMS),) + +AC_CHECK_HEADER(siginfo.h, dnl + , + AC_DEFINE(ACE_LACKS_SIGINFO_H)) + +AC_CHECK_HEADER(unistd.h, dnl + , + AC_DEFINE(ACE_LACKS_UNISTD_H)) + +AC_CHECK_HEADER(ucontext.h, dnl + , + AC_DEFINE(ACE_LACKS_UCONTEXT_H)) + +AC_CHECK_HEADER(utime.h, dnl + AC_DEFINE(ACE_HAS_UTIME),) + +dnl This check will be disabled until we can get ACE to compile when it +dnl ACE_HAS_UNICODE is defined on UN*X systems +dnl AC_CHECK_HEADER(wchar.h, +dnl AC_DEFINE(ACE_HAS_UNICODE),) + +AC_CHECK_HEADER(libc.h, dnl + AC_DEFINE(ACE_HAS_LIBC_H)) + +AC_CHECK_HEADER(osfcn.h, dnl + AC_DEFINE(ACE_HAS_OSFCN_H)) + +AC_CHECK_HEADER(new, dnl + AC_DEFINE(ACE_HAS_NEW_NO_H), + [ + AC_CHECK_HEADER(new.h, dnl + AC_DEFINE(ACE_HAS_NEW_H)) + ]) + +AC_CHECK_HEADER(stdexcept, dnl + AC_DEFINE(ACE_HAS_STDEXCEPT_NO_H), + [ + AC_CHECK_HEADER(exception.h, dnl + AC_DEFINE(ACE_HAS_EXCEPTION_H)) + ]) + +AC_CHECK_HEADER(iomanip, dnl + AC_DEFINE(ACE_HAS_IOMANIP_NO_H)) + +dnl ace/OS.i can #include <cstring>, not #include <cstring.h> +dnl "cstring" is the correct form. +dnl TODO: Double check the above comment. +AC_CHECK_HEADER(cstring, dnl + AC_DEFINE(ACE_HAS_GNU_CSTRING_H),) + +AC_CHECK_HEADER(auto_ptr,,) dnl + +AC_CHECK_HEADER(map, dnl +[ + AC_CHECK_HEADER(net/if.h, + [ + ACE_CACHE_CHECK(if STL map class conflicts with <net/if.h> map struct, + ace_cv_header_stl_map_conflict, + [ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <map> +#include <net/if.h> + ], + [ + map<char, char> ace_map; + ], + [ + ace_cv_header_stl_map_conflict=no + ], + [ + ace_cv_header_stl_map_conflict=yes + ]) + ], AC_DEFINE(ACE_HAS_STL_MAP_CONFLICT),) + ],) +],) + +AC_CHECK_HEADER(queue, dnl +[ + AC_CHECK_HEADER(netinet/in.h, + [ + ACE_CACHE_CHECK(if STL queue class conflicts with <netinet/in.h> queue struct, + ace_cv_header_stl_queue_conflict, + [ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <queue> +#include <netinet/in.h> + ], + [ + queue<char> ace_queue; + ], + [ + ace_cv_header_stl_queue_conflict=no + ], + [ + ace_cv_header_stl_queue_conflict=yes + ]) + ], AC_DEFINE(ACE_HAS_STL_QUEUE_CONFLICT),) + ],) +],) + +dnl Check for availablity of "new style" C++ stream headers +AC_CHECK_HEADERS(iomanip ios iostream istream ostream fstream streambuf, + , + AC_DEFINE(ACE_USES_OLD_IOSTREAMS)) + +AC_CHECK_HEADER(iostream.h, dnl + AC_CHECK_HEADER(fstream.h, , AC_DEFINE(ACE_LACKS_IOSTREAM_TOTALLY)), + AC_DEFINE(ACE_LACKS_IOSTREAM_TOTALLY)) + +dnl Check if platform needs to #include <sched.h> to get thread +dnl scheduling defs. +ACE_CACHE_CHECK(if platform needs sched.h for thread scheduling definitions, + ace_cv_needs_sched_h,[ + AC_EGREP_HEADER(sched_yield, sched.h, + [ + ace_cv_needs_sched_h=yes + ], + [ + ace_cv_needs_sched_h=no + ]) + ], AC_DEFINE(ACE_LACKS_SCHED_H),) + +dnl Check if platform needs to #include <regexpr.h> for +dnl regular expression support +ACE_CACHE_CHECK(if platform needs regexpr.h for regular expression support, + ace_cv_needs_regexpr_h, [ + AC_EGREP_HEADER(compile, regexpr.h, + [ + ace_cv_needs_regexpr_h=yes + AC_DEFINE(ACE_NEEDS_REGEXPR_H) + ], + [ + AC_EGREP_HEADER(step, regexpr.h, + [ + ace_cv_needs_regexpr_h=yes + ], + [ + ace_cv_needs_regexpr_h=no + ]) + ]) + ], AC_DEFINE(ACE_NEEDS_REGEXPR_H),) + +dnl Check if sprintf() returns char* +ACE_CONVERT_WARNINGS_TO_ERRORS([ +ACE_CACHE_CHECK(if sprintf() returns char*, + ace_cv_lib_charptr_sprintf, + [ + AC_TRY_COMPILE( + [ +#include <stdlib.h> +#include <stdio.h> + ], + [ + char *str = 0; + const char *fmt = "%d"; + int num = 0; + + char *s = 0; + + s = sprintf(str, fmt, num); + ], + [ + ace_cv_lib_charptr_sprintf=yes + ], + [ + ace_cv_lib_charptr_sprintf=no + ]) + ], AC_DEFINE(ACE_HAS_CHARPTR_SPRINTF),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check for getopt() prototype +ACE_CACHE_CHECK(for getopt() prototype, ace_cv_lib_getopt_proto, [ + AC_EGREP_HEADER(getopt, unistd.h, + [ + ace_cv_lib_getopt_proto=yes + ], + [ + AC_EGREP_HEADER(getopt, stdlib.h, + [ + ace_cv_lib_getopt_proto=yes + ], + [ + ace_cv_lib_getopt_proto=no + ]) + ]) +], , AC_DEFINE(ACE_LACKS_GETOPT_PROTO)) + +dnl Check for old malloc() prototype. +ACE_CONVERT_WARNINGS_TO_ERRORS([ +ACE_CACHE_CHECK(for old malloc() prototype, + ace_cv_lib_old_malloc_proto, + [ + AC_TRY_COMPILE( + [ +#include <stdlib.h> +#ifndef ACE_LACKS_MALLOC_H +# include <malloc.h> +#endif + ], + [ + char *s = 0; + s = malloc(sizeof(int)); + ], + [ + ace_cv_lib_old_malloc_proto=yes + ], + [ + ace_cv_lib_old_malloc_proto=no + ]) + ], AC_DEFINE(ACE_HAS_OLD_MALLOC),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check for *_timedwait() prototypes +dnl TODO: We only check for one of the *_timedwait() prototypes. +dnl Is this enough? +ACE_CACHE_CHECK(for *_timedwait() prototypes, ace_cv_lib_timedwait_proto, [ + AC_EGREP_HEADER(recv_timedwait, pthread.h, + [ + ace_cv_lib_timedwait_proto=yes + ], + [ + AC_EGREP_HEADER(recv_timedwait, fcntl.h, + [ + ace_cv_lib_timedwait_proto=yes + ], + [ + ace_cv_lib_timedwait_proto=no + ]) + ]) +], , AC_DEFINE(ACE_LACKS_TIMEDWAIT_PROTOTYPES)) + +dnl Check for ualarm prototype in unistd.h. +dnl Most Unices seem to put it there (?) +ACE_CACHE_CHECK(for ualarm() prototype, ace_cv_lib_ualarm_proto, [ + AC_EGREP_HEADER(ualarm, unistd.h, + [ + ace_cv_lib_ualarm_proto=yes + ], + [ + ace_cv_lib_ualarm_proto=no + ]) +], , AC_DEFINE(ACE_LACKS_UALARM_PROTOTYPE)) + +dnl Check for getrusage prototype in sys/resource.h +ACE_CACHE_CHECK(for getrusage() in sys/resource.h, + ace_cv_lib_has_getrusage_proto, [ + AC_EGREP_HEADER(getrusage, sys/resource.h, + [ + ace_cv_lib_has_getrusage_proto=yes + ], + [ + ace_cv_lib_has_getrusage_proto=no + ]) +], AC_DEFINE(ACE_HAS_GETRUSAGE_PROTO),) + +dnl Check for {get,set}rlimit prototypes in sys/resource.h +ACE_CACHE_CHECK(for getrlimit() and setrlimit() in sys/resource.h, + ace_cv_lib_has_getsetrlimit_proto, [ + AC_EGREP_HEADER(getrlimit, sys/resource.h, + [ + AC_EGREP_HEADER(getrlimit, sys/resource.h, + [ + ace_cv_lib_has_getsetrlimit_proto=yes + ], + [ + ace_cv_lib_has_getsetrlimit_proto=no + ]) + ], + [ + ace_cv_lib_has_getsetrlimit_proto=no + ]) +], , AC_DEFINE(ACE_LACKS_RLIMIT_PROTOTYPE)) + +dnl Check for platforms that don't declare dl* functions +dnl as extern "C" in dlfcn.h. +dnl TODO: This check looks feeble to me... +dnl NOTE: Linux header files ARE protected with extern "C" by the +dnl __BEGIN_DECLS macro, so don't be surprised! +ACE_CACHE_CHECK(if dlfcn.h is protected by extern \"C\", + ace_cv_lib_dlfcn_with_extern_c,[ + AC_EGREP_HEADER(extern \"C\", dlfcn.h, + [ + ace_cv_lib_dlfcn_with_extern_c=yes + ], + [ + ace_cv_lib_dlfcn_with_extern_c=no + ]) +], , AC_DEFINE(ACE_HAS_DLFCN_H_BROKEN_EXTERN_C)) + +dnl +dnl SECTION 6: Checks for typedefs +dnl + +dnl Standard typedef checks (All of them may not be needed +AC_TYPE_UID_T +AC_TYPE_MODE_T +AC_TYPE_OFF_T +AC_TYPE_PID_T +AC_TYPE_SIZE_T + +dnl Specific typedef checks +dnl TODO: Check whether these typedefs can be defined somewhere else. +ACE_CHECK_TYPE(idtype_t, signal.h, AC_DEFINE(ACE_HAS_IDTYPE_T),) +ACE_CHECK_TYPE(sem_t, semaphore.h,,) +ACE_CHECK_TYPE(key_t, sys/types.h, ,AC_DEFINE(ACE_LACKS_KEY_T)) +ACE_CHECK_TYPE(ssize_t, sys/types.h, AC_DEFINE(ACE_HAS_SSIZE_T),) +ACE_CHECK_TYPE(u_longlong_t, sys/types.h, , AC_DEFINE(ACE_LACKS_U_LONGLONG_T)) +ACE_CHECK_TYPE(pri_t, sys/types.h, ,AC_DEFINE(ACE_LACKS_PRI_T)) +ACE_CHECK_TYPE(socklen_t, sys/socket.h, AC_DEFIE(ACE_HAS_SOCKLEN_T),) +ACE_CHECK_TYPE(ucontext_t, ucontext.h, AC_DEFINE(ACE_HAS_UCONTEXT_T),) +ACE_CHECK_TYPE(wchar_t, wchar.h, AC_DEFINE(ACE_HAS_XPG4_MULTIBYTE_CHAR), + [ + ACE_CHECK_TYPE(wchar_t, sys/types.h,,AC_DEFINE(ACE_LACKS_WCHAR_T)) + ]) + +dnl Check for sig_atomic_t +ACE_CACHE_CHECK(for sig_atomic_t, + ace_cv_lib_posix_defines_sig_atomic_t,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <signal.h> + ], + [ + sig_atomic_t sat; + ], + [ + ace_cv_lib_posix_defines_sig_atomic_t=yes + ], + [ + ace_cv_lib_posix_defines_sig_atomic_t=no + ]) +], AC_DEFINE(ACE_HAS_SIG_ATOMIC_T),) + +dnl +dnl SECTION 7: checks for structures +dnl + +dnl TODO: Check whether these structures can be defined somewhere else. +ACE_CHECK_STRUCT(flock, fcntl.h, , AC_DEFINE(ACE_LACKS_FILELOCKS)) +ACE_CHECK_STRUCT(rwlock_t, synch.h, , AC_DEFINE(ACE_LACKS_RWLOCK_T)) +ACE_CHECK_STRUCT(strbuf, stropts.h, AC_DEFINE(ACE_HAS_STRBUF_T),) +ACE_CHECK_STRUCT(msgbuf, sys/msg.h, , AC_DEFINE(ACE_LACKS_MSGBUF_T)) +case "$target" in +*irix*) + dnl IRIX prusage fields don't match what ACE currently supports. + ;; +*) + ACE_CHECK_STRUCT(prusage_t, sys/procfs.h, AC_DEFINE(ACE_HAS_PRUSAGE_T),) + ;; +esac +ACE_CHECK_STRUCT(strrecvfd, stropts.h, , AC_DEFINE(ACE_LACKS_STRRECVFD)) +ACE_CHECK_STRUCT(sembuf, sys/sem.h, , AC_DEFINE(ACE_LACKS_SEMBUF_T)) +ACE_CHECK_STRUCT(sigaction, signal.h, , AC_DEFINE(ACE_LACKS_SIGACTION)) +ACE_CHECK_STRUCT(sigset_t, signal.h, , AC_DEFINE(ACE_LACKS_SIGSET)) +ACE_CHECK_STRUCT(utsname, sys/utsname.h, , AC_DEFINE(ACE_LACKS_UTSNAME_T)) + +dnl Thanks to Konstantinos Margaritis <kmargar@cc.uoa.gr> for pointing out +dnl that struct siginfo_t may also be defined in signal.h +ACE_CACHE_CHECK(for struct siginfo_t, ace_cv_struct_siginfo_t, + [ + dnl Since we are checking for siginfo_t in more than one header + dnl we can't use the ACE_CHECK_STRUCT macro so we have to do things + dnl manually. + ACE_TRY_COMPILE_STRUCT(siginfo_t, siginfo.h, + [ + ace_cv_struct_siginfo_t=yes + ], + [ + ACE_TRY_COMPILE_STRUCT(siginfo_t, signal.h, + [ + ace_cv_struct_siginfo_t=yes + ], + [ + ace_cv_struct_siginfo_t=no + ]) + ]) + ], + [ + AC_DEFINE(ACE_HAS_SIGINFO_T) + ],) + +dnl Some platforms need to include sys/types.h before sys/socket.h +dnl in order for struct msghdr to work. +dnl Check for msghdr structure. +ACE_CACHE_CHECK(for struct msghdr, ace_cv_struct_msghdr, + [ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + struct msghdr ace_msghdr; + ], + [ + ace_cv_struct_msghdr=yes + ], + [ + ace_cv_struct_msghdr=no + ]) + ], AC_DEFINE(ACE_HAS_MSG),) + +ACE_CACHE_CHECK(for condition variable support, ace_cv_struct_cond_t, + [ + AC_TRY_COMPILE( + [ +#include <pthread.h> + ], + [ + pthread_cond_t ace_pthread_cond_t; + ], + [ + ace_cv_struct_cond_t=yes + ], + [ + AC_TRY_COMPILE( + [ +#include <synch.h> + ], + [ + cond_t ace_cond_t; + ], + [ + ace_cv_struct_cond_t=yes + ], + [ + ace_cv_struct_cond_t=no + ]) + ]) + ], , AC_DEFINE(ACE_LACKS_COND_T)) + +dnl Check for struct timespec +ACE_CACHE_CHECK(for POSIX timer structure, + ace_cv_lib_posix_timer_struct,[ + AC_TRY_COMPILE( + [ +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + ], + [ + timespec sr; + ], + [ + ace_cv_lib_posix_timer_struct=yes + ], + [ + dnl Check if platform uses struct timestruc_t for POSIX timers + dnl instead of struct timespec. + AC_TRY_COMPILE( + [ +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + ], + [ + timestruc_t sr; + ], + [ + ace_cv_lib_posix_timer_struct=yes + dnl Check for struct timespec in <sys/timers.h> + ACE_CACHE_CHECK(for struct timespec in sys/timers.h, + ace_cv_lib_posix_struct_timespec_broken,[ + AC_TRY_COMPILE( + [ +#include <sys/timers.h> + ], + [ + timespec sr; + ], + [ + ace_cv_lib_posix_struct_timespec_broken=yes + ], + [ + ace_cv_lib_posix_struct_timespec_broken=no + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_POSIX_TIME),) + ], + [ + ace_cv_lib_posix_timer_struct=no + ]) + ]) + ], + [ + AC_DEFINE(ACE_HAS_POSIX_TIME) + if test "$ace_cv_lib_posix_struct_timespec_broken" = yes; then + AC_DEFINE(ACE_HAS_BROKEN_POSIX_TIME) + fi + ], + [ + dnl Check for struct timespec in <sys/timers.h> + ACE_CACHE_CHECK(for struct timespec in sys/timers.h, + ace_cv_lib_posix_struct_timespec_broken,[ + AC_TRY_COMPILE( + [ +#include <sys/timers.h> + ], + [ + timespec sr; + ], + [ + ace_cv_lib_posix_struct_timespec_broken=yes + ], + [ + ace_cv_lib_posix_struct_timespec_broken=no + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_POSIX_TIME),) + ]) + +dnl Check for typedef timespec_t +dnl TODO: Check whether this typedef can be defined somewhere else. +ACE_CACHE_CHECK(for timespec_t, + ace_cv_lib_posix_timespec_t,[ + AC_TRY_COMPILE( + [ +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + ], + [ + timespec_t tt; + ], + [ + ace_cv_lib_posix_timespec_t=yes + ], + [ + ace_cv_lib_posix_timespec_t=no + ]) +], , AC_DEFINE(ACE_LACKS_TIMESPEC_T)) + +dnl Check for union semun +ACE_CACHE_CHECK(for union semun, + ace_cv_lib_posix_defines_union_semun,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/sem.h> + ], + [ + semun us; + ], + [ + ace_cv_lib_posix_defines_union_semun=yes + ], + [ + ace_cv_lib_posix_defines_union_semun=no + ]) +], AC_DEFINE(ACE_HAS_SEMUN),) + +dnl +dnl SECTION 8: checks for variables +dnl + +dnl Check for broken struct timespec members +ACE_CACHE_CHECK(for broken struct timespec members, + ace_cv_lib_broken_timespec, + [ + AC_TRY_COMPILE( + [ +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + ], + [ + timespec sr; + sr.ts_sec = 0; + sr.ts_nsec = 0; + ], + [ + ace_cv_lib_broken_timespec=yes + ], + [ + ace_cv_lib_broken_timespec=no + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_TIMESPEC_MEMBERS),) + +dnl Check for more than two fields in struct rusage +ACE_CACHE_CHECK(for limited struct rusage, + ace_cv_lib_limited_rusage,[ + AC_TRY_COMPILE( + [ +#include <sys/resource.h> + ], + [ + rusage ace_rusage; + /* + We just pick three (i.e. > 2) of the fields that + ACE uses to see if we have a struct rusage that + has more than two fields. + */ + ace_rusage.ru_ixrss = 0; + ace_rusage.ru_idrss = 0; + ace_rusage.ru_isrss = 0; + ], + [ + ace_cv_lib_limited_rusage=no + ], + [ + ace_cv_lib_limited_rusage=yes + ]) +], AC_DEFINE(ACE_HAS_LIMITED_RUSAGE_T),) + +if test "$ace_cv_struct_siginfo_t" = yes; then + dnl Check for si_addr member in struct siginfo_t + ACE_CACHE_CHECK(for si_addr member in struct siginfo_t, + ace_cv_lib_posix_si_addr,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SIGINFO_H +# include <siginfo.h> +#endif +#include <signal.h> + ], + [ + siginfo_t acesig; + acesig.si_addr = 0; + ], + [ + ace_cv_lib_posix_si_addr=yes + ], + [ + ace_cv_lib_posix_si_addr=no + ]) + ], , AC_DEFINE(ACE_LACKS_SI_ADDR)) +fi dnl test "$ace_cv_struct_siginfo_t" = yes + +dnl Check for sin_len member in struct sockaddr_in +ACE_CACHE_CHECK(for sin_len member in struct sockaddr_in, + ace_cv_lib_has_sin_len,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +qQqq#include <netinet/in.h> + ], + [ + sockaddr_in ace_sin; + ace_sin.sin_len = sizeof(ace_sin); + ], + [ + ace_cv_lib_has_sin_len=yes + ], + [ + ace_cv_lib_has_sin_len=no + ]) +], AC_DEFINE(ACE_HAS_SIN_LEN),) + +dnl Check for sys_siglist +dnl TODO: Check whether this variable can be defined somewhere else. +dnl [OSSAMA: Should we use autoconf's AC_DECL_SYS_SIGLIST test instead?] +ACE_CACHE_CHECK(for sys_siglist, + ace_cv_lib_posix_sys_siglist,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#include <signal.h> +#if !defined (_sys_siglist) +# define _sys_siglist sys_siglist +#endif + ], + [ + void* vp = (void*) &_sys_siglist; + ], + [ + ace_cv_lib_posix_sys_siglist=yes + ], + [ + ace_cv_lib_posix_sys_siglist=no + ]) +], AC_DEFINE(ACE_HAS_SYS_SIGLIST),) + +dnl Check for sys_errlist +dnl TODO: Check whether this variable can be defined somewhere else. +ACE_CACHE_CHECK(for sys_errlist, + ace_cv_lib_posix_sys_errlist,[ + AC_TRY_COMPILE( + [ +#include <stdio.h> +#include <errno.h> +#if !defined (_sys_errlist) +# define _sys_errlist sys_errlist +#endif + ], + [ + void* vp = (void*) &_sys_errlist; + ], + [ + ace_cv_lib_posix_sys_errlist=yes + ], + [ + ace_cv_lib_posix_sys_errlist=no + ]) +], AC_DEFINE(ACE_HAS_SYS_ERRLIST),) + +dnl Check for sys_nerr +dnl TODO: Check whether this variable can be defined somewhere else. +ACE_CACHE_CHECK(for sys_nerr in headers, + ace_cv_lib_posix_sys_nerr,[ + AC_TRY_COMPILE( + [ +#include <stdio.h> +#include <errno.h> +#if !defined (_sys_nerr) +# define _sys_nerr sys_nerr +#endif + ], + [ + void* vp = (void*) &_sys_nerr; + ], + [ + ace_cv_lib_posix_sys_nerr=yes + ], + [ + ace_cv_lib_posix_sys_nerr=no + ]) + ], + [ + dnl Do nothing + ], + [ + AC_CHECK_FUNC(sys_nerr,, + AC_DEFINE(ACE_LACKS_SYS_NERR)) + ]) + +dnl +dnl SECTION 9: checks for compiler characteristics +dnl + +dnl Check if compiler accepts "#pragma once" directive +ACE_CONVERT_WARNINGS_TO_ERRORS([ + ACE_CACHE_CHECK(if compiler accepts \"pragma once\" directive, + ace_cv_has_pragma_once, + [ + AC_TRY_COMPILE( + [ +#pragma once + ], + [ + int a = 0; /* Put this here so we don't have an empty main(). */ + ], + [ + ace_cv_has_pragma_once=yes + ], + [ + ace_cv_has_pragma_once=no + ]) + ], , AC_DEFINE(ACE_LACKS_PRAGMA_ONCE)) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl If we are using GNU C++, see if it accepts the -pipe compiler flag. +dnl "-pipe" on cygwin32 doesn't seem to work, for example. +if test -n "$GXX"; then + PREPIPECXXFLAGS="$CXXFLAGS" + CXXFLAGS="$CXXFLAGS -pipe" + PREPIPECFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -pipe" + ACE_CACHE_CHECK(if \"-pipe\" compiler flag is supported, + ace_cv_feature_gxx_has_pipe, + [ + AC_TRY_COMPILE(, [int a = 0;], + [ + ace_cv_feature_gxx_has_pipe=yes + ], + [ + ace_cv_feature_gxx_has_pipe=no + ]) + ], + [ + dnl We don't need to add "-pipe" here since it was already added + dnl for the test. + dnl CXXFLAGS="$PREPIPECXXFLAGS -pipe" + dnl CFLAGS="$PREPIPECFLAGS -pipe" + ], + [ + CXXFLAGS="$PREPIPECXXFLAGS" + CFLAGS="$PREPIPECFLAGS" + ]) +fi + +dnl Check for working "const" +dnl This test doesn't always work. +dnl AC_C_CONST + +dnl Check for working "inline" +AC_C_INLINE +if test "$ac_cv_c_inline" = no; then + AC_DEFINE(ACE_LACKS_INLINE_FUNCTIONS) +fi + +dnl Check to see if we are running on a big endian platform +dnl "ace/Basic_Types.h" should perhaps be modified to take advantage +dnl of the results of this test. +dnl Do not run this test if we are using a cross-compiler. +if test "$cross_compiling" != yes; then + AC_C_BIGENDIAN +fi + +dnl Check type sizes +dnl If we get a size of zero, then the type is unknown to the compiler. + +dnl We don't need to check for sizeof(char) right now. Also conflicts with +dnl ACE definition in Basic_Types.h, so we leave the test out. +if test "$cross_compiling" != yes; then + dnl AC_CHECK_SIZEOF(char, 1) + dnl if test "$ac_cv_sizeof_char" != "0"; then + dnl AC_DEFINE(ACE_SIZEOF_CHAR, SIZEOF_CHAR) + dnl fi + AC_CHECK_SIZEOF(short, 2) + if test $ac_cv_sizeof_short != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_SHORT, $ac_cv_sizeof_short) + fi + AC_CHECK_SIZEOF(int, 4) + if test $ac_cv_sizeof_int != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_INT, $ac_cv_sizeof_int) + fi + AC_CHECK_SIZEOF(long, 4) + if test $ac_cv_sizeof_long != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_LONG, $ac_cv_sizeof_long) + fi + AC_CHECK_SIZEOF(long long, 8) + if test $ac_cv_sizeof_long_long != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_LONG_LONG, $ac_cv_sizeof_long_long) + else + AC_DEFINE(ACE_LACKS_LONGLONG_T) + fi + AC_CHECK_SIZEOF(void *, 4) + if test $ac_cv_sizeof_void_p != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_VOID_P, $ac_cv_sizeof_void_p) + fi + AC_CHECK_SIZEOF(float, 4) + if test $ac_cv_sizeof_float != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_FLOAT, $ac_cv_sizeof_float) + else + AC_DEFINE(ACE_LACKS_FLOATING_POINT) + fi + AC_CHECK_SIZEOF(double, 8) + if test $ac_cv_sizeof_double != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_DOUBLE, $ac_cv_sizeof_double) + else + AC_DEFINE(ACE_LACKS_FLOATING_POINT) + fi + AC_CHECK_SIZEOF(long double, 16) + if test $ac_cv_sizeof_long_double != 0; then + AC_DEFINE_UNQUOTED(ACE_SIZEOF_LONG_DOUBLE, $ac_cv_sizeof_long_double) + fi + + dnl Set the 64 bit unsigned int typedef + ACE_UINT64="" + dnl if test "$ace_cv_type_u_longlong_t" = yes; then + dnl This doesn't work: AC_CHECK_SIZEOF(u_longlong_t, 8) + dnl if test $ac_cv_sizeof_u_longlong_t = 8; then + dnl ACE_UINT64="u_longlong_t" + dnl ace_u_long_long_typedef_set=yes + dnl fi + dnl elif test $ac_cv_sizeof_long = 8; then + if test $ac_cv_sizeof_long = 8; then + ACE_UINT64="unsigned long" + ace_u_long_long_typedef_set=yes + elif test $ac_cv_sizeof_long_long = 8; then + ACE_UINT64="unsigned long long" + ace_u_long_long_typedef_set=yes + else + ace_u_long_long_typedef_set=no + fi + + dnl Check for broken "signed char" + dnl If AC_CHECK_SIZEOF(signed char) returns zero then "signed char" + dnl is broken. + AC_CHECK_SIZEOF(signed char, 1) + if test $ac_cv_sizeof_signed_char = 0; then + AC_DEFINE(ACE_LACKS_SIGNED_CHAR) + fi +fi dnl test "$cross_compiling" != yes + +dnl Other checks + +dnl Check if we have working C++ explicit template destructors +dnl Thanks to Nanbor Wang <nanbor@cs.wustl.edu> for providing this test. +ACE_CACHE_CHECK(for working C++ explicit template destructors, + ace_cv_feature_working_explicit_des, + [ + AC_TRY_COMPILE([ +#include <iostream.h> + +class dyn +{ + public: + dyn () { cout << "dyn" << endl; } + ~dyn () { cout << "~dyn" << endl; } +}; + +template <class T> +class Base +{ + public: + Base () { cout << "Base" << endl; } + virtual void f (void) { cout << "Base::f" << endl; } + ~Base () { cout << "~Base" << endl; } +}; + +template <class T> +class Derived +{ + public: + Derived () + { + x_ = new Base<T> (); cout << "Derived" << endl ; + } + virtual void f (void) { cout << "Derived::f" << endl; } + ~Derived () { x_->~Base (); cout << "~Derived" << endl; } + private: + Base<T> *x_; + T t_; +}; + ], + [ + Derived<dyn> *x = new Derived<dyn> (); + + x->f (); + + delete x; + return 0; + ], + [ + ace_cv_feature_working_explicit_des=yes + ], + [ + ace_cv_feature_working_explicit_des=no + ]) + ], AC_DEFINE(ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR),) + +dnl Checkfor C++ "using" keyword support +ACE_CACHE_CHECK(for C++ \"using\" keyword support, + ace_cv_feature_cxx_using_keyword, + [ + AC_TRY_COMPILE([ +#include <iostream.h> + ], + [ + using namespace std; + ], + [ + ace_cv_feature_cxx_using_keyword=yes + ], + [ + ace_cv_feature_cxx_using_keyword=no + ]) + ], AC_DEFINE(ACE_HAS_USING_KEYWORD),) + +dnl Check for C++ standard namespace +ACE_CACHE_CHECK(for C++ standard namespace, + ace_cv_feature_posix_uses_std_namespace,[ + AC_TRY_COMPILE([ +#include <vector.h> + ], + [ + std::vector< int > iv; + ], + [ + ace_cv_feature_posix_uses_std_namespace=yes + ], + [ + ace_cv_feature_posix_uses_std_namespace=no + ]) + ], AC_DEFINE(ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB),) + +dnl Check for new style C++ include file support +ACE_CACHE_CHECK(for new style C++ include file support, + ace_cv_lib_posix_standard_includes,[ + ace_cv_lib_posix_standard_includes=no + if test "$ace_cv_feature_posix_uses_std_namespace" = yes; then + AC_TRY_COMPILE( + [ +#include <string> + ], + [ + std::string str; + ], + ace_cv_lib_posix_standard_includes=yes) + else + AC_TRY_COMPILE( + [ +#include <string> + ], + [ + string str; + ], + ace_cv_lib_posix_standard_includes=yes) + fi + ], + [ + AC_DEFINE(ACE_HAS_STDCPP_STL_INCLUDES) + AC_DEFINE(ACE_HAS_STRING_CLASS) + ],) + +dnl Check for ANSI C++ cast support +ACE_CACHE_CHECK(for ANSI C++ cast support, + ace_cv_lib_posix_standard_casts,[ + AC_TRY_COMPILE( + [/* No headers */], + [ + class B { public: int b_; virtual int b() const = 0; }; + class D : public B { virtual int b() const { return b_; } }; + + void* vp = 0; + char* cp = 0; + float f = 1.0; + int i = 0; + int* ip = 0; + const int* jp = 0; + + i = static_cast<int> (f); + ip = const_cast<int*> (jp); + cp = reinterpret_cast<char*> (vp); + + B* bp = new D; + D* dp = dynamic_cast<D*> (bp); + delete bp; + ], + [ + ace_cv_lib_posix_standard_casts=yes + AC_CACHE_VAL(ace_cv_lib_rtti, ace_cv_lib_rtti=yes) + ], + [ + AC_TRY_COMPILE( + [/* No headers */], + [ + class B { public: int b_; virtual int b() const = 0; }; + class D : public B { virtual int b() const { return b_; } }; + + void* vp = 0; + char* cp = 0; + float f = 1.0; + int i = 0; + int* ip = 0; + const int* jp = 0; + + i = static_cast<int> (f); + ip = const_cast<int*> (jp); + cp = reinterpret_cast<char*> (vp); + ], + [ + ace_cv_lib_posix_standard_casts=yes + AC_CACHE_VAL(ace_cv_lib_rtti, ace_cv_lib_rtti=no) + ], + [ + ace_cv_lib_posix_standard_casts=no + ]) + ]) + ], + [ + AC_DEFINE(ACE_HAS_ANSI_CASTS) + if test "$ace_cv_lib_rtti" = no; then + AC_DEFINE(ACE_LACKS_RTTI) + fi + ],) + +dnl Check if platform supports explicit template instantiation +ACE_CACHE_CHECK(if platform supports explicit template instantiation, + ace_cv_feature_explicit_template_instantiation,[ + AC_TRY_COMPILE([ + template <class T> + class Foo + { + public: + Foo(T bar) : bar_(bar) {}; + private: + T bar_; + }; + template class Foo<int>; + ], + [ + Foo<int> foo(11); + ], + [ + ace_cv_feature_explicit_template_instantiation=yes + ], + [ + ace_cv_feature_explicit_template_instantiation=no + ]) + ], + [ + AC_DEFINE(ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + ], + [ + ACE_CACHE_CHECK(if platform supports pragma template instantiation, + ace_cv_feature_pragma_template_instantiation,[ + AC_TRY_COMPILE([ + template <class T> + class Foo + { + public: + Foo(T bar) : bar_(bar) {}; + private: + T bar_; + }; +#pragma instantiate Foo<int>; + ], + [ + Foo<int> foo(11); + ], + [ + ace_cv_feature_pragma_template_instantiation=yes + ], + [ + ace_cv_feature_pragma_template_instantiation=no + ]) + ], AC_DEFINE(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA),) + ]) + +dnl Check if templates require source on platform +dnl FIXME: This test may be broken. +ACE_CACHE_CHECK(if templates require source on platform, + ace_cv_feature_templates_require_source,[ + AC_TRY_LINK([ +/* +#include "config/trs.h" +*/ + ], + [ + Foo<int> foo(15); + ], + [ + ace_cv_feature_templates_require_source=no + ], + [ + ace_cv_feature_templates_require_source=yes + ]) + ], + [ + AC_DEFINE(ACE_TEMPLATES_REQUIRE_SOURCE) + ],) +AM_CONDITIONAL(TEMPLATES_REQUIRE_SOURCE, + test X$ace_cv_feature_templates_require_source = Xyes) + +dnl Check if platform supports template specialization +ACE_CACHE_CHECK(if platform supports template specialization, + ace_cv_feature_posix_template_specialization,[ + AC_TRY_COMPILE([ + template <class T> + class Foo + { + public: + Foo(T bar) : bar_(bar) {}; + private: + T bar_; + }; + class Foo<int> + { + public: + Foo(int bar) : bar_(bar + 1) {}; + private: + int bar_; + }; + ], + [ + Foo<int> foo(11); + ], + [ + ace_cv_feature_posix_template_specialization=yes + ], + [ + ace_cv_feature_posix_template_specialization=no + ]) + ], AC_DEFINE(ACE_HAS_TEMPLATE_SPECIALIZATION),) + +dnl Check if platform supports typename keyword +ACE_CACHE_CHECK(if platform supports typename keyword, + ace_cv_feature_posix_typename_keyword,[ + AC_TRY_COMPILE([ + class Bar + { + public: + typedef int Y; + Bar(int bar) : bar_(bar) {} + private: + int bar_; + }; + + template <class T> + class Foo + { + public: + typedef typename T::Y Y; + Foo(T* foo) : foo_(foo) {} + void bilbo(typename T::Y y); + private: + T* foo_; + }; + + template <class T> + void Foo<T>::bilbo(typename T::Y y) + { + } + ], + [ + Bar bar(15); + Foo<Bar> foo(&bar); + foo.bilbo(10); + ], + [ + ace_cv_feature_posix_typename_keyword=yes + ], + [ + ace_cv_feature_posix_typename_keyword=no + ]) + ], AC_DEFINE(ACE_HAS_TYPENAME_KEYWORD),) + +dnl Check if platform supports template typedefs +ACE_CACHE_CHECK(if platform supports template typedefs, + ace_cv_feature_posix_template_typedefs,[ + AC_TRY_COMPILE([ +#if defined (ACE_HAS_TYPENAME_KEYWORD) +#define TYPENAME typename +#else +#define TYPENAME +#endif + + class Bar + { + public: + typedef int Y; + Bar(int bar) : bar_(bar) {} + int value() const { return bar_; } + private: + int bar_; + }; + + template <class T> + class Foo + { + public: + typedef TYPENAME T::Y Y; + Foo(T* foo) : foo_(foo) {} + void print(Y y); + private: + T* foo_; + }; + + template <class T> + void Foo<T>::print(TYPENAME T::Y y) + { + } + ], + [ + Bar bar(15); + Foo<Bar> foo(&bar); + foo.print(11); + ], + [ + ace_cv_feature_posix_template_typedefs=yes + ], + [ + ace_cv_feature_posix_template_typedefs=no + ]) + ], AC_DEFINE(ACE_HAS_TEMPLATE_TYPEDEFS),) + +dnl Check if platform supports static data member templates +ACE_CACHE_CHECK(if platform supports static data member templates, + ace_cv_feature_posix_static_data_member_templates,[ + AC_TRY_COMPILE([ + template <class T> + class Foo + { + public: + static T* sdm; + }; + template <class T> T* Foo<T>::sdm = 0; + ], + [ + /* No body */ + ], + [ + ace_cv_feature_posix_static_data_member_templates=yes + ], + [ + ace_cv_feature_posix_static_data_member_templates=no + ]) + ], ,AC_DEFINE(ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES)) + +dnl if platform supports C++ exceptions +if test "$ace_user_enable_exceptions" = yes; then + ACE_CACHE_CHECK(if platform supports C++ exceptions, + ace_cv_feature_posix_exceptions,[ + AC_TRY_COMPILE(, + [ + int ret = 0; + class ACE {}; + try + { + throw ACE(); + } + catch (ACE) + { + ret = 1; + } + ], + [ + ace_cv_feature_posix_exceptions=yes + ], + [ + ace_cv_feature_posix_exceptions=no + ]) + ], AC_DEFINE(ACE_HAS_EXCEPTIONS), ace_user_enable_exceptions=no) + +fi dnl test "$ace_user_enable_exceptions" = yes + +dnl Check if we need a non-static object manager +dnl TODO / FIXME +dnl ACE_CACHE_CHECK(if we need a non-static object manager, +dnl ace_cv_feature_nonstatic_object_manager,[ +dnl ace_cv_feature_nonstatic_object_manager=yes + dnl TODO: Should we check for this thing (and HOW), or + dnl should it be the user's choice? + dnl + dnl For now, we will leave it as a user's choice. + dnl -Ossama +dnl ], +dnl [ + dnl Don't define anything until we have a test for this. + dnl AC_DEFINE(ACE_HAS_NONSTATIC_OBJECT_MANAGER) +dnl ],) + +dnl Check whether platform supports the standard C++ library +dnl TODO: For now, check whether headers <new> and <iomanip> +dnl and <auto_ptr> exist; is there a better way? +if test "$ac_cv_header_new" = yes && + test "$ac_cv_header_iomanip" = yes && + test "$ac_cv_header_auto_ptr" = yes; then + AC_DEFINE(ACE_HAS_STANDARD_CPP_LIBRARY) +fi + + +dnl +dnl SECTION 10: checks for library functions +dnl + +AC_FUNC_ALLOCA +if test "$ac_cv_header_alloca_h" = yes; then + AC_DEFINE(ACE_HAS_ALLOCA_H) +fi +if test "$ac_cv_func_alloca_works" = yes; then + AC_DEFINE(ACE_HAS_ALLOCA) +fi + +dnl ACE should really have something for both the sys/mman.h header +dnl and the mmap function since we need sys/mman.h for functions like +dnl mprotect and msync, but don't want to use mmap if it doesn't work. +dnl For now, we just check for the sys/mman.h header earlier in this +dnl configure script. +dnl +dnl AC_FUNC_MMAP +dnl if test "$ac_cv_func_mmap_fixed_mapped" = no; then +dnl Even if we have mmap, do not use if broken! +dnl AC_DEFINE(ACE_LACKS_MMAP) +dnl fi + +dnl Check if closedir() returns a meaningful value +AC_FUNC_CLOSEDIR_VOID + +dnl Check for PWD functions +AC_CHECK_FUNC(getpwnam,,) dnl +AC_CHECK_FUNC(setpwent,,) dnl +AC_CHECK_FUNC(endpwent,,) dnl +AC_CHECK_FUNC(getpwent,,) dnl + +if test "$ac_cv_func_getpwnam" != yes || + test "$ac_cv_func_setpwent" != yes || + test "$ac_cv_func_endpwent" != yes || + test "$ac_cv_func_getpwent" != yes; then + AC_DEFINE(ACE_LACKS_PWD_FUNCTIONS) +fi + +dnl Check for `strftime' in the `intl' library, for SCO UNIX +AC_FUNC_STRFTIME + +case "$target" in + *win32*) + AC_CHECK_FUNC(CancelIO, dnl + AC_DEFINE(ACE_HAS_CANCEL_IO),) + + AC_CHECK_FUNC(SignalObjectAndWait, dnl + AC_DEFINE(ACE_HAS_SIGNAL_OBJECT_AND_WAIT),) + + AC_CHECK_FUNC(TryEnterCriticalSection, dnl + AC_DEFINE(ACE_HAS_WIN32_TRYLOCK),) + ;; + *) + ;; +esac + +AC_CHECK_FUNC(access, dnl + , + AC_DEFINE(ACE_LACKS_ACCESS)) + +AC_CHECK_FUNC(bsearch, dnl + , + AC_DEFINE(ACE_LACKS_BSEARCH)) + +AC_CHECK_FUNC(qsort, dnl + , + AC_DEFINE(ACE_LACKS_QSORT)) + +dnl ACE uses execv, execvp and execve, so we don't bother to check +dnl for the others (e.g. execl, execlp, execle) +AC_CHECK_FUNCS(execv execvp execve, dnl + , + AC_DEFINE(ACE_LACKS_EXEC)) + +AC_CHECK_FUNC(fcntl, dnl + , + AC_DEFINE(ACE_LACKS_FCNTL)) + +AC_CHECK_FUNC(fsync, dnl + , + AC_DEFINE(ACE_LACKS_FSYNC)) + +dnl TODO: Right now we only check for the getmsg() function when checking +dnl for ACE_HAS_STREAM_PIPES. Is this enough? +AC_CHECK_FUNC(getmsg, dnl + AC_DEFINE(ACE_HAS_STREAM_PIPES),) + +AC_CHECK_FUNC(gethostbyaddr,,) dnl + +dnl We already check for getservbyname during the library checks. +dnl AC_CHECK_FUNC(getservbyname, dnl +dnl , +dnl AC_DEFINE(ACE_LACKS_GETSERVBYNAME)) + +AC_CHECK_FUNC(difftime, dnl + , + AC_DEFINE(ACE_LACKS_DIFFTIME)) + +AC_CHECK_FUNC(bind, dnl + [ + ACE_CACHE_CHECK(if bind() will select the port if it is zero, + ace_cv_have_wildcard_bind, + [ + AC_TRY_RUN( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <netinet/in.h> +#include <string.h> /* for memset() */ + + int main () { + + int sockfd = socket(AF_INET, SOCK_STREAM, 0); + + sockaddr_in serv_addr; + + (void) memset ((void *) &serv_addr, 0, sizeof(serv_addr)); + + serv_addr.sin_family = AF_INET; + serv_addr.sin_addr.s_addr = htonl(INADDR_ANY); + serv_addr.sin_port = 0; + + return bind (sockfd, (struct sockaddr *) &serv_addr, + sizeof(serv_addr)); + } + ], + [ + ace_cv_have_wildcard_bind=yes + ], + [ + ace_cv_have_wildcard_bind=no + ], + [ + dnl action if cross-compiling + ace_cv_have_wildcard_bind=yes + ]) + ],, AC_DEFINE(ACE_LACKS_WILDCARD_BIND)) + ],) + +AC_CHECK_FUNC(poll, dnl + [ + ACE_CACHE_CHECK(if poll is broken, + ace_cv_poll_is_broken, + [ + AC_TRY_RUN( + [ +#include <poll.h> +#include <time.h> + +#ifdef ACE_LACKS_SYSTIME_H +# include <sys/time.h> +#endif + + int main () { + + int timeout = 2000; /* 2000 milliseconds */ + int timeout_arg = timeout; + /* poll() modifies timeout argument on some platforms */ + + int result = 0; + + time_t *t = 0; + + time_t time1 = time(t); + + result = poll(0, 0, timeout_arg); + + time_t time2 = time(t); + time_t diff = time2 - time1; + + /* If (diff * 1000) < timeout then poll() is broken! */ + if (result >= 0) + return (((diff * 1000) < timeout) ? 1 : 0); + else + return 1; /* We had a problem with poll() so we don't + know what really happened. */ + } + ], + [ + ace_cv_poll_is_broken=no + ], + [ + ace_cv_poll_is_broken=yes + ], + [ + dnl action if cross-compiling + ace_cv_poll_is_broken=no + ]) + ], AC_DEFINE(ACE_POLL_IS_BROKEN), AC_DEFINE(ACE_USE_POLL)) + ],) + +AC_CHECK_FUNC(gethrtime, dnl + [ + ACE_CHECK_TYPE(hrtime_t, sys/time.h, AC_DEFINE(ACE_HAS_HI_RES_TIMER),) + ],) + +AC_CHECK_FUNC(pread, dnl + AC_CHECK_FUNC(pwrite, + AC_DEFINE(ACE_HAS_P_READ_WRITE),), + ) + +AC_CHECK_FUNC(readv, , AC_DEFINE(ACE_LACKS_READV)) dnl + +AC_CHECK_FUNC(writev, , AC_DEFINE(ACE_LACKS_WRITEV)) dnl + +AC_CHECK_FUNC(set_t_errno, AC_DEFINE(ACE_HAS_SET_T_ERRNO),) dnl + +AC_CHECK_FUNC(socketpair, dnl + , + AC_DEFINE(ACE_LACKS_SOCKETPAIR)) + +AC_CHECK_FUNC(strcasecmp, dnl + , + AC_DEFINE(ACE_LACKS_STRCASECMP)) + +AC_CHECK_FUNC(strdup, dnl + , + AC_DEFINE(ACE_HAS_STRDUP_EMULATION)) + +AC_CHECK_FUNC(strrchr, dnl + , + AC_DEFINE(ACE_LACKS_STRRCHR)) + +AC_CHECK_FUNC(syscall, dnl + , + AC_DEFINE(ACE_LACKS_SYSCALL)) + +AC_CHECK_FUNC(ualarm, dnl + AC_DEFINE(ACE_HAS_UALARM),) + +AC_CHECK_FUNC(alarm,,) dnl +AC_CHECK_FUNC(signal,,) dnl + +if test "$ac_cv_func_alarm" != yes && + test "$ac_cv_func_signal" != yes; then + AC_DEFINE(ACE_LACKS_UNIX_SIGNALS) +fi + +AC_CHECK_FUNC(clock_gettime, dnl + AC_DEFINE(ACE_HAS_CLOCK_GETTIME),) + +AC_CHECK_FUNC(fork, dnl + , + AC_DEFINE(ACE_LACKS_FORK)) + +AC_CHECK_FUNC(getrlimit, dnl + [ + AC_CHECK_FUNC(setrlimit, + , + AC_DEFINE(ACE_LACKS_RLIMIT)) + ], + [ + AC_DEFINE(ACE_LACKS_RLIMIT) + ]) + +AC_CHECK_FUNC(sysinfo, dnl + [ + if test "$ac_cv_header_sys_systeminfo_h" = yes; then + AC_DEFINE(ACE_HAS_SYSINFO) + fi + ],) + +AC_CHECK_FUNC(strerror, dnl + AC_DEFINE(ACE_HAS_STRERROR),) + +AC_CHECK_FUNC(lstat, dnl + , + AC_DEFINE(ACE_LACKS_LSTAT)) + +AC_CHECK_FUNC(readlink, dnl + , + AC_DEFINE(ACE_LACKS_READLINK)) + +AC_CHECK_FUNC(recvmsg, dnl + , + AC_DEFINE(ACE_LACKS_RECVMSG)) + +AC_CHECK_FUNC(sendmsg, dnl + , + AC_DEFINE(ACE_LACKS_SENDMSG)) + +if test "$ace_has_tli" = yes; then + AC_CHECK_FUNC(t_getname, dnl + AC_DEFINE(ACE_HAS_SVR4_TLI),) +fi + +AC_CHECK_FUNC(getrusage, dnl + AC_DEFINE(ACE_HAS_GETRUSAGE),) + +AC_CHECK_FUNC(getpgid, dnl + , + AC_DEFINE(ACE_LACKS_GETPGID)) + +AC_CHECK_FUNC(getpagesize, dnl + AC_DEFINE(ACE_HAS_GETPAGESIZE), + AC_DEFINE(ACE_PAGE_SIZE, 4096)) + +AC_CHECK_FUNC(msync, dnl + , + AC_DEFINE(ACE_LACKS_MSYNC)) + +AC_CHECK_FUNC(mprotect, dnl + , + AC_DEFINE(ACE_LACKS_MPROTECT)) + +AC_CHECK_FUNC(mkfifo, dnl + , + AC_DEFINE(ACE_LACKS_MKFIFO)) + +AC_CHECK_FUNC(mktemp, dnl + , + AC_DEFINE(ACE_LACKS_MKTEMP)) + +AC_CHECK_FUNC(madvise, dnl + , + AC_DEFINE(ACE_LACKS_MADVISE)) + +if test "$ac_cv_header_sys_priocntl_h" = yes; then + AC_CHECK_FUNC(priocntl, dnl + AC_DEFINE(ACE_HAS_PRIOCNTL),) + +dnl Some platforms define priocntl as a macro! + if test "$ac_cv_func_priocntl" = no; then + ACE_CACHE_CHECK(if platform defines priocntl as a macro, + ace_cv_lib_has_priocntl_macro, + [ + AC_EGREP_CPP(ACE_PRIOCNTL_MACRO, + [ +#include <sys/priocntl.h> + +#if defined (priocntl) + ACE_PRIOCNTL_MACRO +#endif + ], + [ + ace_cv_lib_has_priocntl_macro=yes + ], + [ + ace_cv_lib_has_priocntl_macro=no + ]) + ], AC_DEFINE(ACE_HAS_PRIOCNTL),) + fi dnl test "$ac_cv_func_priocntl" = no +fi dnl test "$ac_cv_header_sys_priocntl_h" = yes + +dnl FIXME: How do we check for a working sbrk()? Do we need to? +AC_CHECK_FUNC(sbrk,, AC_DEFINE(ACE_LACKS_SBRK)) + +dnl Check for SYSV IPC functions +AC_CHECK_FUNC(msgctl,,) + +AC_CHECK_FUNC(msgget,,) + +AC_CHECK_FUNC(msgrcv,,) + +AC_CHECK_FUNC(semctl,,) + +AC_CHECK_FUNC(semget,,) + +AC_CHECK_FUNC(semop,,) + +AC_CHECK_FUNC(shmat,,) + +AC_CHECK_FUNC(shmctl,,) + +AC_CHECK_FUNC(shmdt,,) + +AC_CHECK_FUNC(shmget,,) +dnl End check for SYSV IPC functions + +AC_CHECK_FUNC(read_real_time, dnl + AC_DEFINE(ACE_HAS_AIX_HI_RES_TIMER),) + +AC_CHECK_FUNC(shm_open, dnl + [ + AC_MSG_WARN(platform supports shm_open but shm_open support will not be) + AC_MSG_WARN(enabled since ACE currently supports it only on LynxOS) +dnl AC_DEFINE(ACE_HAS_SHM_OPEN) + ],) + +AC_CHECK_FUNC(tempnam, dnl + , + AC_DEFINE(ACE_LACKS_TEMPNAM)) + +AC_CHECK_FUNC(truncate, dnl + , + AC_DEFINE(ACE_LACKS_TRUNCATE)) + +dnl Check for MIT pthreads APIs for timed send/recv operations +AC_CHECK_FUNC(recv_timedwait, dnl + AC_DEFINE(ACE_HAS_RECV_TIMEDWAIT),) + +AC_CHECK_FUNC(recvfrom_timedwait, dnl + AC_DEFINE(ACE_HAS_RECVFROM_TIMEDWAIT),) + +AC_CHECK_FUNC(recvmsg_timedwait, dnl + AC_DEFINE(ACE_HAS_RECVMSG_TIMEDWAIT),) + +AC_CHECK_FUNC(send_timedwait, dnl + AC_DEFINE(ACE_HAS_SEND_TIMEDWAIT),) + +AC_CHECK_FUNC(sendto_timedwait, dnl + AC_DEFINE(ACE_HAS_SENDTO_TIMEDWAIT),) + +AC_CHECK_FUNC(sendmsg_timedwait, dnl + AC_DEFINE(ACE_HAS_SENDMSG_TIMEDWAIT),) + +AC_CHECK_FUNC(read_timedwait, dnl + AC_DEFINE(ACE_HAS_READ_TIMEDWAIT),) + +AC_CHECK_FUNC(readv_timedwait, dnl + AC_DEFINE(ACE_HAS_READV_TIMEDWAIT),) + +AC_CHECK_FUNC(write_timedwait, dnl + AC_DEFINE(ACE_HAS_WRITE_TIMEDWAIT),) + +AC_CHECK_FUNC(writev_timedwait, dnl + AC_DEFINE(ACE_HAS_WRITEV_TIMEDWAIT),) + +dnl Check for POSIX Semaphore functions +dnl We only check for a few of them since some platforms don't have these. +AC_CHECK_FUNC(sem_init,,) dnl +AC_CHECK_FUNC(sem_destroy,,) dnl +AC_CHECK_FUNC(sem_open,,) dnl +AC_CHECK_FUNC(sem_close,,) dnl + +dnl We only enable POSIX semaphores if we are not using UNIX International +dnl threads. Enabling POSIX semaphores on Solaris seems to cause problems +dnl for ACE, for example. +if test "$ac_cv_func_sem_init" = yes && + test "$ac_cv_func_sem_destroy" = yes && + test "$ace_cv_type_sem_t" = yes && + test "$ace_has_sthreads" != yes; then + AC_DEFINE(ACE_HAS_POSIX_SEM) + + if test "$ac_cv_func_sem_open" != yes || + test "$ac_cv_func_sem_close" != yes; then + AC_DEFINE(ACE_LACKS_NAMED_POSIX_SEM) + fi +fi dnl check for POSIX Semaphore functions + +dnl +dnl The following tests are performed only when the user has enabled +dnl support for threads. + +dnl NOTE: Make sure the thread library is in "LIBS" +dnl (e.g.: LIBS="$LIBS -lpthread") +dnl otherwise the below thread "CHECK_FUNCs" +dnl will not work correctly. +if test "$ace_user_enable_threads" = yes; then + + if test "$ace_has_pthreads" = yes; then +dnl Digital UNIX 4.0 "mangles" the following pthread functions: +dnl pthread_attr_getguardsize_np +dnl pthread_attr_getinheritsched +dnl pthread_attr_getstacksize +dnl pthread_attr_setguardsize_np +dnl pthread_attr_setinheritsched +dnl pthread_attr_setstacksize +dnl pthread_cancel +dnl pthread_cond_broadcast +dnl pthread_cond_destroy +dnl pthread_cond_init +dnl pthread_cond_sig_preempt_int_np +dnl pthread_cond_signal +dnl pthread_cond_signal_int_np +dnl pthread_cond_timedwait +dnl pthread_cond_wait +dnl pthread_create +dnl pthread_delay_np +dnl pthread_detach +dnl pthread_equal +dnl pthread_exit +dnl pthread_get_expiration_np +dnl pthread_getspecific +dnl pthread_join +dnl pthread_lock_global_np +dnl pthread_mutex_destroy +dnl pthread_mutex_init +dnl pthread_mutex_lock +dnl pthread_mutex_trylock +dnl pthread_mutex_unlock +dnl pthread_once +dnl pthread_self +dnl pthread_setspecific +dnl pthread_testcancel +dnl pthread_unlock_global_np +dnl These functions have a double underscore "__" prepended to maintain +dnl backwards compatibility with Pthread Draft 4 functions of the same +dnl name. + + AC_CHECK_FUNC(pthread_sigmask, dnl + AC_DEFINE(ACE_HAS_PTHREAD_SIGMASK),) + + AC_CHECK_FUNC(pthread_key_create, dnl + AC_DEFINE(ACE_HAS_THREAD_SPECIFIC_STORAGE), + AC_DEFINE(ACE_HAS_TSS_EMULATION)) + + AC_CHECK_FUNC(pthread_condattr_setpshared, dnl + , + AC_DEFINE(ACE_LACKS_CONDATTR_PSHARED)) + + AC_CHECK_FUNC(pthread_attr_setstackaddr, dnl + , + AC_DEFINE(ACE_LACKS_THREAD_STACK_ADDR)) + + ACE_CHECK_FUNC(pthread_attr_setstacksize, pthread.h, dnl + , + AC_DEFINE(ACE_LACKS_THREAD_STACK_SIZE)) + + ACE_CHECK_FUNC(pthread_cancel, pthread.h, dnl + , + AC_DEFINE(ACE_LACKS_PTHREAD_CANCEL)) + + AC_CHECK_FUNC(pthread_yield, dnl + , + AC_DEFINE(ACE_LACKS_PTHREAD_YIELD)) + + AC_CHECK_FUNC(pthread_thr_sigsetmask, dnl + , + AC_DEFINE(ACE_LACKS_PTHREAD_THR_SIGSETMASK)) + + AC_CHECK_FUNC(pthread_attr_setdetachstate, dnl + , + AC_DEFINE(ACE_LACKS_SETDETACH)) + + AC_CHECK_FUNC(pthread_attr_setsched,, dnl + AC_CHECK_FUNC(pthread_attr_setschedpolicy,, + AC_DEFINE(ACE_LACKS_SETSCHED))) + + AC_CHECK_FUNC(pthread_attr_setscope, dnl + , + AC_DEFINE(ACE_LACKS_THREAD_PROCESS_SCOPING)) + + AC_CHECK_FUNC(pthread_mutexattr_setpshared, dnl + , + AC_DEFINE(ACE_LACKS_MUTEXATTR_PSHARED)) + +dnl Check for POSIX Threads Draft 4 functions + AC_CHECK_FUNC(pthread_mutexattr_create,,) dnl + AC_CHECK_FUNC(pthread_mutexattr_delete,,) dnl + AC_CHECK_FUNC(pthread_condattr_delete,,) dnl + AC_CHECK_FUNC(pthread_condattr_create,,) dnl + AC_CHECK_FUNC(pthread_setprio,,) dnl + AC_CHECK_FUNC(pthread_getprio,,) dnl + AC_CHECK_FUNC(pthread_setcancel,,) dnl + AC_CHECK_FUNC(pthread_setasynccancel,,) dnl + AC_CHECK_FUNC(pthread_kill,,) dnl +dnl Check for POSIX Threads Draft 6 functions + AC_CHECK_FUNC(pthread_attr_setprio,,) dnl + AC_CHECK_FUNC(pthread_attr_getprio,,) dnl + AC_CHECK_FUNC(pthread_setintr,,) dnl + AC_CHECK_FUNC(pthread_setintrtype,,) dnl +dnl Check for POSIX threads Draft 6, 7 and Standard common functions + AC_CHECK_FUNC(pthread_mutexattr_init,,) dnl + AC_CHECK_FUNC(pthread_mutexattr_destroy,,) dnl + AC_CHECK_FUNC(pthread_condattr_init,,) dnl + AC_CHECK_FUNC(pthread_condattr_destroy,,) dnl +dnl Check for POSIX Threads Draft 7 and Draft Standard common functions + AC_CHECK_FUNC(pthread_setschedparam,,) dnl + AC_CHECK_FUNC(pthread_getschedparam,,) dnl + AC_CHECK_FUNC(pthread_setcancelstate,,) dnl + AC_CHECK_FUNC(pthread_setcanceltype,,) dnl +dnl Check for POSIX Threads Draft Standard functions +dnl sched_yield() is in the C library or perhaps in "-lposix4." +dnl We need to add other library checks in this script's "check libraries" +dnl section if it is in another library. +dnl AC_CHECK_FUNC(sched_yield,,) dnl +dnl We already check for this during the library checks + +dnl Check if platform has thread_self() rather than pthread_self() + ACE_CHECK_FUNC(pthread_self, pthread.h, dnl + , + [ + AC_CHECK_FUNC(thread_self, + [ + AC_DEFINE(ACE_HAS_THREAD_SELF) + ],) + ]) + + +dnl FIXME: These tests look sloppy to me. -Ossama + AC_CACHE_CHECK(if platform defines a 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(if platform defines a 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) + + fi dnl test "$ace_has_pthreads" = yes + + if test "$ace_has_sthreads" = yes; then +dnl Only check for these functions if we have the UNIX International +dnl Threads library "thread." + AC_CHECK_FUNC(thr_keycreate, dnl + AC_DEFINE(ACE_HAS_THREAD_SPECIFIC_STORAGE), + AC_DEFINE(ACE_HAS_TSS_EMULATION)) + + AC_CHECK_FUNC(thr_yield, dnl + AC_DEFINE(ACE_HAS_THR_YIELD),) + + AC_CHECK_FUNC(thr_keydelete, dnl + AC_DEFINE(ACE_HAS_THR_KEYDELETE),) + + AC_CHECK_FUNC(thr_min_stack, dnl + , + [ + AC_CHECK_FUNC(thr_minstack, + AC_DEFINE(ACE_HAS_THR_MINSTACK),) + ]) + + fi dnl test "$ace_has_sthreads" = yes + +fi dnl test "$ace_user_enable_threads" = yes + +dnl +dnl By Eric: +dnl ACE will define a sigwait function if we lie and say we don't have +dnl one. Unfortunately, the ACE function may conflict with our +dnl function, so we'll go ahead and turn this on, even if we are +dnl ignoring threads. +dnl + +AC_CHECK_FUNC(sigwait, dnl + AC_DEFINE(ACE_HAS_SIGWAIT),) + + +dnl Check for reentrant functions +if test "$ace_user_enable_reentrant_funcs" = yes; then + AC_CHECK_FUNC(rand_r,,) + + AC_CHECK_FUNC(strtok_r,,) + + AC_CHECK_FUNC(getpwnam_r,, AC_DEFINE(ACE_LACKS_PWD_REENTRANT_FUNCTIONS)) + + AC_CHECK_FUNC(ctime_r,,) + + AC_CHECK_FUNC(localtime_r,,) + + AC_CHECK_FUNC(gmtime_r,,) + + AC_CHECK_FUNC(asctime_r,,) + + AC_CHECK_FUNC(getprotobyname_r,,) + + AC_CHECK_FUNC(getprotobynumber_r,,) + + AC_CHECK_FUNC(gethostbyaddr_r,,) + + AC_CHECK_FUNC(gethostbyname_r,,) + + AC_CHECK_FUNC(getservbyname_r,,) +fi dnl End checks for reentrant functions + +AC_CHECK_FUNC(readdir_r, dnl + , + AC_DEFINE(ACE_LACKS_READDIR_R)) + +AC_CHECK_FUNC(seekdir, dnl + , + AC_DEFINE(ACE_LACKS_SEEKDIR)) + +AC_CHECK_FUNC(telldir, dnl + , + AC_DEFINE(ACE_LACKS_TELLDIR)) + + +dnl +dnl SECTION 11: checks for function characteristics +dnl + +ACE_CONVERT_WARNINGS_TO_ERRORS([ +dnl Check if dlopen takes a char * arg instead of const char * + if test "$ace_has_svr4_dynamic_linking" = yes; then + ACE_CACHE_CHECK(if dlopen takes a char *, + ace_cv_lib_charptr_dl, + [ + dnl Check if it takes a const char *, first. + AC_TRY_COMPILE( + [ +#include <dlfcn.h> + ], + [ + const char *filename = 0; + int flag = 0; + void *ptr = dlopen(filename, flag); + ], + [ + ace_cv_lib_charptr_dl=no + ], + [ + dnl Now check if it takes a non-const char *. + AC_TRY_COMPILE( + [ +#include <dlfcn.h> + ], + [ + char *filename = 0; + int flag = 0; + void *ptr = dlopen(filename, flag); + ], + [ + ace_cv_lib_charptr_dl=yes + ], + [ + ace_cv_lib_charptr_dl=no + ]) + ]) + ], AC_DEFINE(ACE_HAS_CHARPTR_DL),) + fi dnl test "$ace_has_svr4_dynamic_linking" = yes +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +ACE_CONVERT_WARNINGS_TO_ERRORS([ +dnl Check if "getby" functions use a non-const char * argument + if test "$ac_cv_func_gethostbyaddr" = yes; then + ACE_CACHE_CHECK(\"getby\" functions take a non-const char *, + ace_cv_lib_nonconst_getby, + [ + AC_TRY_COMPILE( + [ +#include <sys/socket.h> + ], + [ + char *addr = 0; + int len = 0; + int type = 0; + struct hostent *mystruct = 0; + + mystruct = gethostbyaddr(name, len, type); + ], + [ + ace_cv_lib_nonconst_getby=yes + ], + [ + ace_cv_lib_nonconst_getby=no + ]) + ], AC_DEFINE(ACE_HAS_NONCONST_GETBY),) + fi dnl test "$ac_cv_func_gethostbyaddr" = yes +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check if new throws exception upon failure +if test "$ace_user_enable_exceptions" = yes; then + ACE_CACHE_CHECK(if new throws bad_alloc exception on failure, + ace_cv_new_throws_bad_alloc_exception, + [ + AC_TRY_RUN( + [ +#if defined (ACE_HAS_NEW_NO_H) +# include <new> +#elif defined (ACE_HAS_NEW_H) +# include <new.h> +#endif + +#if defined (ACE_HAS_STDEXCEPT_NO_H) +# include <stdexcept> +#elif defined (ACE_HAS_EXCEPTION_H) +# include <exception.h> +#endif + + int main() { + while (1) { + try { + char *a = new char[1024*1024]; + if (a == 0) { + return 1; /* new() does NOT throw exceptions */ + } + } + + catch (bad_alloc) + { + return 0; /* new() does throw exceptions */ + } + }; + + return 1; /* ERROR: We shouldn't get this far! */ + } + ], + [ + ace_cv_new_throws_bad_alloc_exception=yes + ], + [ + ace_cv_new_throws_bad_alloc_exception=no + ], + [ + ace_cv_new_throws_bad_alloc_exception=no + ]) + ], AC_DEFINE(ACE_NEW_THROWS_EXCEPTIONS),) + + if test "$ace_cv_new_throws_bad_alloc_exception" != yes; then + ACE_CACHE_CHECK(if new throws xalloc exception on failure, + ace_cv_new_throws_xalloc_exception, + [ + AC_TRY_RUN( + [ +#if defined (ACE_HAS_NEW_NO_H) +# include <new> +#elif defined (ACE_HAS_NEW_H) +# include <new.h> +#endif + +#if defined (ACE_HAS_STDEXCEPT_NO_H) +# include <stdexcept> +#elif defined (ACE_HAS_EXCEPTION_H) +# include <exception.h> +#endif + + int main() { + while (1) { + try { + char *a = new char[1024*1024]; + if (a == 0) { + return 1; /* new() does NOT throw exceptions */ + } + } + + catch (xalloc) + { + return 0; /* new() does throw exceptions */ + } + }; + + return 1; /* ERROR: We shouldn't get this far! */ + } + ], + [ + ace_cv_new_throws_xalloc_exception=yes + ], + [ + ace_cv_new_throws_xalloc_exception=no + ], + [ + ace_cv_new_throws_xalloc_exception=no + ]) + ], AC_DEFINE(ACE_NEW_THROWS_EXCEPTIONS),) + fi dnl ace_cv_new_throws_bad_alloc_exceptions = no +fi dnl $ace_user_enable_exceptions = yes + +ACE_CONVERT_WARNINGS_TO_ERRORS([ +dnl Check if putmsg takes a const struct strbuf * +dnl If we have getmsg() we can be pretty sure that we have putmsg() + if test "$ac_cv_func_getmsg" = yes || + test "$ac_cv_header_stropts_h" = yes; then + ACE_CACHE_CHECK(if putmsg takes a const struct strbuf*, + ace_cv_lib_const_strbufptr, + [ + dnl Check if it takes a const struct strbuf *, first. + AC_TRY_COMPILE( + [ +#include <stropts.h> + ], + [ + int result = 0; + int fd = 0; + const struct strbuf * ace_str = 0; + int flags = 0; + + result = putmsg(fd, ace_str, ace_str, flags); + ], + [ + ace_cv_lib_const_strbufptr=yes + ], + [ + ace_cv_lib_const_strbufptr=no + ]) + ],, AC_DEFINE(ACE_LACKS_CONST_STRBUF_PTR)) + fi dnl "$ac_cv_func_getmsg" = yes || "$ac_cv_header_stropts_h" = yes +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check if select takes int instead of fd_set +ACE_CONVERT_WARNINGS_TO_ERRORS([ + ACE_CACHE_CHECK(if select takes int instead of fd_set, + ace_cv_lib_select_takes_int, + [ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#ifdef ACE_HAS_SELECT_H +# include <sys/select.h> +#endif + ], + [ + int n; + fd_set* readfds = 0; + fd_set* writefds = 0; + fd_set* exceptfds = 0; + timeval* timeout = 0; + int result = 0; + + result = select(n, readfds, writefds, exceptfds, timeout); + ], + [ + ace_cv_lib_select_takes_int=no + ], + [ +dnl Now check if select will actually take int* arguments + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#ifdef ACE_HAS_SELECT_H +# include <sys/select.h> +#endif + ], + [ + int n; + int* readfds = 0; + int* writefds = 0; + int* exceptfds = 0; + timeval* timeout = 0; + int result = 0; + + result = select(n, readfds, writefds, exceptfds, timeout); + ], + [ + ace_cv_lib_select_takes_int=yes + ], + [ + ace_cv_lib_select_takes_int=no + dnl If we get here we don't know what select() takes. + ]) + ]) + ], AC_DEFINE(ACE_SELECT_USES_INT),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + + +dnl Check if setrlimit() takes an enum as 1st parameter (a) +AC_CACHE_CHECK(if setrlimit() takes an enum as 1st parameter (a), + ace_cv_lib_posix_setrlimit_enum_1_a,[ + ace_cv_lib_posix_setrlimit_enum_1_a=no + AC_TRY_COMPILE([#include <sys/resource.h>], + [enum __rlimit_resource rsrc; + const struct rlimit* rlp; + setrlimit(rsrc, rlp);], + ace_cv_lib_posix_setrlimit_enum_1_a=yes) + ]) + +dnl Check if setrlimit() takes an enum as 1st parameter (b) +AC_CACHE_CHECK(if setrlimit() takes an enum as 1st parameter (b), + ace_cv_lib_posix_setrlimit_enum_1_b,[ + ace_cv_lib_posix_setrlimit_enum_1_b=no + AC_TRY_COMPILE([#include <sys/resource.h>], + [enum __rlimit_resource rsrc; + struct rlimit* rlp; + setrlimit(rsrc, rlp);], + ace_cv_lib_posix_setrlimit_enum_1_b=yes) + ]) + +if test "$ace_cv_lib_posix_setrlimit_enum_1_a" = yes || + test "$ace_cv_lib_posix_setrlimit_enum_1_b" = yes; then + AC_DEFINE(ACE_HAS_RLIMIT_RESOURCE_ENUM, enum __rlimit_resource) +fi + +dnl These two tests fail (i.e. pass when they shouldn't) when compiling with +dnl GCC/G++ since the compiler treats passing a const to a non-const argument +dnl as a warning and not as an error since the const is simply discarded. +dnl To correct this problem, we use "-Werror" which converts all warnings +dnl to errors, whenever we are compiling with G++. +dnl -Ossama + +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check if setrlimit() takes a const pointer as 2nd parameter (a) +AC_CACHE_CHECK(if setrlimit() takes a const pointer as 2nd parameter (a), + ace_cv_lib_posix_setrlimit_const_2_a,[ + AC_TRY_COMPILE( + [ +#include <sys/resource.h> + ], + [ + int rsrc; + const struct rlimit* rlp; + setrlimit(rsrc, rlp); + ], + [ + ace_cv_lib_posix_setrlimit_const_2_a=yes + ], + [ + ace_cv_lib_posix_setrlimit_const_2_a=no + ]) + ]) + +dnl Check if setrlimit() takes a const pointer as 2nd parameter (b) +AC_CACHE_CHECK(if setrlimit() takes a const pointer as 2nd parameter (b), + ace_cv_lib_posix_setrlimit_const_2_b,[ + ace_cv_lib_posix_setrlimit_const_2_b=no + AC_TRY_COMPILE([#include <sys/resource.h>], + [enum __rlimit_resource rsrc; + const struct rlimit* rlp; + setrlimit(rsrc, rlp);], + ace_cv_lib_posix_setrlimit_const_2_b=yes) + ]) + +if test "$ace_cv_lib_posix_setrlimit_const_2_a" != yes && + test "$ace_cv_lib_posix_setrlimit_const_2_b" != yes; then + AC_DEFINE(ACE_HAS_BROKEN_SETRLIMIT) +fi +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check if getrusage() takes an enum as 1st parameter +if test "$ac_cv_func_getrusage" = yes; then + ACE_CACHE_CHECK(if getrusage() takes an enum as 1st parameter, + ace_cv_lib_posix_getrusage_enum_1,[ + AC_TRY_COMPILE( + [ +#include <sys/resource.h> + ], + [ + enum __rusage_who who; + struct rusage* rup; + getrusage(who, rup); + ], + [ + ace_cv_lib_posix_getrusage_enum_1=yes + ], + [ + ace_cv_lib_posix_getrusage_enum_1=no + ]) + ], AC_DEFINE(ACE_HAS_RUSAGE_WHO_ENUM, enum __rusage_who),) +fi + +dnl TODO: This doesn't work. +dnl The compiler in linux just issues a warning, and the test passes!!! +dnl +dnl FIXED by adding "-Werror" to compiler flags when using GNU C++ +dnl -Ossama +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check if select takes a const fifth parameter +ACE_CACHE_CHECK(if select takes a const fifth parameter, + ace_cv_lib_posix_select_const_5,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#ifdef ACE_HAS_SELECT_H +# include <sys/select.h> +#endif + ], + [ + int n; + fd_set *readfds; + fd_set *writefds; + fd_set *exceptfds; + const struct timeval* timeout = 0; + select(n, readfds, writefds, exceptfds, timeout); + ], + [ + ace_cv_lib_posix_select_const_5=yes + ], + [ + ace_cv_lib_posix_select_const_5=no + ]) + ], , AC_DEFINE(ACE_HAS_NONCONST_SELECT_TIMEVAL)) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Only run the following tests if the msghdr structure exists. +if test "$ace_cv_struct_msghdr" = yes && + test "$ac_cv_func_sendmsg" = yes; then + ACE_CONVERT_WARNINGS_TO_ERRORS( dnl + [ +dnl Check if sendmsg takes a const 2nd parameter + ACE_CACHE_CHECK(if sendmsg omits the const from the second parameter, + ace_cv_lib_broken_sendmsg,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + int s = 0; + const struct msghdr *msg = 0; + unsigned int flags = 0; + + int result = 0; + + result = (int) sendmsg(s, msg, flags); + ], + [ + ace_cv_lib_broken_sendmsg=no + ], + [ + ace_cv_lib_broken_sendmsg=yes + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_SENDMSG),) + ]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS +fi dnl test "$ace_cv_struct_msghdr" = yes + +dnl Only run the following tests if the writev function exists +if test "$ac_cv_header_sys_uio_h" = yes && + test "$ac_cv_func_writev" = yes; then + ACE_CONVERT_WARNINGS_TO_ERRORS( dnl + [ +dnl Check if writev omits the const from the iovec parameter + ACE_CACHE_CHECK(if writev omits the const from the iovec parameter, + ace_cv_lib_broken_writev,[ + AC_TRY_COMPILE( + [ +#ifdef ACE_HAS_UNISTD_H +# include <unistd.h> +#endif + +#include <sys/uio.h> + ], + [ + int filedes = 0; + const struct iovec *vector = 0; + size_t count = 0; + + int result = 0; + + result = (int) writev(filedes, vector, count); + ], + [ + ace_cv_lib_broken_writev=no + ], + [ + ace_cv_lib_broken_writev=yes + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_WRITEV),) + ]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS +fi dnl $ac_cv_header_sys_uio_h = yes && $ac_cv_func_writev = yes + + +dnl The compiler in linux just issues a warning, and the test passes!!! +dnl +dnl FIXED by adding "-Werror" to compiler flags when using GNU C++ +dnl -Ossama +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check if socket size is denoted by size_t +ACE_CACHE_CHECK(if socket size is denoted by size_t, + ace_cv_lib_posix_socket_len_size_t,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + int s; + struct sockaddr* addr; + int* addrlen; + accept(s, addr, addrlen); + ], + [ + ace_cv_lib_posix_socket_len_size_t=no + ], + [ +dnl Now see if it really does take a size_t socket size + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + int s; + struct sockaddr* addr; + size_t* addrlen; + accept(s, addr, addrlen); + ], + [ + ace_cv_lib_posix_socket_len_size_t=yes + ], + [ + ace_cv_lib_posix_socket_len_size_t=no + ]) + ]) + ], AC_DEFINE(ACE_HAS_SIZET_SOCKET_LEN),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +ACE_CACHE_CHECK(for (struct sockaddr *) msg_name field, + ace_cv_lib_sockaddr_msg_name,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + msghdr ace_msghdr; + sockaddr name; + + ace_msghdr.msg_name = (struct sockaddr *)name; + ], + [ + ace_cv_lib_sockaddr_msg_name=yes + ], + [ + ace_cv_lib_sockaddr_msg_name=no + ]) + ], AC_DEFINE(ACE_HAS_SOCKADDR_MSG_NAME),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + + +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +ACE_CACHE_CHECK(if setsockopt() takes a char* fourth parameter, + ace_cv_lib_posix_setsockopt_charp_4,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + int s; + int level; + int optname; + char* optval; +#if defined(ACE_HAS_SIZET_SOCKET_LEN) + size_t* optlen; +#else + int* optlen; +#endif + setsockopt(s, level, optname, optval, optlen); + ], + [ + ace_cv_lib_posix_setsockopt_charp_4=yes + ], + [ + ace_cv_lib_posix_setsockopt_charp_4=no + ]) + ], AC_DEFINE(ACE_HAS_CHARPTR_SOCKOPT),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +ACE_CACHE_CHECK(if setsockopt() takes a void* fourth parameter, + ace_cv_lib_posix_setsockopt_voidp_4,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + int s; + int level; + int optname; + void* optval; +#if defined(ACE_HAS_SIZET_SOCKET_LEN) + size_t* optlen; +#else + int* optlen; +#endif + setsockopt(s, level, optname, optval, optlen); + ], + [ + ace_cv_lib_posix_setsockopt_voidp_4=yes + ], + [ + ace_cv_lib_posix_setsockopt_voidp_4=no + ]) + ], AC_DEFINE(ACE_HAS_VOIDPTR_SOCKOPT),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +ACE_CACHE_CHECK(if mmap() takes a void* first argument, + ace_cv_lib_posix_voidptr_mmap,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif +#include <sys/mman.h> + ], + [ + void *start; + size_t length; + int prot; + int flags; + int fd; + off_t offset; + + void *result = 0; + + result = (void *)mmap(start, length, prot, flags, fd, offset); + ], + [ + ace_cv_lib_posix_voidptr_mmap=yes + ], + [ + ace_cv_lib_posix_voidptr_mmap=no + ]) + ], AC_DEFINE(ACE_HAS_VOIDPTR_MMAP),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check if msync is broken, i.e. doesn't accept third "sync" argument. +dnl This test should come after the test for checking if mmap takes a void* +dnl argument since we need the ACE_MMAP_TYPE type for this test. +if test "$ac_cv_func_msync" = yes; then +ACE_CACHE_CHECK(if msync accepts a third "sync" argument, + ace_cv_lib_broken_msync, + [ + AC_TRY_COMPILE( + [ +#include <sys/mman.h> + +#if defined (ACE_HAS_VOIDPTR_MMAP) + /* Needed for some odd OS's (e.g., SGI). */ + typedef void *ACE_MMAP_TYPE; +#else + typedef char *ACE_MMAP_TYPE; +#endif /* ACE_HAS_VOIDPTR_MMAP */ + ], + [ + ACE_MMAP_TYPE start = 0; + size_t length = 0; + int flags = MS_SYNC; + + int result; + + result = msync(start, length, flags); + ], + [ + ace_cv_lib_broken_msync=no + ], + [ + dnl Now see if it works with just two arguments + AC_TRY_COMPILE( + [ +#include <sys/mman.h> + +#if defined (ACE_HAS_VOIDPTR_MMAP) + /* Needed for some odd OS's (e.g., SGI). */ + typedef void *ACE_MMAP_TYPE; +#else + typedef char *ACE_MMAP_TYPE; +#endif /* ACE_HAS_VOIDPTR_MMAP */ + ], + [ + ACE_MMAP_TYPE start = 0; + size_t length = 0; + + int result; + + result = msync(start, length); + ], + [ + ace_cv_lib_broken_msync=yes + ], + [ + dnl If we get to this point then we don't know if msync is + dnl is broken or not. + ace_cv_lib_broken_msync=no + ]) + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_NETBSD_MSYNC),) +fi dnl test "$ac_cv_func_msync" = yes + +dnl Check if platform has iostream method ipfx() +ACE_CACHE_CHECK(if platform has iostream method ipfx(), + ace_cv_feature_has_iostream_ipfx,[ + AC_TRY_COMPILE( + [ +#include <iostream.h> + ], + [ + cin.ipfx(); + ], + [ + ace_cv_feature_has_iostream_ipfx=yes + ], + [ + ace_cv_feature_has_iostream_ipfx=no + ]) + ], , AC_DEFINE(ACE_LACKS_IOSTREAM_FX)) + +dnl Check if platform has line-buffered streambufs +ACE_CACHE_CHECK(if platform has line-buffered streambufs, + ace_cv_feature_has_linebuffered_streambuf,[ + AC_TRY_COMPILE( + [ +#include <iostream.h> + ], + [ + cin.rdbuf()->linebuffered(1); + ], + [ + ace_cv_feature_has_linebuffered_streambuf=yes + ], + [ + ace_cv_feature_has_linebuffered_streambuf=no + ]) + ], , AC_DEFINE(ACE_LACKS_LINEBUFFERED_STREAMBUF)) + +dnl Check if platform has unbuffered streambufs +ACE_CACHE_CHECK(if platform has unbuffered streambufs, + ace_cv_feature_has_unbuffered_streambuf,[ + A_TRY_COMPILE( + [ +#include <iostream.h> + ], + [ + cin.rdbuf()->unbuffered(1); + ], + [ + ace_cv_feature_has_unbuffered_streambuf=yes + ], + [ + ace_cv_feature_has_unbuffered_streambuf=no + ]) + ], , AC_DEFINE(ACE_LACKS_UNBUFFERED_STREAMBUF)) + +dnl Check if signal takes a void (*)(int) as second parameter +AC_CACHE_CHECK(if signal takes a void (*)(int) as second parameter, + ace_cv_lib_signal_vi1_2,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(int); + void handler(int) + { + } + ], + [ + SA nn = handler; + signal(SIGINT, nn); + ], + [ + ace_cv_lib_signal_vi1_2=yes + ], + [ + ace_cv_lib_signal_vi1_2=no + ]) + ]) + +dnl Check if signal takes a void (*)(void) as second parameter +AC_CACHE_CHECK(if signal takes a void (*)(void) as second parameter, + ace_cv_lib_signal_vv1_2,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(void); + void handler(int) { } + ], + [ + SA nn = handler; + signal(SIGINT, nn); + ], + [ + ace_cv_lib_signal_vv1_2=yes + ], + [ + ace_cv_lib_signal_vv1_2=no + ]) + ]) + +dnl Check if signal takes a void (*)(int, ...) as second parameter +AC_CACHE_CHECK(if signal takes a void (*)(int, ...) as second parameter, + ace_cv_lib_signal_vi1a2_2,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(int, ...); + void handler(int, ...) { } + ], + [ + SA nn = handler; + signal(SIGINT, nn); + ], + [ + ace_cv_lib_signal_vi1a2_2=yes + ], + [ + ace_cv_lib_signal_vi1a2_2=no + ]) + ]) + +dnl Check if signal takes a void (*)(...) as second parameter +AC_CACHE_CHECK(if signal takes a void (*)(...) as second parameter, + ace_cv_lib_signal_va1_2,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(...); + void handler(...) { } + ], + [ + SA nn = handler; + signal(SIGINT, nn); + ], + [ + ace_cv_lib_signal_va1_2=yes + ], + [ + ace_cv_lib_signal_va1_2=no + ]) + ]) + +dnl Check if signal returns a void (*)(int) +AC_CACHE_CHECK(if signal returns a void (*)(int), + ace_cv_lib_signal_vi1_ret,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(int); + void foo(SA nn) { } + ], + [ + SA nn = SIG_DFL; + nn = signal(SIGINT, 0); + foo(nn); + ], + [ + ace_cv_lib_signal_vi1_ret=yes + ], + [ + ace_cv_lib_signal_vi1_ret=no + ]) + ]) + +dnl Check if signal returns a void (*)(void) +AC_CACHE_CHECK(if signal returns a void (*)(void), + ace_cv_lib_signal_vv1_ret,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(void); + void foo(SA nn) { } + ], + [ + SA nn = SIG_DFL; + nn = signal(SIGINT, 0); + foo(nn); + ], + [ + ace_cv_lib_signal_vv1_ret=yes + ], + [ + ace_cv_lib_signal_vv1_ret=no + ]) + ]) + +dnl Check if signal returns a void (*)(int, ...) +AC_CACHE_CHECK(if signal returns a void (*)(int, ...), + ace_cv_lib_signal_vi1a2_ret,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(int, ...); + ], + [ + SA oo = signal(SIGINT, 0); + ], + [ + ace_cv_lib_signal_vi1a2_ret=yes + ], + [ + ace_cv_lib_signal_vi1a2_ret=no + ]) + ]) + +dnl Check if signal returns a void (*)(...) +AC_CACHE_CHECK(if signal returns a void (*)(...), + ace_cv_lib_signal_va1_ret,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(...); + ], + [ + SA oo = signal(SIGINT, 0); + ], + [ + ace_cv_lib_signal_va1_ret=yes + ], + [ + ace_cv_lib_signal_va1_ret=no + ]) + ]) + +if test "$ace_cv_struct_sigaction" = yes; then +dnl Check if struct sigaction takes a void (*)(int) handler + AC_CACHE_CHECK(if struct sigaction takes a void (*)(int) handler, + ace_cv_lib_struct_sigaction_vi1_handler,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(int); + void foo(struct sigaction* sa, SA nn) { } + ], + [ + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + ], + [ + ace_cv_lib_struct_sigaction_vi1_handler=yes + ], + [ + ace_cv_lib_struct_sigaction_vi1_handler=no + ]) + ]) + +dnl Check if struct sigaction takes a void (*)(void) handler + AC_CACHE_CHECK(if struct sigaction takes a void (*)(void) handler, + ace_cv_lib_struct_sigaction_vv1_handler,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(void); + void foo(struct sigaction* sa, SA nn) { } + ], + [ + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + ], + [ + ace_cv_lib_struct_sigaction_vv1_handler=yes + ], + [ + ace_cv_lib_struct_sigaction_vv1_handler=no + ]) + ]) + +dnl Check if struct sigaction takes a void (*)(int, ...) handler + AC_CACHE_CHECK(if struct sigaction takes a void (*)(int, ...) handler, + ace_cv_lib_struct_sigaction_vi1a2_handler,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(int, ...); + void foo(struct sigaction* sa, SA nn) { } + ], + [ + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + ], + [ + ace_cv_lib_struct_sigaction_vi1a2_handler=yes + ], + [ + ace_cv_lib_struct_sigaction_vi1a2_handler=no + ]) + ]) + +dnl Check if struct sigaction takes a void (*)(...) handler + AC_CACHE_CHECK(if struct sigaction takes a void (*)(...) handler, + ace_cv_lib_struct_sigaction_va1_handler,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + typedef void (*SA)(...); + void foo(struct sigaction* sa, SA nn) { } + ], + [ + struct sigaction sa; + SA nn = SIG_DFL; + sa.sa_handler = nn; + foo(&sa, nn); + ], + [ + ace_cv_lib_struct_sigaction_va1_handler=yes + ], + [ + ace_cv_lib_struct_sigaction_va1_handler=no + ]) + ]) +fi dnl test "$ace_cv_struct_sigaction" = yes + +dnl TODO: This doesn't work. +dnl The linux compiler issues a warning regarding the invalid void* +dnl conversion. +dnl +dnl FIXED by adding "-Werror" to compiler flags when using GNU C++ +dnl -Ossama +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check if msgsnd() takes a struct msgbuf* second parameter +ACE_CACHE_CHECK(if msgsnd() takes a struct msgbuf* second parameter, + ace_cv_lib_posix_msgsnd_msgbufp_2,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +#ifndef ACE_LACKS_SYSV_MSG_H +# include <sys/msg.h> +#endif + ], + [ + int msqid; + struct msgbuf* msgp = 0; + int msgsz; + int msgflg; + msgsnd(msqid, msgp, msgsz, msgflg); + ], + [ + ace_cv_lib_posix_msgsnd_msgbufp_2=yes + ], + [ + ace_cv_lib_posix_msgsnd_msgbufp_2=no + ]) + ], + [ + dnl "ACTIONS-IF-SUCCESSFUL" handled later in configure.in + ], + [ + dnl Check if msgsnd() takes a const void* second parameter + ACE_CACHE_CHECK(if msgsnd() takes a const void* second parameter, + ace_cv_lib_posix_msgsnd_cvoidp_2,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +#ifndef ACE_LACKS_SYSV_MSG_H +# include <sys/msg.h> +#endif + ], + [ + int msqid; + const void* msgp = 0; + int msgsz; + int msgflg; + msgsnd(msqid, msgp, msgsz, msgflg); + ], + [ + ace_cv_lib_posix_msgsnd_cvoidp_2=yes + ], + [ + ace_cv_lib_posix_msgsnd_cvoidp_2=no + ]) + ], + [ + dnl Do nothing if msgsnd takes a const void* second parameter + ], + [ + dnl If we get this far we presumably have a non-const void* second param + AC_DEFINE(ACE_HAS_NONCONST_MSGSND) + ]) + ]) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl TODO: This doesn't work. +dnl The linux compiler issues a warning regarding the invalid void* +dnl conversion. +dnl +dnl FIXED by adding "-Werror" to compiler flags when using GNU C++ +dnl -Ossama +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check if msgrcv() takes a void* second parameter +AC_CACHE_CHECK(if msgrcv() takes a void* second parameter, + ace_cv_lib_posix_msgrcv_voidp_2,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +#ifndef ACE_LACKS_SYSV_MSG_H +# include <sys/msg.h> +#endif + ], + [ + int msqid; + void* msgp; + int msgsz; + long msgtyp; + int msgflg; + msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); + ], + [ + ace_cv_lib_posix_msgrcv_voidp_2=yes + ], + [ + ace_cv_lib_posix_msgrcv_voidp_2=no + ]) + ]) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl TODO: This doesn't work. +dnl The linux compiler issues a warning regarding the invalid void* +dnl conversion. +dnl +dnl FIXED by adding "-Werror" to compiler flags when using GNU C++ +dnl -Ossama +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check if shmat() takes a void* second parameter +AC_CACHE_CHECK(if shmat() takes a void* second parameter, + ace_cv_lib_posix_shmat_voidp_2,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +# include <sys/ipc.h> +# include <sys/shm.h> + ], + [int shmid; + void* shmaddr; + int shmflg; + shmat(shmid, shmaddr, shmflg); + ], + [ + ace_cv_lib_posix_shmat_voidp_2=yes + ], + [ + ace_cv_lib_posix_shmat_voidp_2=no + ]) + ]) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl TODO: This doesn't work. +dnl The linux compiler issues a warning regarding the invalid void* +dnl conversion. +dnl +dnl FIXED by adding "-Werror" to compiler flags when using GNU C++ +dnl -Ossama +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check if sigaction() takes a const* second parameter +AC_CACHE_CHECK(if sigaction() takes a const* second parameter, + ace_cv_lib_posix_sigaction_constp_2,[ + AC_TRY_COMPILE( + [ +#include <signal.h> + ], + [ + int signum; + const struct sigaction* act = 0; + struct sigaction* oldact; + sigaction(signum, act, oldact); + ], + [ + ace_cv_lib_posix_sigaction_constp_2=yes + ], + [ + ace_cv_lib_posix_sigaction_constp_2=no + ]) + ]) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check if the wait() system call takes a (union wait *) rather than int * +ACE_CACHE_CHECK(if wait() takes a (union wait *) rather than int *, + ace_cv_lib_wait_takes_union_wait_ptr, + [ + AC_TRY_COMPILE( + [ +#include <sys/wait.h> + ], + [ + int* status; + int result; + result=wait(status); + ], + [ + ace_cv_lib_wait_takes_union_wait_ptr=no + ], + [ + AC_TRY_COMPILE( + [ +#include <sys/wait.h> + ], + [ + union wait* status; + int result; + result=wait(status); + ], + [ + ace_cv_lib_wait_takes_union_wait_ptr=yes + ], + [ +dnl If we get here then we're screwed! We can't use int* or union wait*. +dnl It is very unlikely that we will ever get this far. For the sake +dnl of setting some result, we'll assume that we can actually use int*. + ace_cv_lib_wait_takes_union_wait_ptr=no + AC_MSG_WARN(wait() doesn't seem to take either int* or union wait*) + AC_MSG_WARN(as an argument. Going to assume that int* will work.) + ]) + ]) + ], AC_DEFINE(ACE_HAS_UNION_WAIT),) + +dnl We need to use the ACE_CONVERT_WARNINGS_TO_ERRORS() macro since +dnl passing a void * just caused implicit conversion warnings when +dnl using GNU C++, for example. +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check for SVR4 style gettimeofday() +AC_CACHE_CHECK(if gettimeofday() takes a void * second argument, + ace_cv_lib_voidptr_gettimeofday, + [ + AC_TRY_COMPILE( + [ +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + ], + [ + struct timeval *tv = 0; + void *tzp = 0; + + gettimeofday(tv, tzp); + ], + [ + ace_cv_lib_voidptr_gettimeofday=yes + ], + [ + ace_cv_lib_voidptr_gettimeofday=no + ]) + ]) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +if test "$ace_cv_lib_voidptr_gettimeofday" = no; then +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl Check for old OSF1 style gettimeofday() + AC_CACHE_CHECK(if gettimeofday() takes a timzeone * second argument, + ace_cv_lib_timezone_gettimeofday, + [ + AC_TRY_COMPILE( + [ +#include <sys/time.h> +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + ], + [ + struct timeval *tv = 0; + struct timezone *tzp = 0; + + gettimeofday(tv, tzp); + ], + [ + ace_cv_lib_timezone_gettimeofday=yes + ], + [ + ace_cv_lib_timezone_gettimeofday=no + ]) + ]) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS +fi dnl test "$ace_cv_lib_voidptr_gettimeofday" = no + +dnl Check for gettimeofday() protoype +if test "$ace_cv_lib_voidptr_gettimeofday" = yes || + test "$ace_cv_lib_timezone_gettimeofday" = yes; then + ACE_CACHE_CHECK(for gettimeofday() protoype, + ace_cv_lib_has_gettimeofday_prototype, + [ + AC_EGREP_CPP(gettimeofday, + [ +#include <time.h> + +#ifdef ACE_LACKS_SYSTIME_H +# include <sys/time.h> +#endif + ], + [ +dnl We have a gettimeofday prototype + ace_cv_lib_has_gettimeofday_prototype=yes + ], + [ +dnl We don't have a gettimeofday prototype + ace_cv_lib_has_gettimeofday_prototype=no + ]) + ], + [ + if test "$ace_cv_lib_voidptr_gettimeofday" = yes; then + AC_DEFINE(ACE_HAS_SUNOS4_GETTIMEOFDAY) + else + AC_DEFINE(ACE_HAS_TIMEZONE_GETTIMEOFDAY) + fi + ], + [ + if test "$ace_cv_lib_voidptr_gettimeofday" = yes; then + AC_DEFINE(ACE_HAS_SVR4_GETTIMEOFDAY) + else + AC_DEFINE(ACE_HAS_OSF1_GETTIMEOFDAY) + fi + ]) +fi dnl Check for gettimeofday() protoype + + +dnl Check if ctime_r() takes two parameters +if test "$ac_cv_func_ctime_r" = yes; then + ACE_CACHE_CHECK(if ctime_r() takes two parameters, + ace_cv_lib_posix_ctime_r_2_params, + [ + AC_TRY_COMPILE( + [ +#ifndef _REENTRANT +# define _REENTRANT +#endif + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + ], + [ + const time_t *t ; + char *buf; + ctime_r(t, buf); + ], + [ + ace_cv_lib_posix_ctime_r_2_params=yes + ], + [ + ace_cv_lib_posix_ctime_r_2_params=no + ]) + ], AC_DEFINE(ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R),) +fi dnl test "$ac_cv_func_ctime_r" = yes + + +dnl +dnl SECTION 12: checks for type characteristics +dnl + +dnl struct msghdr stuff +dnl Only run the following tests if the msghdr structure exists. +if test "$ace_cv_struct_msghdr" = yes; then + + ACE_CACHE_CHECK(if struct msghdr has a msg_accrights member, + ace_cv_lib_posix_struct_msghdr_has_msg_accrights,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + msghdr mh; + mh.msg_accrights = 0; + ], + [ + ace_cv_lib_posix_struct_msghdr_has_msg_accrights=yes + ], + [ + ace_cv_lib_posix_struct_msghdr_has_msg_accrights=no + ]) + ]) + + ACE_CACHE_CHECK(if struct msghdr has a msg_accrights_len member, + ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + ], + [ + msghdr mh; + mh.msg_accrightslen = 0; + ], + [ + ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len=yes + ], + [ + ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len=no + ]) + ]) + +dnl Check for 4.4 BSD style struct msghdr members +dnl The following test should only be run if the above two testsfail. + if test "$ace_cv_lib_posix_struct_msghdr_has_msg_accrights" = no && + test "$ace_cv_lib_posix_struct_msghdr_has_msg_accrights_len" = no; then + AC_DEFINE(ACE_LACKS_MSG_ACCRIGHTS) + ACE_CACHE_CHECK(for 4.4 BSD style struct msghdr, + ace_cv_lib_4_4bsd_msghdr,[ + AC_EGREP_HEADER(msg_control, sys/socket.h, + [ + ace_cv_lib_4_4bsd_msghdr=yes + ], + [ + ace_cv_lib_4_4bsd_msghdr=no + ]) + ], + [ + AC_DEFINE(ACE_HAS_4_4BSD_SENDMSG_RECVMSG) + ], + [ + AC_MSG_WARN(No supported msghdr structure was found. ACE may not compile or function properly.) + ]) + fi + +dnl Now check if CMSG_DATA is defined if and only if we have 4.4 BSD +dnl style struct msghdr members. If CMSG_DATA isn't defined, then +dnl we try to figure out what it should be defined to. + if test "$ace_cv_lib_4_4bsd_msghdr" = yes; then + ACE_CACHE_CHECK(if CMSG_DATA is defined, + ace_cv_lib_cmsg_data, + [ + AC_EGREP_CPP(ACE_CMSG_DATA_DEFINED, + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + +#if defined (CMSG_DATA) + ACE_CMSG_DATA_DEFINED +#endif + ], + [ + ace_cv_lib_cmsg_data=yes + ], + [ + ace_cv_lib_cmsg_data=no +dnl Now check which type of CMSG_DATA #define we need. + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + ], + [ + /* This is sloppy. Oh well. :) */ + unsigned char ace_cmsg_data[0]; + + cmsghdr ace_cmsg; + ace_cmsg.cmsg_data = ace_cmsg_data; + ], + [ + dnl Do nothing + ], + [ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + ], + [ + /* This is sloppy. Oh well. :) */ + unsigned char ace_cmsg_data[0]; + + cmsghdr ace_cmsg; + ace_cmsg.__cmsg_data = ace_cmsg_data; + ], + [ + AC_MSG_ERROR(cmsgmdr member '__cmsg_data[0]' not supported by ACE's CMSG_DATA macro) + ], + [ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> +#include <sys/un.h> + ], + [ + cmsghdr ace_cmsg; + ], + [ + AC_CACHE_VAL(ace_cv_lib_cmsg_data_member, + ace_cv_lib_cmsg_data_member=no) + ], + [ + AC_MSG_ERROR(No supported cmsghdr structure exists. ACE cannot be built without one.) + ]) + ]) + ]) + ]) + ], , + [ + AC_DEFINE(ACE_LACKS_CMSG_DATA_MACRO) + if test "$ace_cv_lib_cmsg_data_member"=no; then + AC_DEFINE(ACE_LACKS_CMSG_DATA_MEMBER) + fi + + ]) + fi dnl test "$ace_cv_lib_4_4bsd_msghdr" = yes + +fi dnl End struct msghdr_stuff + +dnl +dnl SECTION 13: checks for system services +dnl + +dnl TODO: I'm not sure if I am interpreting the meaning of +dnl ACE_HAS_SIGNAL_SAFE_OS_CALLS. Could someone make +dnl sure I am testing for ACE_HAS_SIGNAL_SAFE_OS_CALLS +dnl correctly? +dnl -Ossama +dnl Do not run this test if we are using a cross-compiler. +if test "$cross_compiling" != yes; then + AC_SYS_RESTARTABLE_SYSCALLS + if test "$ac_cv_sys_restartable_syscalls" = yes; then + AC_DEFINE(ACE_HAS_SIGNAL_SAFE_OS_CALLS) + fi +fi + +dnl Check if platform defines ctime() as a macro +ACE_CACHE_CHECK(if platform defines ctime() as a macro, + ace_cv_feature_have_ctime_macro, + [ + AC_EGREP_CPP(ACE_CTIME_MACRO, + [ +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +#if defined (ctime) + ACE_CTIME_MACRO +#endif + ], + [ + ace_cv_feature_have_ctime_macro=yes + ], + [ + ace_cv_feature_have_ctime_macro=no + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_CTIME),) + +dnl Check if platform defines ctime_r, asctime_r, rand_r or getpwnam_r +dnl as macros. +ACE_CACHE_CHECK(if platform defines some reentrant functions as macros, + ace_cv_feature_has_broken_r_routines, + [ + AC_EGREP_CPP(ACE_R_MACROS, + [ +#ifndef _REENTRANT +# define _REENTRANT +#endif + +#include <time.h> + +#if defined(ACE_LACKS_SYSTIME_H) +# include <sys/time.h> +#endif + +#if defined (HAVE_PWD_H) +# include <pwd.h> +#endif + +#if defined (ctime_r) || \ + defined (asctime_r) || \ + defined (rand_r) || \ + defined (getpwnam_r) + ACE_R_MACROS +#endif + ], + [ + ace_cv_feature_has_broken_r_routines=yes + ], + [ + ace_cv_feature_has_broken_r_routines=no + ]) + ], AC_DEFINE(ACE_HAS_BROKEN_R_ROUTINES),) + +dnl Check if platform defines sig{empty,fill,add,del}set as macros +ACE_CACHE_CHECK(if platform defines sig{empty fill add del}set as macros, + ace_cv_feature_have_sig_macros, + [ + AC_EGREP_CPP(ACE_SIG_MACROS, + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <signal.h> + +#if defined (sigemptyset) && \ + defined (sigfillset) && \ + defined (sigaddset) && \ + defined (sigdelset) && \ + defined (sigismember) + ACE_SIG_MACROS +#endif + ], + [ + ace_cv_feature_have_sig_macros=yes + ], + [ + ace_cv_feature_have_sig_macros=no + ]) + ], AC_DEFINE(ACE_HAS_SIG_MACROS),) + +dnl Check for open() mode masks +ACE_CACHE_CHECK(for open() mode masks, + ace_cv_feature_have_open_mode_masks,[ + AC_EGREP_CPP(ACE_OPEN_MODE_MASKS_EXIST, + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/stat.h> +#include <fcntl.h> + + /* These are ORed so that ACE will not redefine + any of them if any of them exist. */ +#if defined (S_IRWXU) || \ + defined (S_IRUSR) || \ + defined (S_IWUSR) || \ + defined (S_IXUSR) || \ + defined (S_IRWXG) || \ + defined (S_IRGRP) || \ + defined (S_IWGRP) || \ + defined (S_IXGRP) || \ + defined (S_IRWXO) || \ + defined (S_IROTH) || \ + defined (S_IWOTH) || \ + defined (S_IXOTH) + ACE_OPEN_MODE_MASKS_EXIST +#endif + ], + [ + ace_cv_feature_have_open_mode_masks=yes + ], + [ + ace_cv_feature_have_open_mode_masks=no + ]) + ], , AC_DEFINE(ACE_LACKS_MODE_MASKS)) + + +dnl Check if platform supports POSIX O_NONBLOCK semantics +ACE_CACHE_CHECK(for POSIX O_NONBLOCK semantics, + ace_cv_feature_posix_o_nonblock,[ + AC_EGREP_CPP(ACE_POSIX_O_NONBLOCK, + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/stat.h> +#include <fcntl.h> + +#if defined (O_NONBLOCK) + ACE_POSIX_O_NONBLOCK +#endif + ], + [ + ace_cv_feature_posix_o_nonblock=yes + ], + [ + ace_cv_feature_posix_o_nonblock=no + ]) + ], AC_DEFINE(ACE_HAS_POSIX_NONBLOCK),) + +dnl Check if platform defines MAP_FAILED as a long constant +ACE_CACHE_CHECK(if platform defines MAP_FAILED as a long constant, + ace_cv_feature_long_map_failed,[ + dnl We need the square brackets around "ACEMAPFAILED.+[0-9]L" to + dnl prevent the character class "[0-9]" from becoming "0-9" due to + dnl M4 quoting. + AC_EGREP_CPP([ACEMAPFAILED.+[0-9]L], + [ +#include <sys/mman.h> + ACEMAPFAILED MAP_FAILED + ], + [ + ace_cv_feature_long_map_failed=yes + ], + [ + ace_cv_feature_long_map_failed=no + ]) + ], AC_DEFINE(ACE_HAS_LONG_MAP_FAILED),) + +dnl Check if platform supports SO_SNDBUF/SO_RCVBUF socket options +ACE_CACHE_CHECK(if platform supports SO_SNDBUF/SO_RCVBUF socket options, + ace_cv_feature_so_sndbuf_rcvbuf,[ + AC_EGREP_CPP(ACE_SO_BUF, + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/socket.h> + +#if defined (SO_SNDBUF) && \ + defined (SO_RCVBUF) + ACE_SO_BUF +#endif + ], + [ + ace_cv_feature_so_sndbuf_rcvbuf=yes + ], + [ + ace_cv_feature_so_sndbuf_rcvbuf=no + ]) + ], , AC_DEFINE(ACE_LACKS_SOCKET_BUFSIZ)) + +dnl TODO: We only check for ACE_HAS_AUTOMATIC_INIT_FINI on platforms that +dnl have SVR4 dynamic linking since ACE doesn't support it otherwise. +if test "$ac_cv_header_dlfcn_h" = yes && + test "$ace_has_svr4_dynamic_linking" = yes; then +dnl Check if platform calls init/fini automatically + ACE_CACHE_CHECK(if platform calls init/fini automatically, + ace_cv_feature_auto_init_fini,[ + ace_cv_feature_auto_init_fini=yes + # TODO: We know how to check for this, but we need to: + # + # 1. Compile one file. + # 2. Compile and link another file. + # 3. Run file in point (2); it returns what we need. + # + # How do we do all that? + ], AC_DEFINE(ACE_HAS_AUTOMATIC_INIT_FINI),) +fi dnl test "$ac_cv_header_dlfcn_h" = yes && + dnl "$ace_has_svr4_dynamic_linking" = yes + +dnl Check for recursive thread exit semantics +if test "$ace_user_enable_threads" = yes; then + ACE_CACHE_CHECK(for recursive thread exit semantics, + ace_cv_feature_recursive_thr_exit,[ + ace_cv_feature_recursive_thr_exit=yes + # TODO: How do we check for recursive thread exit semantics + ], AC_DEFINE(ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS),) +fi + +dnl Check for asynchronous IO calls +if test "$ace_has_aio_funcs" = yes; then + ACE_CACHE_CHECK(for asynchronous IO calls, + ace_cv_feature_aio_calls,[ + AC_TRY_COMPILE( + [ +#include <aio.h> + ], + [ + aiocb* aiocb_ptr (void); + ], + [ + ace_cv_feature_aio_calls=yes + ], + [ + ace_cv_feature_aio_calls=no + ]) + ], AC_DEFINE(ACE_HAS_AIO_CALLS),) +fi dnl test "$ace_has_aio_funcs" = yes + +dnl Check for UNIX domain sockets +ACE_CACHE_CHECK(for UNIX domain sockets, + ace_cv_feature_unix_sockets, + [ + AC_TRY_COMPILE( + [ +#include <sys/un.h> + ], + [ + sockaddr_un su; + ], + [ + ace_cv_feature_unix_sockets=yes + ], + [ + ace_cv_feature_unix_sockets=no + ]) + ], , AC_DEFINE(ACE_LACKS_UNIX_DOMAIN_SOCKETS)) + +dnl Check for ACE_Handle_Set optimized for select() +ACE_CACHE_CHECK(for ACE_Handle_Set optimized for select(), + ace_cv_feature_handle_set_optimized_for_select,[ + ace_cv_feature_handle_set_optimized_for_select=yes + # TODO: We know how to check this. We need to: + # + # 1. Compile and link a file. + # 2. Run nm on that file. + # + # How do we do that? + ], AC_DEFINE(ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT),) + +dnl Even we if we don't have IP multicasting, we still need to define +dnl "ACE_HAS_IP_MULTICAST" since struct ip_mreq gets redefined by ACE. +dnl What do we do about this problem? +dnl -Ossama +dnl Check for IP multicast support +ACE_CACHE_CHECK(for IP multicast support, + ace_cv_feature_ip_multicast,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <netinet/in.h> + ], + [ + ip_mreq im; + ], + [ + ace_cv_feature_ip_multicast=yes + ], + [ +dnl Some platforms define ip_mreq in <sys/netinet/in.h>. + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_SYS_TYPES_H +# include <sys/types.h> +#endif +#include <sys/netinet/in.h> + ], + [ + ip_mreq im; + ], + [ + ace_cv_feature_ip_multicast=yes + ], + [ + ace_cv_feature_ip_multicast=no + ]) + ]) + ], AC_DEFINE(ACE_HAS_IP_MULTICAST),) + +ACE_CACHE_CHECK(if platform runs on an Alpha, + ace_cv_feature_alpha,[ + case "$target" in + alpha*) + ace_cv_feature_alpha=yes + ;; + *) + ace_cv_feature_alpha=no + ;; + esac + ], + [ + case "$target" in + *linux*) + dnl We only define ACE_HAS_ALPHA_TIMER if we are running Linux + dnl on an Alpha and are using GNU C++! + if test -n "$GXX"; then + AC_DEFINE(ACE_HAS_ALPHA_TIMER) + fi + ;; + esac + ],) + +ACE_CACHE_CHECK(if platform runs on a Power PC, + ace_cv_feature_powerpc,[ + case "$target" in + powerpc*) + ace_cv_feature_powerpc=yes + ;; + *) + ace_cv_feature_powerpc=no + ;; + esac + ], + [ + case "$target" in + *aix*) + dnl We don't do anything for AIX since AIX already has a + dnl hi-res timer function! + ;; + *) + dnl Only define ACE_HAS_POWERPC_TIMER when using GNU C++! + if test -n "$GXX"; then + AC_DEFINE(ACE_HAS_POWERPC_TIMER) + fi + ;; + esac + ],) + +ACE_CACHE_CHECK(if platform runs on a Pentium(tm) processor, + ace_cv_feature_pentium,[ + case "$target" in + i386-* | i486-* |i586-* | i686-*) +dnl If we do have a pentium, than define ACE_HAS_PENTIUM and add +dnl gethrtime.cpp to the source list + ace_cv_feature_pentium=yes + ;; + *) + ace_cv_feature_pentium=no + ;; + esac + ], + [ + AC_DEFINE(ACE_HAS_PENTIUM) + ],) +AM_CONDITIONAL(ACE_ON_PENTIUM, test X$ace_cv_feature_pentium = Xyes) + +dnl We need to convert warnings to errors here since GNU C++ just gives +dnl a warning about an implicit declaration of getpgid. +ACE_CONVERT_WARNINGS_TO_ERRORS( dnl +[ +dnl getpgid() requires _GNU_SOURCE to be defined in some platforms. +dnl First check to see if getgpid calls fail without _GNU_SOURCE defines +ACE_CACHE_CHECK(if platform requires _GNU_SOURCE for getpgid definition, + ace_cv_feature_gnu_source,[ + AC_TRY_COMPILE( + [ +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + ], + [ + int id = getpgid(0); + ], + [ + ace_cv_feature_gnu_source=no + ], + [ +dnl Now check to make sure that these defines actually fix getpgid + AC_TRY_COMPILE( + [ +#define _GNU_SOURCE +/* #define _GNU_SOURCE_EXTENDED */ +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + ], + [ + int id = getpgid(0); + ], + [ + ace_cv_feature_gnu_source=yes + ], + [ + ace_cv_feature_gnu_source=no + ]) + ]) + ], AC_DEFINE(_GNU_SOURCE),) +]) dnl ACE_CONVERT_WARNINGS_TO_ERRORS + +dnl Check if platform only supports SCHED_OTHER scheduling policy +ACE_CACHE_CHECK(if platform only supports SCHED_OTHER scheduling policy, + ace_cv_feature_only_have_sched_other,[ + AC_EGREP_CPP(WE_ONLY_HAVE_SCHED_OTHER, + [ +#ifdef ACE_HAS_PTHREADS +# include <pthread.h> +#elif defined (ACE_HAS_STHREADS) +# include <thread.h> +#endif + +#if defined (ACE_LACKS_SCHED_H) +# include <sched.h> +#endif + + /* These are ORed so that ACE will not redefine + any of them if any of them exist. */ +#if !defined (SCHED_FIFO) && \ + !defined (SCHED_RR) + WE_ONLY_HAVE_SCHED_OTHER +#endif + ], + [ + ace_cv_feature_only_have_sched_other=yes + ], + [ + ace_cv_feature_only_have_sched_other=no + ]) + ], AC_DEFINE(ACE_HAS_ONLY_SCHED_OTHER),) + +dnl +dnl SECTION 14: checks for aggregated features +dnl TODO: Little by little, get rid of these... +dnl + + +dnl Macro ACE_HAS_REENTRANT_FUNCTIONS means the following functions +dnl are usable: +dnl +dnl rand_r +dnl strtok_r +dnl getpwnam_r (if we don't have, define ACE_LACKS_PWD_REENTRANT_FUNCTIONS) +dnl ctime_r +dnl localtime_r +dnl gmtime_r +dnl asctime_r +dnl * getprotobyname_r +dnl * getprotobynumber_r +dnl * gethostbyaddr_r +dnl * gethostbyname_r +dnl * getservbyname_r +dnl +dnl Those marked with '*' are NOT usable if +dnl ACE_LACKS_NETDB_REENTRANT_FUNCTIONS) is defined. +dnl +dnl The time has come to create feature macros for each of these... +dnl With the separate feature macros, we will define (for now) +dnl ACE_HAS_REENTRANT_FUNCTIONS only when all of those WITHOUHT a '*' +dnl are defined. Also, if any of those with '*' are missing, we will +dnl define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS. + +dnl Don't bother with reentrant functions if they are disabled by the user. +if test "$ace_user_enable_reentrant_funcs" = yes && + test "$ac_cv_func_rand_r" = yes && + test "$ac_cv_func_strtok_r" = yes && + test "$ac_cv_func_ctime_r" = yes && + test "$ac_cv_func_localtime_r" = yes && + test "$ac_cv_func_gmtime_r" = yes && + test "$ac_cv_func_asctime_r" = yes; then + AC_DEFINE(ACE_HAS_REENTRANT_FUNCTIONS +fi + +dnl Don't bother with reentrant functions if they are disabled by the user. +if test "$ace_user_enable_reentrant_funcs" = no || + test "$ac_cv_func_getprotobyname_r" = no || + test "$ac_cv_func_getprotobynumber_r" = no || + test "$ac_cv_func_gethostbyaddr_r" = no || + test "$ac_cv_func_gethostbyname_r" = no || + test "$ac_cv_func_getservbyname_r" = no; then + AC_DEFINE(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS) +fi + +dnl FIXME!!! +dnl The following is a kludge until the netdb reentrant function +dnl number of arguments is handled. +case "$target" in + *linux*) AC_DEFINE(ACE_LACKS_NETDB_REENTRANT_FUNCTIONS);; + *) ;; +esac + + +dnl Macro ACE_LACKS_SOME_POSIX_PROTOTYPES implies any of the following +dnl features: +dnl +dnl ! ACE_HAS_MSGSND_MSGBUFP_2 +dnl ! ACE_LACKS_MSGRCV_VOIDP_2 +dnl ! ACE_LACKS_SHMAT_VOIDP_2 +dnl ! ACE_LACKS_SIGACTION_CONSTP_2 +dnl +dnl So, for now, we define it if any of those were autoconf'ed. + +if test "$ace_cv_lib_posix_msgsnd_msgbufp_2" = yes || + test "$ace_cv_lib_posix_msgrcv_voidp_2" != yes || + test "$ace_cv_lib_posix_shmat_voidp_2" != yes || + test "$ace_cv_lib_posix_sigaction_constp_2" != yes; then + AC_DEFINE(ACE_LACKS_SOME_POSIX_PROTOTYPES) +fi + +if test "$ac_cv_func_msgctl" = yes && + test "$ac_cv_func_msgget" = yes && + test "$ac_cv_func_msgrcv" = yes && + test "$ac_cv_func_semctl" = yes && + test "$ac_cv_func_semget" = yes && + test "$ac_cv_func_semop" = yes && + test "$ac_cv_func_shmat" = yes && + test "$ac_cv_func_shmctl" = yes && + test "$ac_cv_func_shmdt" = yes && + test "$ac_cv_func_shmget" = yes; then + AC_DEFINE(ACE_HAS_SYSV_IPC) +fi + +if test "$ac_cv_func_shmat" != yes || + test "$ac_cv_func_shmctl" != yes || + test "$ac_cv_func_shmdt" != yes || + test "$ac_cv_func_shmget" != yes; then + AC_DEFINE(ACE_LACKS_SYSV_SHMEM) +fi + +dnl Check for what POSIX threads draft we have +AC_MSG_CHECKING(which POSIX thread library was found) + +ace_has_pthreads=no + +dnl Check if we have Pthreads Draft 4 +dnl if test "$ac_cv_func_pthread_delay_np" = yes && +if test "$ac_cv_func_pthread_mutexattr_create" = yes && +dnl test "$ac_cv_func_pthread_mutexattr_setkind_np" = yes && + test "$ac_cv_func_pthread_mutexattr_delete" = yes && + test "$ac_cv_func_pthread_condattr_delete" = yes && + test "$ac_cv_func_pthread_condattr_create" = yes && + test "$ac_cv_func_pthread_setprio" = yes && + test "$ac_cv_func_pthread_getprio" = yes && +dnl test "$ac_cv_func_pthread_getspecific" = yes && + test "$ac_cv_func_pthread_setcancel" = yes && + test "$ac_cv_func_pthread_setasynccancel" = yes && + test "$ac_cv_func_pthread_kill" = yes; then + ace_has_pthreads=yes + AC_MSG_RESULT(POSIX Threads Draft 4) + AC_DEFINE(ACE_HAS_PTHREADS_DRAFT4) +dnl Check if we have Pthreads Draft 6 +elif test "$ac_cv_func_pthread_mutexattr_init" = yes && + test "$ac_cv_func_pthread_mutexattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_init" = yes && + test "$ac_cv_func_pthread_attr_setprio" = yes && + test "$ac_cv_func_pthread_attr_getprio" = yes && + test "$ac_cv_func_pthread_setintr" = yes && + test "$ac_cv_func_pthread_setintrtype" = yes; then + ace_has_pthreads=yes + AC_MSG_RESULT(POSIX Threads Draft 6) + AC_DEFINE(ACE_HAS_PTHREADS_DRAFT6) +dnl Check if we have Pthreads Draft 7 +elif test "$ac_cv_func_pthread_mutexattr_init" = yes && + test "$ac_cv_func_pthread_mutexattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_init" = yes && + test "$ac_cv_func_pthread_setschedparam" = yes && + test "$ac_cv_func_pthread_getschedparam" = yes && + test "$ac_cv_func_pthread_setcancelstate" = yes && + test "$ac_cv_func_pthread_setcanceltype" = yes && + test "$ace_has_sched_yield" != yes; then + ace_has_pthreads=yes + AC_MSG_RESULT(POSIX Threads Draft 7) + AC_DEFINE(ACE_HAS_PTHREADS_DRAFT7) +dnl Check if we have Pthreads Draft Standard +elif test "$ac_cv_func_pthread_mutexattr_init" = yes && + test "$ac_cv_func_pthread_mutexattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_destroy" = yes && + test "$ac_cv_func_pthread_condattr_init" = yes && + test "$ac_cv_func_pthread_setschedparam" = yes && + test "$ac_cv_func_pthread_getschedparam" = yes && + test "$ac_cv_func_pthread_setcancelstate" = yes && + test "$ac_cv_func_pthread_setcanceltype" = yes && + test "$ace_has_sched_yield" = yes; then + ace_has_pthreads=yes + AC_MSG_RESULT(POSIX Threads Draft Standard) + AC_DEFINE(ACE_HAS_PTHREADS_STD) +else + ace_has_pthreads=no + AC_MSG_RESULT(none) +fi dnl PTHREAD DRAFT CHECKS + +dnl Check if we have UNIX International threads +AC_MSG_CHECKING(if a UNIX International thread library was found) +if test "$ace_has_sthreads" = yes; then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +if test "$ace_user_enable_threads" != yes || + test "$ace_has_pthreads" != yes && + test "$ace_has_sthreads" != yes; then +dnl We don't have a usable thread library! + ace_user_enable_threads=no + AC_MSG_WARN(It appears that you do NOT have any usable thread libraries) + AC_MSG_WARN(or thread support was explicitly disabled.) + AC_MSG_WARN(Disabling thread support.) + dnl ACE uses different versions of readdir_r depending on the thread + dnl library being used, i.e. on the ACE_HAS_*THREADS* macros. Since + dnl it doesn't seem like a good idea to define any ACE_HAS_*THREADS* + dnl macro if ACE won't be supporting threads, define ACE_LACKS_READDIR_R + dnl regardless if readdir_r() exists. + if test "$ac_cv_func_readdir_r" = yes; then + AC_MSG_WARN(Disabling support for readdir_r() since thread support) + AC_MSG_WARN(is being disabled.) + AC_DEFINE(ACE_LACKS_READDIR_R) + fi dnl test "$ac_cv_func_readdir_r" = yes +fi dnl + +if test "$ace_user_enable_threads" = yes; then +dnl If we get this far then we have threads. +dnl FIXME: The "_POSIX" macros may need to be defined _before_ the checks for +dnl reentrant functions! However, we don't want to define them if +dnl the UNIX International threads library was detected. + AC_DEFINE(ACE_HAS_THREADS) + AC_DEFINE(ACE_MT_SAFE) + AC_DEFINE(_REENTRANT) + if test "$ace_has_pthreads" = yes && + test "$ace_has_sthreads" != yes; then + AC_DEFINE(_POSIX_THREADS) + AC_DEFINE(_POSIX_THREAD_SAFE_FUNCTIONS) + AC_DEFINE(_POSIX_PTHREAD_SEMANTICS) + fi dnl test "$ace_has_pthreads" = yes +fi dnl test "$ace_user_enable_threads" = yes + + +if test "$ac_cv_header_libc_h" != yes || + test "$ac_cv_header_osfcn_h" != yes; then + AC_DEFINE(ACE_HAS_CPLUSPLUS_HEADERS) +fi + + + +if test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" = yes; then + AC_DEFINE(ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES) +elif test "$ace_cv_lib_signal_vi1_2" != yes && + test "$ace_cv_lib_signal_vv1_2" != yes && + test "$ace_cv_lib_signal_vi1a2_2" != yes && + test "$ace_cv_lib_signal_va1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" != yes && + test "$ace_cv_lib_signal_vv1_ret" != yes && + test "$ace_cv_lib_signal_vi1a2_ret" != yes && + test "$ace_cv_lib_signal_va1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vv1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vi1a2_handler" != yes && + test "$ace_cv_lib_struct_sigaction_va1_handler" = yes; then + AC_DEFINE(ACE_HAS_LYNXOS_SIGNALS) + AC_DEFINE(ACE_HAS_TANDEM_SIGNALS) + AC_DEFINE(ACE_HAS_IRIX_53_SIGNALS) + AC_DEFINE(ACE_HAS_SUNOS4_SIGNAL_T) +elif test "$ace_cv_lib_signal_vi1a2_2" = yes && + test "$ace_cv_lib_signal_vi1a2_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1a2_handler" = yes; then + AC_DEFINE(ACE_HAS_SPARCWORKS_401_SIGNALS) +elif test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" != yes; then + AC_DEFINE(ACE_HAS_SVR4_SIGNAL_T) +elif test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vv1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vv1_handler" = yes; then + AC_DEFINE(ACE_HAS_SVR4_SIGNAL_T) +elif test "$ace_cv_lib_signal_vi1_2" = yes && + test "$ace_cv_lib_signal_vi1_ret" != yes && + test "$ace_cv_lib_signal_vv1_ret" != yes && + test "$ace_cv_lib_signal_vi1a2_ret" != yes && + test "$ace_cv_lib_signal_va1_ret" = yes && + test "$ace_cv_lib_struct_sigaction_vi1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vv1_handler" != yes && + test "$ace_cv_lib_struct_sigaction_vi1a2_handler" != yes && + test "$ace_cv_lib_struct_sigaction_va1_handler" = yes; then + AC_DEFINE(ACE_HAS_UNIXWARE_SVR4_SIGNAL_T) +fi dnl ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES + +dnl +dnl SECTION 15: Final checks +dnl + +dnl At some point the below platform specific settings should be automated +dnl as much as possible! We set things manually just to get things going +dnl with the auto{conf,make}/libtool integration into the ACE source tree. + +dnl Platform specific flags +case "$target" in + *aix3*) + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x80000000)) + ;; + *aix4.1*) + AC_DEFINE(AIX) + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x80000000)) + AC_DEFINE(ACE_HAS_AIX_BROKEN_SOCKET_HEADER) + ;; + *aix4.2*) + AC_DEFINE(AIX) + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x80000000)) +dnl AC_DEFINE(ACE_HAS_AIX_BROKEN_SOCKET_HEADER) + AC_DEFINE(ACE_TLI_TCP_DEVICE, "/dev/xti/tcp") + ;; + *cray*) + ;; + *dgux4.11*) + AC_DEFINE(ACE_DGUX) + AC_DEFINE(IP_ADD_MEMBERSHIP, 0x13) + AC_DEFINE(IP_DROP_MEMBERSHIP, 0x14) + ;; + *dgux4*) + AC_DEFINE(ACE_DGUX) + AC_DEFINE(IP_ADD_MEMBERSHIP, 0x13) + AC_DEFINE(IP_DROP_MEMBERSHIP, 0x14) + ;; + *freebsd*) + ;; + *fsu*) +dnl FIXME: "FSU" isn't a platform! We need to move this somewhere. + AC_DEFINE(PTHREAD_STACK_MIN, (1024*10)) + ;; + *hpux9*) + AC_DEFINE(HPUX) + ;; + *hpux10*) + AC_DEFINE(HPUX) + AC_DEFINE(HPUX_10) + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x80000000)) + AC_DEFINE(ACE_TLI_TCP_DEVICE, "/dev/inet_cots") + ;; + *hpux11*) + AC_DEFINE(HPUX) + AC_DEFINE(HPUX_11) + AC_EGREP_CPP(ACE_ON_64BIT_HP, + [ +#ifdef __LP64__ + ACE_ON_64BIT_HP +#endif + ], + [ + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x0000001100000000)) + AC_DEFINE(ACE_DEFAULT_BASE_ADDRL, ((char *) 0x0000001100000000)) + ], + [ + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x80000000)) + ]) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + ;; + *irix5.2*) + AC_DEFINE(IRIX5) + ;; + *irix5.3*) + AC_DEFINE(IRIX5) + ;; + *irix6*) + AC_DEFINE(IRIX6) + AC_DEFINE(ACE_HAS_IRIX62_THREADS) + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) (1024U * 1024 * 1024))) + if test "$ace_user_enable_threads" = yes; then + AC_DEFINE(ACE_HAS_IRIX62_THREADS) + fi + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + ;; + *linux*) + AC_DEFINE(ACE_DEFAULT_MAX_SOCKET_BUFSIZ, 65535) + AC_DEFINE(ACE_DEFAULT_SELECT_REACTOR_SIZE, 256) + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x80000000)) + AC_DEFINE(ACE_HAS_BIG_FD_SET) dnl FIXME: We need a test for this! + AC_DEFINE(ACE_UINT64_FORMAT_SPECIFIER, "%Lu") + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + ;; + *lynxos*) + AC_DEFINE(ACE_MALLOC_ALIGN, 8) + AC_DEFINE(ACE_MAP_PRIVATE, ACE_MAP_SHARED) + AC_DEFINE(ACE_USE_RCSID, 0) + AC_DEFINE(ACE_HAS_LYNXOS_SIGNALS) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + ;; + *m88k*) + AC_DEFINE(m88k) + AC_DEFINE(__m88k__) + AC_DEFINE(IP_ADD_MEMBERSHIP, 0x13) + AC_DEFINE(IP_DROP_MEMBERSHIP, 0x14) + ;; + *mvs*) + ;; + *netbsd*) + AC_DEFINE(ACE_NETBSD) + ;; + *osf3.2*) + AC_EGREP_CPP(ACE_DEC_CXX, + [ +#if defined(__DECCXX) + ACE_DEC_CXX +#endif + ], + [ + AC_DEFINE(DEC_CXX) + ],) + ;; + *osf4.0*) +dnl We need to add checks for g++, DEC C++ and Rational C++ + AC_EGREP_CPP(ACE_DEC_CXX, + [ +#if defined(__DECCXX) + ACE_DEC_CXX +#endif + ], + [ + AC_DEFINE(DEC_CXX) + ],) +dnl Check for _POSIX_C_SOURCE macro + AC_EGREP_CPP(ACE_ON_DEC_WITH_POS_SRC, + [ + /* Include unistd.h to define _POSIX_C_SOURCE. */ +#ifndef ACE_LACKS_UNISTD_H +# include <unistd.h> +#endif + +#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 199506L) + ACE_ON_DEC_WITH_POS_SRC +#endif + ], + [ + AC_DEFINE(DIGITAL_UNIX) + ],) + AC_DEFINE(ACE_DEFAULT_BASE_ADDR, ((char *) 0x80000000)) + AC_DEFINE(ACE_NEEDS_HUGE_THREAD_STACKSIZE, (1024 * 1024)) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + ;; + *psos*) + AC_DEFINE(ACE_PSOS) + AC_DEFINE(ACE_PSOSIM) + AC_DEFINE(ACE_PSOSTBD) + dnl need ACE_HAS_TSS_EMULATION for ACE_DEFAULT_THREAD_KEYS! + AC_EGREP_CPP(ACE_TSS_EMULATION, + [ +#if defined (ACE_HAS_TSS_EMULATION) + ACE_TSS_EMULATION +#endif + ], AC_DEFINE(ACE_DEFAULT_THREAD_KEYS, 256),) + AC_DEFINE(ACE_MAIN, extern "C" void root) + AC_DEFINE(ACE_MALLOC_ALIGN, 8) + AC_DEFINE(ACE_USE_RCSID, 0) + ;; + *sco4.2*) + AC_DEFINE(SCO) + AC_DEFINE(ACE_DEFAULT_CLOSE_ALL_HANDLES, 0) + ;; + *sco5*) + AC_DEFINE(SCO) + AC_DEFINE(ACE_DEFAULT_CLOSE_ALL_HANDLES, 0) + AC_DEFINE(ACE_HAS_BIG_FD_SET) dnl FIXME: We need a test for this! + ;; + *sunos4*) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + ;; + *solaris2.4*) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + AC_DEFINE(ACE_NEEDS_LWP_PRIO_SET) + ;; + *solaris2.5*) + AC_DEFINE(ACE_MALLOC_ALIGN, 8) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + AC_DEFINE(ACE_NEEDS_LWP_PRIO_SET) + ;; + *solaris2.6*) + AC_DEFINE(ACE_MALLOC_ALIGN, 8) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + AC_DEFINE(ACE_NEEDS_LWP_PRIO_SET) + ;; + *solaris2.7*) + AC_DEFINE(ACE_MALLOC_ALIGN, 8) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + AC_DEFINE(ACE_NEEDS_LWP_PRIO_SET) + ;; + *86*solaris*) + AC_DEFINE(ACE_HAS_X86_STAT_MACROS) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + AC_DEFINE(ACE_NEEDS_LWP_PRIO_SET) + ;; + *tandem*) + AC_DEFINE(ACE_TIMER_SKEW, (1000 * 10)) + ;; + *unixware2.0*) + AC_DEFINE(UNIXWARE) + AC_DEFINE(UNIXWARE_2_0) + ;; + *unixware2.1*) + AC_DEFINE(UNIXWARE) + AC_DEFINE(UNIXWARE_2_1) + ;; + *vxworks*) + AC_DEFINE(VXWORKS) + AC_DEFINE(ACE_MAIN, ace_main) + AC_DEFINE(ACE_DEFAULT_MAX_SOCKET_BUFSIZ, 32768) + dnl need ACE_HAS_TSS_EMULATION for ACE_DEFAULT_THREAD_KEYS! + AC_EGREP_CPP(ACE_TSS_EMULATION, + [ +#if defined (ACE_HAS_TSS_EMULATION) + ACE_TSS_EMULATION +#endif + ], AC_DEFINE(ACE_DEFAULT_THREAD_KEYS, 16),) + AC_DEFINE(ACE_THR_PRI_FIFO_DEF, 101) + AC_DEFINE(ACE_USE_RCSID, 0) + ;; + *cygwin32*) + ;; + *win32*) + AC_DEFINE(ACE_WIN32) + AC_DEFINE(ACE_UINT64_FORMAT_SPECIFIER, "%I64u") +dnl AC_DEFINE(ACE_USE_SELECT_REACTOR_FOR_REACTOR_IMPL) + if test "$ace_u_long_long_typedef_set" != yes; then + ACE_UINT64="unsigned __int64" + ace_u_long_long_typedef_set=yes + fi dnl "$ace_u_long_long_typedef_set" != yes + ;; + *) + ;; +esac + +dnl Make final substitutions and defines +if test "$ace_u_long_long_typedef_set" = yes; then + AC_DEFINE_UNQUOTED(ACE_UINT64_TYPEDEF, $ACE_UINT64) +fi + +dnl Additional flags to set by the configure script + +if test -n "$GXX"; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -Wall -Wpointer-arith" + if test "$ace_user_enable_repo" = no; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -fno-implicit-templates" + fi +fi + +if test -n "$GCC"; then + ACE_CFLAGS="$ACE_CFLAGS -Wall -Wpointer-arith" +fi + +dnl Combine package set flags with user's flags. +dnl User's flags go after package flags to allow user to override +dnl package defaults. +dnl X_CFLAGS comes from AC_PATH_XTRA. It may include, for example, +dnl additional include file paths or macros that need to be defined +dnl in order for X11 related files to be compiled properly. +if test "$ace_user_enable_optimize"; then + dnl We want OCXXFLAGS to be on the end, so we use CXXFLAGS, + dnl not ACE_CXXFLAGS! + CXXFLAGS="$CXXFLAGS $OCXXFLAGS" + CFLAGS="$CFLAGS $OCFLAGS" +fi +CXXFLAGS="$ACE_CXXFLAGS $X_CFLAGS $CXXFLAGS" +CXXCPPFLAGS="$ACE_CXXCPPFLAGS $CXXCPPFLAGS" +CFLAGS="$ACE_CFLAGS $X_CFLAGS $CFLAGS" +CPPFLAGS="$ACE_CPPFLAGS $CPPFLAGS" +LDFLAGS="$ACE_LDFLAGS $LDFLAGS" + +dnl These tests should be performed _after_ the bulk of the ACE macros +dnl have been defined. + +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 + dnl with Autocnf's confdefs.h + ACE_USE_TEMP_FILE(ace/config.h, + [ + dnl Now run the compilation test + ACE_TRY_COMPILE([-I. -I${srcdir}], + [ +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#include "ace/IOStream.cpp" + ], + [ + int a=0; a += 1; + ], + [ + ace_cv_feature_ace_iostream=yes + ], + [ + ace_cv_feature_ace_iostream=no + ]) + ]) + ], , AC_DEFINE(ACE_LACKS_ACE_IOSTREAM)) + +dnl Check if ACE needs minimum iostream header inclusion +ACE_CACHE_CHECK(if ACE needs minimum iostream header inclusion, + ace_cv_lib_minimum_iostream, + [ + dnl We want an empty ace/config.h to prevent multiple defines + dnl with Autoconf's confdefs.h + ACE_USE_TEMP_FILE(ace/config.h, + [ + dnl Now run the compilation test + ACE_TRY_COMPILE([-I. -I${srcdir}], + [ +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#include "ace/OS.cpp" + ], + [ + int a=0; a += 1; + ], + [ + ace_cv_lib_minimum_iostream=no + ], + [ + dnl Now check if ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION makes + dnl compilation work! + ACE_TRY_COMPILE([-I. -I${srcdir}], + [ +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#define ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION +#include "ace/OS.cpp" + ], + [ + int a=0; a += 1; + ], + [ + ace_cv_lib_minimum_iostream=yes + ], + [ + dnl If we get here, then we have no idea what is wrong! + ace_cv_lib_minimum_iostream=no + ]) + ]) + ]) + ], AC_DEFINE(ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION),) + +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, + [ + dnl We want an empty ace/config.h to prevent multiple defines + dnl with Autoconf's confdefs.h + ACE_USE_TEMP_FILE(ace/config.h, + [ + dnl Now run the compilation test + ACE_TRY_COMPILE([-I. -I${srcdir}], + [ +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#include "ace/Addr.cpp" + ], + [ + int a=0; a += 1; + ], + [ + ace_cv_lib_sap_any_support=yes + ], + [ + dnl Now check if ACE_HAS_BROKEN_SAP_ANY makes + dnl compilation work! + ACE_TRY_COMPILE([-I. -I${srcdir}], + [ +#if defined(ACE_UINT64_TYPEDEF) + typedef ACE_UINT64_TYPEDEF ACE_UINT64; +#endif /* ACE_UINT64_TYPEDEF */ + +#define ACE_HAS_BROKEN_SAP_ANY +#include "ace/Addr.cpp" + ], + [ + int a=0; a += 1; + ], + [ + ace_cv_lib_sap_any_support=no + ], + [ + dnl If we get here, then we have no idea what is wrong! + ace_cv_lib_sap_any_support=yes + ]) + ]) + ]) + ],, AC_DEFINE(ACE_HAS_BROKEN_SAP_ANY)) + +dnl End ACE macro tests! + +dnl Substitute whatever X libraries ACE needs, if any. +AC_SUBST(ACE_XLIBS) + +dnl Prepend purify and quantify command lines if purify and quantify are +dnl enabled. Otherwise, PURELINK and PRELINK will just be "blank." +LD="$PURELINK $PRELINK $LD" +dnl LDFLAGS="$ACE_LDFLAGS $LDFLAGS" + +dnl AC_SUBST(LDFLAGS) +dnl AC_SUBST(LIBOBJS) + +dnl These definitions are expanded in the makefile and ace-config +if test "$no_x" != yes; then + ACE_LIBDIR="${X_LIBS} -L\${libdir}" +else + ACE_LIBDIR='-L${libdir}' +fi +ACE_LIBS="${X_PRE_LIBS} ${ACE_XLIBS} ${X_EXTRA_LIBS} ${LIBS}" +ACE_INCLUDEDIR='-I${includedir}' + +AC_SUBST(ACE_LIBDIR) +AC_SUBST(ACE_LIBS) +AC_SUBST(ACE_INCLUDEDIR) + +dnl Force CXXFLAGS to be substituted in Makefiles that don't "need" them. +AC_SUBST(CXXFLAGS) + +dnl +dnl SECTION 16: `AC_OUTPUT([FILE...])' +dnl +dnl +dnl We can finally create all the files listed here; Makefile is +dnl created from Makefile.in, etc. Top-level Makefiles should be +dnl created first. +AC_OUTPUT([ +dnl Makefile +dnl NEWS + ace-config + ace-diff-config +dnl ace/Makefile +dnl apps/Makefile +dnl apps/gperf/Makefile +dnl apps/gperf/src/Makefile +dnl man/Makefile +dnl man/man3/Makefile +dnl netsvcs/Makefile +dnl netsvcs/clients/Makefile +dnl netsvcs/clients/Logger/Makefile +dnl netsvcs/clients/Naming/Makefile +dnl netsvcs/clients/Naming/Client/Makefile +dnl netsvcs/clients/Naming/Dump_Restore/Makefile +dnl netsvcs/clients/Tokens/Makefile +dnl netsvcs/clients/Tokens/collection/Makefile +dnl netsvcs/clients/Tokens/deadlock/Makefile +dnl netsvcs/clients/Tokens/invariant/Makefile +dnl netsvcs/clients/Tokens/manual/Makefile +dnl netsvcs/clients/Tokens/mutex/Makefile +dnl netsvcs/clients/Tokens/rw_lock/Makefile +dnl netsvcs/lib/Makefile +dnl netsvcs/servers/Makefile +dnl tests/Makefile +dnl tests/log/Makefile + ]) + +dnl Make sure ace-diff-config is executable +dnl chmod 755 ace-diff-config + +echo "" +echo "Configuration of ACE is now complete." +echo "" diff --git a/install-sh b/install-sh new file mode 100755 index 00000000000..e9de23842dc --- /dev/null +++ b/install-sh @@ -0,0 +1,251 @@ +#!/bin/sh +# +# install - install a program, script, or datafile +# This comes from X11R5 (mit/util/scripts/install.sh). +# +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd="$cpprog" + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd="$stripprog" + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "install: no input file specified" + exit 1 +else + true +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d $dst ]; then + instcmd=: + chmodcmd="" + else + instcmd=mkdir + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f $src -o -d $src ] + then + true + else + echo "install: $src does not exist" + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "install: no destination specified" + exit 1 + else + true + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d $dst ] + then + dst="$dst"/`basename $src` + else + true + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' +' +IFS="${IFS-${defaultIFS}}" + +oIFS="${IFS}" +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS="${oIFS}" + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp="${pathcomp}${1}" + shift + + if [ ! -d "${pathcomp}" ] ; + then + $mkdirprog "${pathcomp}" + else + true + fi + + pathcomp="${pathcomp}/" +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd $dst && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename $dst` + else + dstfile=`basename $dst $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename $dst` + else + true + fi + +# Make a temp file name in the proper directory. + + dsttmp=$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + + $doit $instcmd $src $dsttmp && + + trap "rm -f ${dsttmp}" 0 && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && + +# Now rename the file to the real destination. + + $doit $rmcmd -f $dstdir/$dstfile && + $doit $mvcmd $dsttmp $dstdir/$dstfile + +fi && + + +exit 0 diff --git a/libtool b/libtool new file mode 100755 index 00000000000..bf9429554f7 --- /dev/null +++ b/libtool @@ -0,0 +1,3694 @@ +#! /bin/sh + +# libtool - Provide generalized library-building support services. +# Generated automatically by ltconfig (GNU libtool 1.2e (1.259 1999/02/04 15:09:03)) +# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh. +# +# Copyright (C) 1996-1999 Free Software Foundation, Inc. +# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="sed -e s/^X//" + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi + +### BEGIN LIBTOOL CONFIG +# Libtool was configured as follows, on host bambuca: +# +# CC="c++" CFLAGS="-g -O2" CPPFLAGS="" \ +# LD="/usr/bin/ld" NM="/usr/bin/nm -B" RANLIB="ranlib" LN_S="ln -s" \ +# DLLTOOL="""" AS="""" \ +# ./ltconfig --disable-static --with-gcc --with-gnu-ld --no-verify ./ltmain.sh i686-pc-linux-gnu +# +# Compiler and other test output produced by ltconfig, useful for +# debugging ltconfig, is in ./config.log if it exists. + +# The version of ltconfig that generated this script. +LTCONFIG_VERSION="1.2e" + +# Shell to use when invoking shell scripts. +SHELL="/bin/sh" + +# Whether or not to build shared libraries. +build_libtool_libs=yes + +# Whether or not to build static libraries. +build_old_libs=no + +# The host system. +host_alias=i686-pc-linux-gnu +host=i686-pc-linux-gnu + +# An echo program that does not interpret backslashes. +echo="echo" + +# The archiver. +AR="ar" + +# The default C compiler. +CC="c++" + +# The linker used to build libraries. +LD="/usr/bin/ld" + +# Whether we need hard or soft links. +LN_S="ln -s" + +# A BSD-compatible nm program. +NM="/usr/bin/nm -B" + +# Used on cygwin: DLL creation program. +DLLTOOL="dlltool" + +# Used on cygwin: assembler. +AS="as" + +# The name of the directory that contains temporary libtool files. +objdir=.libs + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Object file suffix (normally "o"). +objext="o" + +# Old archive suffix (normally "a"). +libext="a" + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC" + +# Does compiler simultaneously support -c and -o options +compiler_c_o="yes" + +# Can we write directly to a .lo ? +compiler_o_lo="yes" + +# Must we lock files when doing compilation ? +need_locks="no" + +# Do we need the lib prefix for modules? +need_lib_prefix=no + +# Do we need a version for libraries? +need_version=no + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Compiler flag to turn off builtin functions. +no_builtin_flag=" -fno-builtin -fno-rtti -fno-exceptions" + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec="" + +# Library versioning type. +version_type=linux + +# Format of library name prefix. +libname_spec="lib\$name" + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec="\${libname}\${release}.so\$versuffix \${libname}\${release}.so\$major \$libname.so" + +# The coded name of the library, if different from the real name. +soname_spec="\${libname}\${release}.so\$major" + +# Commands used to build and install an old-style archive. +RANLIB="ranlib" +old_archive_cmds="\$AR cru \$oldlib\$oldobjs~\$RANLIB \$oldlib" +old_postinstall_cmds="\$RANLIB \$oldlib~chmod 644 \$oldlib" +old_postuninstall_cmds="" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Commands used to build and install a shared archive. +archive_cmds="\$CC -shared \${wl}-soname \$wl\$soname -o \$lib \$libobjs \$deplibs \$linkopts" +archive_sym_cmds="\$CC -shared \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib \$libobjs \$deplibs \$linkopts" +postinstall_cmds="" +postuninstall_cmds="" + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )" + +# Command to use when deplibs_check_method == file_magic +file_magic_command="file" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that forces no undefined symbols. +no_undefined_flag="" + +# Commands used to finish a libtool library installation in a directory. +finish_cmds="PATH=\\\"\$PATH:/sbin\\\" ldconfig -n \$libdir" + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval="" + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe="sed -n -e 's/^.*[ ][ABCDGISTW][ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\1/p'" + +# This is the shared library runtime path variable. +runpath_var=LD_RUN_PATH + +# This is the shared library path variable. +shlibpath_var=LD_LIBRARY_PATH + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist. +hardcode_libdir_flag_spec="\${wl}--rpath \${wl}\$libdir" + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator="" + +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=no + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=no + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=unsupported + +# System search path for libraries +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" + +# Fix the shell variable $srcfile for the compiler. +fix_srcfile_path="" +### END LIBTOOL CONFIG + +# ltmain.sh - Provide generalized library-building support services. +# NOTE: Changing this file will not affect anything until you rerun ltconfig. +# +# Copyright (C) 1996-1999 Free Software Foundation, Inc. +# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Check that we have a working $echo. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat <<EOF +$* +EOF + exit 0 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then + # Yippee, $echo works! + : +else + # Restart under the correct shell, and then maybe $echo will work. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +# The name of this program. +progname=`$echo "$0" | sed 's%^.*/%%'` +modename="$progname" + +# Constants. +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=1.2e +TIMESTAMP=" (1.259 1999/02/04 15:09:03)" + +default_mode= +help="Try \`$progname --help' for more information." +magic="%%%MAGIC variable%%%" +mkdir="mkdir" +mv="mv -f" +rm="rm -f" + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' +SP2NL='tr \040 \012' +NL2SP='tr \012 \040' + +# NLS nuisances. +# Only set LANG and LC_ALL to C if already set. +# These must not be set unconditionally because not all systems understand +# e.g. LANG=C (notably SCO). +# We save the old values to restore during execute mode. +if test "${LC_ALL+set}" = set; then + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL +fi +if test "${LANG+set}" = set; then + save_LANG="$LANG"; LANG=C; export LANG +fi + +if test "$LTCONFIG_VERSION" != "$VERSION"; then + echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit 1 +fi + +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + echo "$modename: not configured to build any kind of library" 1>&2 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit 1 +fi + +# Global variables. +mode=$default_mode +nonopt= +prev= +prevopt= +run= +show="$echo" +show_help= +execute_dlfiles= +lo2o="s/\\.lo\$/.${objext}/" + +# Parse our command line options once, thoroughly. +while test $# -gt 0 +do + arg="$1" + shift + + case "$arg" in + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; + *) optarg= ;; + esac + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case "$prev" in + execute_dlfiles) + eval "$prev=\"\$$prev \$arg\"" + ;; + *) + eval "$prev=\$arg" + ;; + esac + + prev= + prevopt= + continue + fi + + # Have we seen a non-optional argument yet? + case "$arg" in + --help) + show_help=yes + ;; + + --version) + echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" + exit 0 + ;; + + --config) + sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0 + exit 0 + ;; + + --debug) + echo "$progname: enabling shell trace mode" + set -x + ;; + + --dry-run | -n) + run=: + ;; + + --features) + echo "host: $host" + if test "$build_libtool_libs" = yes; then + echo "enable shared libraries" + else + echo "disable shared libraries" + fi + if test "$build_old_libs" = yes; then + echo "enable static libraries" + else + echo "disable static libraries" + fi + exit 0 + ;; + + --finish) mode="finish" ;; + + --mode) prevopt="--mode" prev=mode ;; + --mode=*) mode="$optarg" ;; + + --quiet | --silent) + show=: + ;; + + -dlopen) + prevopt="-dlopen" + prev=execute_dlfiles + ;; + + -*) + $echo "$modename: unrecognized option \`$arg'" 1>&2 + $echo "$help" 1>&2 + exit 1 + ;; + + *) + nonopt="$arg" + break + ;; + esac +done + +if test -n "$prevopt"; then + $echo "$modename: option \`$prevopt' requires an argument" 1>&2 + $echo "$help" 1>&2 + exit 1 +fi + +if test -z "$show_help"; then + + # Infer the operation mode. + if test -z "$mode"; then + case "$nonopt" in + *cc | *++ | gcc* | *-gcc*) + mode=link + for arg + do + case "$arg" in + -c) + mode=compile + break + ;; + esac + done + ;; + *db | *dbx | *strace | *truss) + mode=execute + ;; + *install*|cp|mv) + mode=install + ;; + *rm) + mode=uninstall + ;; + *) + # If we have no mode, but dlfiles were specified, then do execute mode. + test -n "$execute_dlfiles" && mode=execute + + # Just use the default operation mode. + if test -z "$mode"; then + if test -n "$nonopt"; then + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 + else + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 + fi + fi + ;; + esac + fi + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$execute_dlfiles" && test "$mode" != execute; then + $echo "$modename: unrecognized option \`-dlopen'" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$modename --help --mode=$mode' for more information." + + # These modes are in order of execution frequency so that they run quickly. + case "$mode" in + # libtool compile mode + compile) + modename="$modename: compile" + # Get the compilation command and the source file. + base_compile= + lastarg= + srcfile="$nonopt" + suppress_output= + + user_target=no + for arg + do + # Accept any command-line options. + case "$arg" in + -o) + if test "$user_target" != "no"; then + $echo "$modename: you cannot specify \`-o' more than once" 1>&2 + exit 1 + fi + user_target=next + ;; + + -static) + build_old_libs=yes + continue + ;; + esac + + case "$user_target" in + next) + # The next one is the -o target name + user_target=yes + continue + ;; + yes) + # We got the output file + user_target=set + libobj="$arg" + continue + ;; + esac + + # Accept the current argument as the source file. + lastarg="$srcfile" + srcfile="$arg" + + # Aesthetically quote the previous argument. + + # Backslashify any backslashes, double quotes, and dollar signs. + # These are the only characters that are still specially + # interpreted inside of double-quoted scrings. + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` + + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly in scan + # sets, so we specify it separately. + case "$lastarg" in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + lastarg="\"$lastarg\"" + ;; + esac + + # Add the previous argument to base_compile. + if test -z "$base_compile"; then + base_compile="$lastarg" + else + base_compile="$base_compile $lastarg" + fi + done + + case "$user_target" in + set) + ;; + no) + # Get the name of the library object. + libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` + ;; + *) + $echo "$modename: you must specify a target with \`-o'" 1>&2 + exit 1 + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + xform='[cCFSfmso]' + case "$libobj" in + *.ada) xform=ada ;; + *.adb) xform=adb ;; + *.ads) xform=ads ;; + *.asm) xform=asm ;; + *.c++) xform=c++ ;; + *.cc) xform=cc ;; + *.cpp) xform=cpp ;; + *.cxx) xform=cxx ;; + *.f90) xform=f90 ;; + *.for) xform=for ;; + esac + + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` + + case "$libobj" in + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; + *) + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 + exit 1 + ;; + esac + + if test -z "$base_compile"; then + $echo "$modename: you must specify a compilation command" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $libobj" + else + removelist="$libobj" + fi + + $run $rm $removelist + trap "$run $rm $removelist; exit 1" 1 2 15 + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext} + lockfile="$output_obj.lock" + removelist="$removelist $output_obj $lockfile" + trap "$run $rm $removelist; exit 1" 1 2 15 + else + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until ln "$0" "$lockfile" 2>/dev/null; do + $show "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + echo "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit 1 + fi + echo $srcfile > "$lockfile" + fi + + if test -n "$fix_srcfile_path"; then + eval srcfile=\"$fix_srcfile_path\" + fi + + # Only build a PIC object if we are building libtool libraries. + if test "$build_libtool_libs" = yes; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + # All platforms use -DPIC, to notify preprocessed assembler code. + command="$base_compile $pic_flag -DPIC $srcfile" + if test "$build_old_libs" = yes; then + lo_libobj="$libobj" + dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'` + if test "X$dir" = "X$libobj"; then + dir="$objdir" + else + dir="$dir/$objdir" + fi + libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'` + + if test -d "$dir"; then + $show "$rm $libobj" + $run $rm $libobj + else + $show "$mkdir $dir" + $run $mkdir $dir + status=$? + if test $status -ne 0 && test ! -d $dir; then + exit $status + fi + fi + fi + if test "$compiler_o_lo" = yes; then + output_obj="$libobj" + command="$command -o $output_obj" + elif test "$compiler_c_o" = yes; then + output_obj="$obj" + command="$command -o $output_obj" + fi + + $show "$command" + if $run eval "$command"; then : + else + test -n "$output_obj" && $run $rm $removelist + exit 1 + fi + + if test "$need_locks" = warn && + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then + echo "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit 1 + fi + + # Just move the object if needed, then go on to compile the next one + if test x"$output_obj" != x"$libobj"; then + $show "$mv $output_obj $libobj" + if $run $mv $output_obj $libobj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + fi + + # If we have no pic_flag, then copy the object into place and finish. + if test -z "$pic_flag" && test "$build_old_libs" = yes; then + # Rename the .lo from within objdir to obj + if test -f $obj; then + $show $rm $obj + $run $rm $obj + fi + + $show "$mv $libobj $obj" + if $run $mv $libobj $obj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + + # Now arrange that obj and lo_libobj become the same file + $show "$LN_S $obj $lo_libobj" + if $run $LN_S $obj $lo_libobj; then + exit 0 + else + error=$? + $run $rm $removelist + exit $error + fi + fi + + # Allow error messages only from the first compilation. + suppress_output=' >/dev/null 2>&1' + fi + + # Only build a position-dependent object if we build old libraries. + if test "$build_old_libs" = yes; then + command="$base_compile $srcfile" + if test "$compiler_c_o" = yes; then + command="$command -o $obj" + output_obj="$obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + command="$command$suppress_output" + $show "$command" + if $run eval "$command"; then : + else + $run $rm $removelist + exit 1 + fi + + if test "$need_locks" = warn && + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then + echo "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $run $rm $removelist + exit 1 + fi + + # Just move the object if needed + if test x"$output_obj" != x"$obj"; then + $show "$mv $output_obj $obj" + if $run $mv $output_obj $obj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + fi + + # Create an invalid libtool object if no PIC, so that we do not + # accidentally link it into a program. + if test "$build_libtool_libs" != yes; then + $show "echo timestamp > $libobj" + $run eval "echo timestamp > \$libobj" || exit $? + else + # Move the .lo from within objdir + $show "$mv $libobj $lo_libobj" + if $run $mv $libobj $lo_libobj; then : + else + error=$? + $run $rm $removelist + exit $error + fi + fi + fi + + # Unlock the critical section if it was locked + if test "$need_locks" != no; then + $rm "$lockfile" + fi + + exit 0 + ;; + + # libtool link mode + link) + modename="$modename: link" + C_compiler="$CC" # save it, to compile generated C sources + CC="$nonopt" + case "$host" in + *-*-cygwin* | *-*-mingw* | *-*-os2*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invokation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + + # This is a source program that is used to create dlls on Windows + # Don't remove nor modify the starting and closing comments +# /* ltdll.c starts here */ +# #define WIN32_LEAN_AND_MEAN +# #include <windows.h> +# #undef WIN32_LEAN_AND_MEAN +# #include <stdio.h> +# +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); +# +# #include <cygwin/cygwin_dll.h> +# DECLARE_CYGWIN_DLL( DllMain ); +# HINSTANCE __hDllInstance_base; +# +# BOOL APIENTRY +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) +# { +# __hDllInstance_base = hInst; +# return TRUE; +# } +# /* ltdll.c ends here */ + ;; + *) + allow_undefined=yes + ;; + esac + compile_command="$CC" + finalize_command="$CC" + + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + linkopts= + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + libsearch_path= + fi + # now prepend the system-specific ones + eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\" + + avoid_version=no + dlfiles= + dlprefiles= + export_dynamic=no + export_symbols= + gen + hardcode_libdirs= + finalize_hardcode_libdirs= + libobjs= + link_against_libtool_libs= + ltlibs= + module=no + objs= + preload=no + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + finalize_rpath= + thread_safe=no + vinfo= + + # We need to know -static, to get the right output filenames. + for arg + do + case "$arg" in + -all-static | -static) + if test "X$arg" = "X-all-static" && test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 + fi + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test $# -gt 0; do + arg="$1" + shift + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case "$prev" in + output) + compile_command="$compile_command @OUTPUT@" + finalize_command="$finalize_command @OUTPUT@" + ;; + esac + + case "$prev" in + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + compile_command="$compile_command @SYMFILE@" + finalize_command="$finalize_command @SYMFILE@" + preload=yes + fi + case "$arg" in + *.la | *.lo) ;; # We handle these cases below. + *) + dlprefiles="$dlprefiles $arg" + test "$prev" = dlfiles && dlfiles="$dlfiles $arg" + prev= + ;; + esac + ;; + exportsyms) + export_symbols="$arg" + if test ! -f "$arg"; then + $echo "$modename: symbol file \`$arg' does not exist" + exit 1 + fi + prev= + ;; + release) + release="-$arg" + prev= + continue + ;; + rpath) + rpath="$rpath $arg" + prev= + continue + ;; + xrpath) + xrpath="$xrpath $arg" + prev= + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi + + prevarg="$arg" + + case "$arg" in + -all-static) + if test -n "$link_static_flag"; then + compile_command="$compile_command $link_static_flag" + finalize_command="$finalize_command $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 + continue + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + if test "$export_dynamic" != yes; then + export_dynamic=yes + if test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + else + arg= + fi + if test "$preload" = no; then + # Add the symbol object into the linking commands. + compile_command="$compile_command @SYMFILE@" + finalize_command="$finalize_command @SYMFILE@" + preload=yes + fi + fi + ;; + + -export-symbols) + if test -n "$export_symbols"; then + $echo "$modename: cannot have more than one -exported-symbols" + exit 1 + fi + prev=exportsyms + continue + ;; + + -L*) + dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'` + case "$dir" in + /* | [A-Za-z]:[/\\]*) + # Add the corresponding hardcode_libdir_flag, if it is not identical. + ;; + *) + $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2 + exit 1 + ;; + esac + deplibs="$deplibs $arg" + lib_search_path="$lib_search_path `expr $arg : '-L\(.*\)'`" + case "$host" in + *-*-cygwin* | *-*-mingw* | *-*-os2*) + dllsearchdir="`expr $arg : '-L\(.*\)'`" + dllsearchdir=`cd "$dllsearchdir" && pwd || echo "$dllsearchdir"` + if test -n "$dllsearchpath"; then + dllsearchpath="$dllsearchpath:$dllsearchdir" + else + dllsearchpath="$dllsearchdir" + fi + ;; + esac + ;; + + -l*) + deplibs="$deplibs $arg" + ;; + + -module) + if test "$module" != yes; then + module=yes + if test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + else + arg= + fi + fi + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -o) prev=output ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + xrpath="$xrpath "`echo "X$arg" | $Xsed -e 's/^-R//'` + continue + ;; + + -static) + # If we have no pic_flag, then this is the same as -all-static. + if test -z "$pic_flag" && test -n "$link_static_flag"; then + compile_command="$compile_command $link_static_flag" + finalize_command="$finalize_command $link_static_flag" + fi + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + # Some other compiler flag. + -* | +*) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case "$arg" in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + arg="\"$arg\"" + ;; + esac + ;; + + *.o | *.obj | *.a | *.lib) + # A standard object. + objs="$objs $arg" + ;; + + *.lo) + # A library object. + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + if test "$build_libtool_libs" = yes; then + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"` + prev= + fi + libobjs="$libobjs $arg" + ;; + + *.la) + # A libtool-controlled library. + + dlname= + libdir= + library_names= + old_library= + + # Check to see that this really is a libtool archive. + if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2 + exit 1 + fi + + # If the library was installed with an old release of libtool, + # it will not redefine variable installed. + installed=yes + + # If there is no directory component, then add one. + case "$arg" in + */* | *\\*) . $arg ;; + *) . ./$arg ;; + esac + + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + + if test -z "$linklib"; then + $echo "$modename: cannot find name of link library for \`$arg'" 1>&2 + exit 1 + fi + + # Find the relevant object directory and library name. + name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'` + + if test "X$installed" = Xyes; then + dir="$libdir" + else + dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$dir" = "X$arg"; then + dir="$objdir" + else + dir="$dir/$objdir" + fi + fi + + if test -n "$dependency_libs"; then + # Extract -R from dependency_libs + temp_deplibs= + for deplib in $dependency_libs; do + case "$deplib" in + -R*) xrpath="$xrpath "`echo "X$deplib" | $Xsed -e 's/^-R//'`;; + *) temp_deplibs="$temp_deplibs $deplib";; + esac + done + dependency_libs="$temp_deplibs" + fi + + if test -z "$libdir"; then + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $dir/$old_library" + old_convenience="$old_convenience $dir/$old_library" + deplibs="$deplibs$dependency_libs" + compile_command="$compile_command $dir/$old_library$dependency_libs" + finalize_command="$finalize_command $dir/$old_library$dependency_libs" + continue + fi + + # This library was specified with -dlopen. + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + if test -z "$dlname" || test "$build_libtool_libs" = no; then + # If there is no dlname or we're linking statically, + # we need to preload. + prev=dlprefiles + else + # We should not create a dependency on this library, but we + # may need any libraries it requires. + compile_command="$compile_command$dependency_libs" + finalize_command="$finalize_command$dependency_libs" + prev= + continue + fi + fi + + # The library was specified with -dlpreopen. + if test "$prev" = dlprefiles; then + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + dlprefiles="$dlprefiles $dir/$old_library" + else + dlprefiles="$dlprefiles $dir/$linklib" + fi + prev= + fi + + if test "$build_libtool_libs" = yes && test -n "$library_names"; then + link_against_libtool_libs="$link_against_libtool_libs $arg" + if test -n "$shlibpath_var"; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath " in + *" $dir "*) ;; + *) temp_rpath="$temp_rpath $dir" ;; + esac + fi + + # This is the magic to use -rpath. + if test -n "$hardcode_libdir_flag_spec"; then + saved_libdir="$libdir" + libdir="$dir" + + # We need an absolute path. + case "$libdir" in + /* | [A-Za-z]:[/\\]*) ;; + *) + absdir=`cd "$libdir" && pwd` + if test -z "$absdir"; then + $echo "$modename: cannot determine absolute directory name of \`$libdir'" 1>&2 + else + libdir="$absdir" + fi + ;; + esac + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + # Put the magic libdir with the hardcode flag. + hardcode_libdirs="$libdir" + libdir="@HARDCODE_LIBDIRS@" + else + # Just accumulate the unique libdirs. + case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + libdir= + fi + fi + + if test -n "$libdir"; then + eval flag=\"$hardcode_libdir_flag_spec\" + + compile_command="$compile_command $flag" + fi + + libdir="$saved_libdir" + if test -n "$hardcode_libdir_separator"; then + if test -z "$finalize_hardcode_libdirs"; then + # Put the magic libdir with the hardcode flag. + finalize_hardcode_libdirs="$libdir" + libdir="@HARDCODE_LIBDIRS@" + else + # Just accumulate the unique libdirs. + case "$hardcode_libdir_separator$finalize_hardcode_libdirs$hardcode_libdir_separator" in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + finalize_hardcode_libdirs="$finalize_hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + libdir= + fi + fi + + if test -n "$libdir"; then + eval flag=\"$hardcode_libdir_flag_spec\" + + finalize_command="$finalize_command $flag" + fi + # libdir is also use after "$hardcode_action" case + libdir="$saved_libdir" + elif test -n "$runpath_var"; then + # Do the same for the permanent run path. + case "$dir" in + /* | [A-Za-z]:[/\\]*) absdir="$dir";; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 + absdir="$dir" + fi + ;; + esac + case "$perm_rpath " in + *" $absdir "*) ;; + *) perm_rpath="$perm_rpath $absdir" ;; + esac + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac + fi + + + lib_linked=yes + case "$hardcode_action" in + immediate | unsupported) + if test "$hardcode_direct" = no; then + compile_command="$compile_command $dir/$linklib" + deplibs="$deplibs $dir/$linklib" + case "$host" in + *-*-cygwin* | *-*-mingw* | *-*-os2*) + dllsearchdir=`cd "$dir" && pwd || echo "$dir"` + if test -n "$dllsearchpath"; then + dllsearchpath="$dllsearchpath:$dllsearchdir" + else + dllsearchpath="$dllsearchdir" + fi + ;; + esac + elif test "$hardcode_minus_L" = no; then + case "$host" in + *-*-sunos*) + compile_shlibpath="$compile_shlibpath$dir:" + ;; + esac + compile_command="$compile_command -L$dir -l$name" + deplibs="$deplibs -L$dir -l$name" + elif test "$hardcode_shlibpath_var" = no; then + compile_shlibpath="$compile_shlibpath$dir:" + compile_command="$compile_command -l$name" + deplibs="$deplibs -l$name" + else + lib_linked=no + fi + ;; + + relink) + # We need an absolute path. + case "$dir" in + /* | [A-Za-z]:[/\\]*) ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 + exit 1 + fi + dir="$absdir" + ;; + esac + + if test "$hardcode_direct" = yes; then + compile_command="$compile_command $dir/$linklib" + deplibs="$deplibs $dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + compile_command="$compile_command -L$dir -l$name" + deplibs="$deplibs -L$dir -l$name" + elif test "$hardcode_shlibpath_var" = yes; then + compile_shlibpath="$compile_shlibpath$dir:" + compile_command="$compile_command -l$name" + deplibs="$deplibs -l$name" + else + lib_linked=no + fi + ;; + + *) + lib_linked=no + ;; + esac + + if test "$lib_linked" != yes; then + $echo "$modename: configuration error: unsupported hardcode properties" + exit 1 + fi + + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes; then + finalize_command="$finalize_command $libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + finalize_command="$finalize_command -L$libdir -l$name" + elif test "$hardcode_shlibpath_var" = yes; then + finalize_shlibpath="$finalize_shlibpath$libdir:" + finalize_command="$finalize_command -l$name" + else + # We cannot seem to hardcode it, guess we'll fake it. + finalize_command="$finalize_command -L$libdir -l$name" + fi + else + # Transform directly to old archives if we don't build new libraries. + if test -n "$pic_flag" && test -z "$old_library"; then + $echo "$modename: cannot find static library for \`$arg'" 1>&2 + exit 1 + fi + + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_command="$compile_command $dir/$linklib" + finalize_command="$finalize_command $dir/$linklib" + else + compile_command="$compile_command -L$dir -l$name" + finalize_command="$finalize_command -L$dir -l$name" + fi + fi + + # Add in any libraries that this one depends upon. + compile_command="$compile_command$dependency_libs" + finalize_command="$finalize_command$dependency_libs" + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case "$arg" in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + arg="\"$arg\"" + ;; + esac + ;; + esac + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + fi + done + + if test -n "$prev"; then + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + if test -n "$export_symbols" && test "$module" = yes; then + $echo "$modename: \`-export-symbols' is not supported for modules" + exit 1 + fi + + oldlibs= + # calculate the name of the file, without its directory + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` + libobjs_save="$libobjs" + + case "$output" in + "") + $echo "$modename: you must specify an output file" 1>&2 + $echo "$help" 1>&2 + exit 1 + ;; + + *.a | *.lib) + if test -n "$link_against_libtool_libs"; then + $echo "$modename: error: cannot link libtool libraries into archives" 1>&2 + exit 1 + fi + + if test -n "$deplibs"; then + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 + fi + + if test -n "$dlfiles$dlprefiles"; then + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 + fi + + if test -n "$rpath"; then + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 + fi + + if test -n "$xrpath"; then + $echo "$modename: warning: + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 + fi + + if test -n "$export_symbols"; then + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 + fi + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + ;; + + *.la) + # Make sure we only generate libraries of the form `libNAME.la'. + case "$outputname" in + lib*) + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + eval libname=\"$libname_spec\" + ;; + *) + if test "$module" = no; then + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` + eval libname=\"$libname_spec\" + else + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` + fi + ;; + esac + + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` + if test "X$output_objdir" = "X$output"; then + output_objdir="$objdir" + else + output_objdir="$output_objdir/$objdir" + fi + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + if test -n "$objs"; then + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1 + exit 1 + fi + + # How the heck are we supposed to write a wrapper for a shared library? + if test -n "$link_against_libtool_libs"; then + $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2 + exit 1 + fi + + if test -n "$dlfiles$dlprefiles"; then + $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2 + fi + + set dummy $rpath + if test $# -gt 2; then + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 + fi + install_libdir="$2" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + libext=al + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + dependency_libs="$deplibs" + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 + fi + else + + # Parse the version information argument. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + IFS="$save_ifs" + + if test -n "$8"; then + $echo "$modename: too many parameters to \`-version-info'" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + current="$2" + revision="$3" + age="$4" + + # Check that each of the things are valid numbers. + case "$current" in + 0 | [1-9] | [1-9][0-9]*) ;; + *) + $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit 1 + ;; + esac + + case "$revision" in + 0 | [1-9] | [1-9][0-9]*) ;; + *) + $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit 1 + ;; + esac + + case "$age" in + 0 | [1-9] | [1-9][0-9]*) ;; + *) + $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit 1 + ;; + esac + + if test $age -gt $current; then + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 + exit 1 + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case "$version_type" in + none) ;; + + linux) + major=.`expr $current - $age` + versuffix="$major.$age.$revision" + ;; + + osf) + major=`expr $current - $age` + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test $loop != 0; do + iface=`expr $current - $loop` + loop=`expr $loop - 1` + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring="$verstring:${current}.0" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current"; + ;; + + windows) + # Like Linux, but with '-' rather than '.', since we only + # want one extension on Windows 95. + major=`expr $current - $age` + versuffix="-$major-$age-$revision" + ;; + + *) + $echo "$modename: unknown library version type \`$version_type'" 1>&2 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit 1 + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + verstring="0.0" + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + + dependency_libs="$deplibs" + case "$host" in + *-*-cygwin* | *-*-mingw* | *-*-os2*) + # these systems don't actually have a c library (as such)! + ;; + *) + # Add libc to deplibs on all other systems. + deplibs="$deplibs -lc" + ;; + esac + fi + + # Create the output directory, or remove our outputs if we need to. + if test -d $output_objdir; then + $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*" + $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.* + else + $show "$mkdir $output_objdir" + $run $mkdir $output_objdir + status=$? + if test $status -ne 0 && test ! -d $output_objdir; then + exit $status + fi + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs="$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + fi + + if test "$build_libtool_libs" = yes; then + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case "$deplibs_check_method" in + pass_all) + newdeplibs=$deplibs + ;; # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behaviour. + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $rm conftest.c + cat > conftest.c <<EOF + int main() { return 0; } +EOF + $rm conftest + $C_compiler -o conftest conftest.c $deplibs + if test $? -eq 0 ; then + ldd_output=`ldd conftest` + for i in $deplibs; do + name="`expr $i : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test "$name" != "" ; then + libname=`eval \\$echo \"$libname_spec\"` + deplib_matches=`eval \\$echo \"$library_names_spec\"` + set dummy $deplib_matches + deplib_match=$2 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs="$newdeplibs $i" + else + droppeddeps=yes + echo + echo "*** Warning: This library needs some functionality provided by $i." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + fi + else + newdeplibs="$newdeplibs $i" + fi + done + else + # Error occured in the first compile. Let's try to salvage the situation: + # Compile a seperate program for each library. + for i in $deplibs; do + name="`expr $i : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test "$name" != "" ; then + $rm conftest + $C_compiler -o conftest conftest.c $i + # Did it work? + if test $? -eq 0 ; then + ldd_output=`ldd conftest` + libname=`eval \\$echo \"$libname_spec\"` + deplib_matches=`eval \\$echo \"$library_names_spec\"` + set dummy $deplib_matches + deplib_match=$2 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs="$newdeplibs $i" + else + droppeddeps=yes + echo + echo "*** Warning: This library needs some functionality provided by $i." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + fi + else + droppeddeps=yes + echo + echo "*** Warning! Library $i is needed by this library but I was not able to" + echo "*** make it link in! You will probably need to install it or some" + echo "*** library that it depends on before this library will be fully" + echo "*** functional. Installing it before continuing would be even better." + fi + else + newdeplibs="$newdeplibs $i" + fi + done + fi + deplibs=$newdeplibs + ;; + file_magic*) + set dummy $deplibs_check_method + file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`" + for a_deplib in $deplibs; do + name="`expr $a_deplib : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test "$name" != "" ; then + libname=`eval \\$echo \"$libname_spec\"` + for i in $lib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potlib" 2>/dev/null \ + | grep " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | sed 's/.* -> //'` + case "$potliblink" in + /*) potlib="$potliblink";; + *) potlib=`$echo "X$potlib" \ + | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_command \"\$potlib\" \ + | sed '11,$d' \ + | egrep "$file_magic_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + if test -n "$a_deplib" ; then + droppeddeps=yes + echo + echo "*** Warning: This library needs some functionality provided by $a_deplib." + echo "*** I have the capability to make that library automatically link in when" + echo "*** you link to this library. But I can only do this if you have a" + echo "*** shared version of the library, which you do not appear to have." + fi + else + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + fi + done # Gone through all deplibs. + ;; + none | unknown | *) newdeplibs="" + if $echo "X$deplibs" | $Xsed -e 's/ -lc$//' -e 's/[ ]//g' \ + | grep . >/dev/null; then + echo + if test "X$deplibs_check_method" = "Xnone"; then + echo "*** Warning: inter-library dependencies are not supported in this platform." + else + echo "*** Warning: inter-library dependencies are not known to be supported." + fi + echo "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + fi + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + echo + echo "*** Warning: libtool could not satisfy all declared inter-library" + echo "*** dependencies of module $libname. Therefore, libtool will create" + echo "*** a static module, that should work as long as the dlopening" + echo "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + echo + echo "*** However, this would only work if libtool was able to extract symbol" + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + echo "*** not find such a program. So, this module is probably useless." + echo "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + dlname= + library_names= + else + echo "*** The inter-library dependencies that have been dropped here will be" + echo "*** automatically added whenever a program is linked with this library" + echo "*** or is declared to -dlopen it." + fi + fi + fi + + # test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + deplibs=$newdeplibs + # Done checking deplibs! + + # Get the real and link names of the library. + eval library_names=\"$library_names_spec\" + set dummy $library_names + realname="$2" + shift; shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + lib="$output_objdir/$realname" + for link + do + linknames="$linknames $link" + done + + # Ensure that we have .o objects for linkers which dislike .lo + # (e.g. aix) incase we are running --disable-static + for obj in $libobjs; do + oldobj=`echo $obj | $Xsed -e "$lo2o"` + test -f $oldobj || ${LN_S} $obj $oldobj + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + + if test -n "$whole_archive_flag_spec"; then + if test -n "$convenience"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + fi + else + for xlib in $convenience; do + # Extract the objects. + xdir="$xlib"x + generated="$generated $xdir" + xlib=`echo "$xlib" | $Xsed -e 's%^.*/%%'` + + $show "${rm}r $xdir" + $run ${rm}r "$xdir" + $show "mkdir $xdir" + $run mkdir "$xdir" + status=$? + if test $status -ne 0 && test ! -d "$xdir"; then + exit $status + fi + $show "(cd $xdir && $AR x ../$xlib)" + $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $? + + libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP` + done + fi + + # Do each of the archive commands. + if test -n "$export_symbols" && test -n "$archive_sym_cmds"; then + eval cmds=\"$archive_sym_cmds\" + else + eval cmds=\"$archive_cmds\" + fi + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $ + done + IFS="$save_ifs" + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + *.lo | *.o | *.obj) + if test -n "$link_against_libtool_libs"; then + $echo "$modename: error: cannot link libtool libraries into objects" 1>&2 + exit 1 + fi + + if test -n "$deplibs"; then + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 + fi + + if test -n "$dlfiles$dlprefiles"; then + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 + fi + + if test -n "$rpath"; then + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 + fi + + if test -n "$xrpath"; then + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 + fi + + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 + fi + + case "$output" in + *.lo) + if test -n "$objs"; then + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 + exit 1 + fi + libobj="$output" + obj=`$echo "X$output" | $Xsed -e "$lo2o"` + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $run $rm $obj $libobj + + # Create the old-style object. + reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP` + + output="$obj" + eval cmds=\"$reload_cmds\" + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + + # Exit if we aren't doing a library object file. + test -z "$libobj" && exit 0 + + if test "$build_libtool_libs" != yes; then + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + $show "echo timestamp > $libobj" + $run eval "echo timestamp > $libobj" || exit $? + exit 0 + fi + + if test -n "$pic_flag"; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs" + output="$libobj" + eval cmds=\"$reload_cmds\" + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + else + # Just create a symlink. + $show $rm $libobj + $run $rm $libobj + $show "$LN_S $obj $libobj" + $run $LN_S $obj $libobj || exit $? + fi + + exit 0 + ;; + + # Anything else should be a program. + *) + if test -n "$vinfo"; then + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 + fi + + if test -n "$release"; then + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 + fi + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + if test -n "$hardcode_libdir_flag_spec"; then + saved_libdir="$libdir" + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + # Put the magic libdir with the hardcode flag. + hardcode_libdirs="$libdir" + libdir="@HARDCODE_LIBDIRS@" + else + # Just accumulate the unique libdirs. + case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + libdir= + fi + fi + + if test -n "$libdir"; then + eval flag=\"$hardcode_libdir_flag_spec\" + + compile_command="$comile_command $flag" + fi + + libdir="$saved_libdir" + if test -n "$hardcode_libdir_separator"; then + if test -z "$finalize_hardcode_libdirs"; then + # Put the magic libdir with the hardcode flag. + finalize_hardcode_libdirs="$libdir" + libdir="@HARDCODE_LIBDIRS@" + else + # Just accumulate the unique libdirs. + case "$hardcode_libdir_separator$finalize_hardcode_libdirs$hardcode_libdir_separator" in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + finalize_hardcode_libdirs="$finalize_hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + libdir= + fi + fi + + if test -n "$libdir"; then + eval flag=\"$hardcode_libdir_flag_spec\" + + finalize_command="$finalize_command $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac + fi + done + fi + + # Substitute the hardcoded libdirs into the compile commands. + if test -n "$hardcode_libdir_separator"; then + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$hardcode_libdirs%g"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$finalize_hardcode_libdirs%g"` + fi + + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` + if test "X$output_objdir" = "X$output"; then + output_objdir="$objdir" + else + output_objdir="$output_objdir/$objdir" + fi + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi + + if test "$export_dynamic" = yes || test -n "$dlfiles$dlprefiles" && test -n "$NM" && test -n "$global_symbol_pipe"; then + dlsyms="${outputname}S.c" + else + dlsyms= + fi + + if test -n "$dlsyms"; then + case "$dlsyms" in + "") ;; + *.c) + if test "$export_dynamic" = yes && test -z "$export_symbols"; then + # Add our own program objects to the preloaded list. + dlprefiles=`$echo "X$objs $dlprefiles" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi + + # Discover the nlist of each of the dlfiles. + nlist="$objdir/${output}.nm" + + if test -d $objdir; then + $show "$rm $nlist ${nlist}T" + $run $rm "$nlist" "${nlist}T" + else + $show "$mkdir $objdir" + $run $mkdir $objdir + status=$? + if test $status -ne 0 && test ! -d $objdir; then + exit $status + fi + fi + + # Parse the name list into a source file. + $show "creating $objdir/$dlsyms" + + $echo > "$objdir/$dlsyms" "\ +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* Prevent the only kind of declaration conflicts we can make. */ +#define lt_preloaded_symbols some_other_symbol + +/* External symbol declarations for the compiler. */\ +" + + if test "$export_dynamic" = yes && test -n "$export_symbols"; then + sed -e 's/^\(.*\)/\1 \1/' < "$export_symbols" > "$nlist" + fi + + for arg in $dlprefiles; do + $show "extracting global C symbols from \`$arg'" + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" + done + + if test -z "$run"; then + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + $rm "$nlist"T + fi + + if test -f "$nlist"; then + sed -e 's/^.* \(.*\)$/extern char \1;/' < "$nlist" >> "$output_objdir/$dlsyms" + else + echo '/* NONE */' >> "$output_objdir/$dlsyms" + fi + + $echo >> "$output_objdir/$dlsyms" "\ + +#undef lt_preloaded_symbols + +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{\ +" + + if test "$export_dynamic" = yes && test -n "$export_symbols"; then + echo >> "$output_objdir/$dlsyms" "\ + {\"${output}\", (lt_ptr_t) 0}," + sed 's/^\(.*\)/ {"\1", (lt_ptr_t) \&\1},/' < "$export_symbols" >> "$output_objdir/$dlsyms" + fi + + for arg in $dlprefiles; do + name=`echo "$arg" | sed -e 's%^.*/%%'` + echo >> "$output_objdir/$dlsyms" "\ + {\"$name\", (lt_ptr_t) 0}," + eval "$NM $arg | $global_symbol_pipe > '$nlist'" + + if test -f "$nlist"; then + sed 's/^\(.*\) \(.*\)$/ {"\1", (lt_ptr_t) \&\2},/' < "$nlist" >> "$output_objdir/$dlsyms" + else + echo '/* NONE */' >> "$output_objdir/$dlsyms" + fi + done + + $echo >> "$output_objdir/$dlsyms" "\ + {0, (lt_ptr_t) 0} +}; + +/* This works around a problem in FreeBSD linker */ +static const void *lt_preloaded_setup() { + return lt_preloaded_symbols; +} + +#ifdef __cplusplus +} +#endif\ +" + fi + + # Now compile the dynamic symbol file. + # pic_flag works around a bug in FreeBSD linker + $show "(cd $objdir && $C_compiler -c$no_builtin_flag $pic_flag -DPIC \"$dlsyms\")" + $run eval '(cd $objdir && $C_compiler -c$no_builtin_flag $pic_flag -DPIC "$dlsyms")' || exit $? + + # Transform the symbol file into the correct name. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"` + ;; + *) + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 + exit 1 + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + if test -n "$dlfiles$dlprefiles"; then + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 + fi + + # Nullify the symbol file. + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi + + if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then + # Replace the output file specification. + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + + # We have no uninstalled library dependencies, so finalize right now. + $show "$compile_command" + $run eval "$compile_command" + exit $? + fi + + # Replace the output file specification. + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'T%g'` + + # Create the binary in the object directory, then wrap it. + if test ! -d $output_objdir; then + $show "$mkdir $output_objdir" + $run $mkdir $output_objdir + status=$? + if test $status -ne 0 && test ! -d $objdir; then + exit $status + fi + fi + + if test -n "$shlibpath_var"; then + # We should set the shlibpath_var + rpath= + for dir in $temp_rpath; do + case "$dir" in + /* | [A-Za-z]:[/\\]*) + # Absolute path. + rpath="$rpath$dir:" + ;; + *) + # Relative path: add a thisdir entry. + rpath="$rpath\$thisdir/$dir:" + ;; + esac + done + temp_rpath="$rpath" + fi + + # Delete the old output file. + $run $rm $output + + if test -n "$compile_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + compile_command="$runpath_var=\"$rpath\$$runpath_var\" $compile_command" + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath="$rpath$dir:" + done + finalize_command="$runpath_var=\"$rpath\$$runpath_var\" $finalize_command" + fi + fi + + if test "$hardcode_action" = relink; then + # AGH! Flame the AIX and HP-UX people for me, will ya? + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 + $echo "$modename: \`$output' will be relinked during installation" 1>&2 + fi + + $show "$compile_command" + $run eval "$compile_command" || exit $? + + # Now create the wrapper script. + $show "creating $output" + + # Quote the finalize command for shipping. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "$sed_quote_subst"` + + # Quote $echo for shipping. + if test "X$echo" = "X$SHELL $0 --fallback-echo"; then + case "$0" in + /* | [A-Za-z]:[/\\]*) qecho="$SHELL $0 --fallback-echo";; + *) qecho="$SHELL `pwd`/$0 --fallback-echo";; + esac + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if our run command is non-null. + if test -z "$run"; then + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) output=`echo $output|sed 's,.exe$,,'` ;; + esac + $rm $output + trap "$rm $output; exit 1" 1 2 15 + + $echo > $output "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='$sed_quote_subst' + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + link_against_libtool_libs='$link_against_libtool_libs' + finalize_command=\"cd `pwd | sed -e $sed_quote_subst`; $finalize_command\" +else + # When we are sourced in execute mode, \$file and \$echo are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + echo=\"$qecho\" + file=\"\$0\" + # Make sure echo works. + if test \"X\$1\" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then + # Yippee, \$echo works! + : + else + # Restart under the correct shell, and then maybe \$echo will work. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $echo >> $output "\ + + # Find the directory that this script lives in. + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + /* | [A-Za-z]:[/\\]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\` + done + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" + + progdir=\"\$thisdir/$objdir\" + program='$outputname' + + if test -f \"\$ + + # Export our shlibpath_var if we have one. + if test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $echo >> $output "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + + export $shlibpath_var +" + fi + + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $echo >> $output "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + $echo >> $output "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + *-*-cygwin* | *-*-mingw | *-*-os2*) + # win32 systems need to use the prog path for dll + # lookup to work + $echo >> $output "\ + exec \$progdir\\\\\$program \${1+\"\$@\"} +" + ;; + *) + $echo >> $output "\ + # Export the path to the program. + PATH=\"\$progdir:\$PATH\" + export PATH + + exec \$program \${1+\"\$@\"} +" + ;; + esac + $echo >> $output "\ + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" + exit 1 + fi + else + # The program doesn't exist. + \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 + \$echo \"This script is just a wrapper for \$program.\" 1>&2 + echo \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" + chmod +x $output + fi + exit 0 + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP` + fi + addlibs="$old_convenience" + fi + + # Add in members from convenience archives. + for xlib in $addlibs; do + # Extract the objects. + xdir="$xlib"x + generated="$generated $xdir" + xlib=`echo "$xlib" | $Xsed -e 's%^.*/%%'` + + $show "${rm}r $xdir" + $run ${rm}r "$xdir" + $show "mkdir $xdir" + $run mkdir "$xdir" + status=$? + if test $status -ne 0 && test ! -d "$xdir"; then + exit $status + fi + $show "(cd $xdir && $AR x ../$xlib)" + $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $? + + oldobjs="$oldobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP` + done + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + eval cmds=\"$old_archive_from_new_cmds\" + else + eval cmds=\"$old_archive_cmds\" + fi + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + done + + if test -n "$generated"; then + $show "${rm}r$generated" + $run ${rm}r$generated + fi + + # Now create the libtool archive. + case "$output" in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + $show "creating $output" + + if test -n "$xrpath"; then + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + done + dependency_libs="$temp_xrpath $dependency_libs" + fi + + # Only create the output if not a dry run. + if test -z "$run"; then + $echo > $output "\ +# $output - a libtool library file +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP + +# The name that we can dlopen(3). +dlname='$dlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already istalled library? +installed=no + +# Directory that this library needs to be installed in: +libdir='$install_libdir'\ +" + fi + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" + $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $? + ;; + esac + exit 0 + ;; + + # libtool install mode + install) + modename="$modename: install" + + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then + # Aesthetically quote it. + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` + case "$arg" in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + arg="\"$arg\"" + ;; + esac + install_prog="$arg " + arg="$1" + shift + else + install_prog= + arg="$nonopt" + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case "$arg" in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + arg="\"$arg\"" + ;; + esac + install_prog="$install_prog$arg" + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + for arg + do + if test -n "$dest"; then + files="$files $dest" + dest="$arg" + continue + fi + + case "$arg" in + -d) isdir=yes ;; + -f) prev="-f" ;; + -g) prev="-g" ;; + -m) prev="-m" ;; + -o) prev="-o" ;; + -s) + stripme=" -s" + continue + ;; + -*) ;; + + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + prev= + else + dest="$arg" + continue + fi + ;; + esac + + # Aesthetically quote the argument. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case "$arg" in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + arg="\"$arg\"" + ;; + esac + install_prog="$install_prog $arg" + done + + if test -z "$install_prog"; then + $echo "$modename: you must specify an install program" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + if test -n "$prev"; then + $echo "$modename: the \`$prev' option requires an argument" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + if test -z "$files"; then + if test -z "$dest"; then + $echo "$modename: no file or destination specified" 1>&2 + else + $echo "$modename: you must specify a destination" 1>&2 + fi + $echo "$help" 1>&2 + exit 1 + fi + + # Strip any trailing slash from the destination. + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` + test "X$destdir" = "X$dest" && destdir=. + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` + + # Not a directory, so check to see that there is only one file specified. + set dummy $files + if test $# -gt 2; then + $echo "$modename: \`$dest' is not a directory" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + fi + case "$destdir" in + /* | [A-Za-z]:[/\\]*) ;; + *) + for file in $files; do + case "$file" in + *.lo) ;; + *) + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 + $echo "$help" 1>&2 + exit 1 + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case "$file" in + *.a | *.lib) + # Do the static libraries later. + staticlibs="$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + library_names= + old_library= + # If there is no directory component, then add one. + case "$file" in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs="$current_libdirs $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs="$future_libdirs $libdir" ;; + esac + fi + + dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/" + test "X$dir" = "X$file/" && dir= + dir="$dir$objdir" + + # See the names of the shared library. + set dummy $library_names + if test -n "$2"; then + realname="$2" + shift + shift + + # Install the shared library and build the symlinks. + $show "$install_prog $dir/$realname $destdir/$realname" + $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $? + test "X$dlname" = "X$realname" && dlname= + + if test $# -gt 0; then + # Delete the old symlinks, and create new ones. + for linkname + do + test "X$dlname" = "X$linkname" && dlname= + if test "$linkname" != "$realname"; then + $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" + $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" + fi + done + fi + + if test -n "$dlname"; then + # Install the dynamically-loadable library. + $show "$install_prog $dir/$dlname $destdir/$dlname" + $run eval "$install_prog $dir/$dlname $destdir/$dlname" || exit $? + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + eval cmds=\"$postinstall_cmds\" + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + fi + + # Install the pseudo-library for information purposes. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "Creating $instname" + $rm "$instname" + sed 's/^installed=no$/installed=yes/' "$file" > "$instname" + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? + $show "$rm $instname" + $rm "$instname" + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case "$destfile" in + *.lo) + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` + ;; + *.o | *.obj) + staticdest="$destfile" + destfile= + ;; + *) + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 + $echo "$help" 1>&2 + exit 1 + ;; + esac + + # Install the libtool object if requested. + if test -n "$destfile"; then + $show "$install_prog $file $destfile" + $run eval "$install_prog $file $destfile" || exit $? + fi + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` + + $show "$install_prog $staticobj $staticdest" + $run eval "$install_prog \$staticobj \$staticdest" || exit $? + fi + exit 0 + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + destfile="$destdir/$destfile" + fi + + # Do a test to see if this is really a libtool program. + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + link_against_libtool_libs= + finalize_command= + + # If there is no directory component, then add one. + case "$file" in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Check the variables that should have been set. + if test -z "$link_against_libtool_libs" || test -z "$finalize_command"; then + $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2 + exit 1 + fi + + finalize=yes + for lib in $link_against_libtool_libs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + # If there is no directory component, then add one. + case "$lib" in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + fi + libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`" + if test -n "$libdir" && test ! -f "$libfile"; then + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 + finalize=no + fi + done + + if test "$hardcode_action" = relink; then + if test "$finalize" = yes; then + $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2 + $show "$finalize_command" + if $run eval "$finalize_command"; then : + else + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 + continue + fi + file="$objdir/$file"T + else + $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2 + fi + else + # Install the binary that we compiled earlier. + file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + $show "$install_prog$stripme $file $destfile" + $run eval "$install_prog\$stripme \$file \$destfile" || exit $? + ;; + esac + done + + for file in $staticlibs; do + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + $show "$install_prog $file $oldlib" + $run eval "$install_prog \$file \$oldlib" || exit $? + + # Do each command in the postinstall commands. + eval cmds=\"$old_postinstall_cmds\" + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + done + + if test -n "$future_libdirs"; then + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 + fi + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + test -n "$run" && current_libdirs=" -n$current_libdirs" + exec $SHELL $0 --finish$current_libdirs + exit 1 + fi + + exit 0 + ;; + + # libtool finish mode + finish) + modename="$modename: finish" + libdirs="$nonopt" + admincmds= + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs="$libdirs $dir" + done + + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + eval cmds=\"$finish_cmds\" + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || admincmds="$admincmds + $cmd" + done + IFS="$save_ifs" + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $run eval "$cmds" || admincmds="$admincmds + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + test "$show" = : && exit 0 + + echo "----------------------------------------------------------------------" + echo "Libraries have been installed in:" + for libdir in $libdirs; do + echo " $libdir" + done + echo + echo "If you ever happen to want to link against installed libraries" + echo "in a given directory, LIBDIR, you must either use libtool, and" + echo "specify the full pathname of the library, or use \`-LLIBDIR'" + echo "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + echo " during execution" + fi + if test -n "$runpath_var"; then + echo " - add + echo " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + echo " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + echo " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + echo + echo "See any operating system documentation about shared libraries for" + echo "more information, such as the ld(1) and ld.so(8) manual pages." + echo "----------------------------------------------------------------------" + exit 0 + ;; + + # libtool execute mode + execute) + modename="$modename: execute" + + # The first argument is the command name. + cmd="$nonopt" + if test -z "$cmd"; then + $echo "$modename: you must specify a COMMAND" 1>&2 + $echo "$help" + exit 1 + fi + + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + if test ! -f "$file"; then + $echo "$modename: \`$file' is not a file" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + dir= + case "$file" in + *.la) + # Check to see that this really is a libtool archive. + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + else + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + # Read the libtool library. + dlname= + library_names= + + # If there is no directory component, then add one. + case "$file" in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" + continue + fi + + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$file" && dir=. + + if test -f "$dir/$objdir/$dlname"; then + dir="$dir/$objdir" + else + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 + exit 1 + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$file" && dir=. + ;; + + *) + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case "$file" in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + # If there is no directory component, then add one. + case "$file" in + */* | *\\*) . $file ;; + *) . ./$file ;; + esac + + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` + args="$args \"$file\"" + done + + if test -z "$run"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + + # Restore saved enviroment variables + if test "${save_LC_ALL+set}" = set; then + LC_ALL="$save_LC_ALL"; export LC_ALL + fi + if test "${save_LANG+set}" = set; then + LANG="$save_LANG"; export LANG + fi + + # Now actually exec the command. + eval "exec \$cmd$args" + + $echo "$modename: cannot exec \$cmd$args" + exit 1 + else + # Display what would be done. + eval "\$echo \"\$shlibpath_ar=\$$shlibpath_var\"" + $echo "export $shlibpath_var" + $echo "$cmd$args" + exit 0 + fi + ;; + + # libtool uninstall mode + uninstall) + modename="$modename: uninstall" + rm="$nonopt" + files= + + for arg + do + case "$arg" in + -*) rm="$rm $arg" ;; + *) files="$files $arg" ;; + esac + done + + if test -z "$rm"; then + $echo "$modename: you must specify an RM program" 1>&2 + $echo "$help" 1>&2 + exit 1 + fi + + for file in $files; do + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` + test "X$dir" = "X$file" && dir=. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + + rmfiles="$file" + + case "$name" in + *.la) + # Possibly a libtool archive, so verify it. + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + . $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles="$rmfiles $dir/$n" + test "X$n" = "X$dlname" && dlname= + done + test -n "$dlname" && rmfiles="$rmfiles $dir/$dlname" + test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library" + + $show "$rm $rmfiles" + $run $rm $rmfiles + + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + eval cmds=\"$postuninstall_cmds\" + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" + done + IFS="$save_ifs" + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + eval cmds=\"$old_postuninstall_cmds\" + IFS="${IFS= }"; save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" + done + IFS="$save_ifs" + fi + + # FIXME: should reinstall the best remaining shared library. + fi + ;; + + *.lo) + if test "$build_old_libs" = yes; then + oldobj=`$echo "X$name" | $Xsed -e "$lo2o"` + rmfiles="$rmfiles $dir/$oldobj" + fi + $show "$rm $rmfiles" + $run $rm $rmfiles + ;; + + *) + $show "$rm $rmfiles" + $run $rm $rmfiles + ;; + esac + done + exit 0 + ;; + + "") + $echo "$modename: you must specify a MODE" 1>&2 + $echo "$generic_help" 1>&2 + exit 1 + ;; + esac + + $echo "$modename: invalid operation mode \`$mode'" 1>&2 + $echo "$generic_help" 1>&2 + exit 1 +fi # test -z "$show_help" + +# We need to display help for each of the modes. +case "$mode" in +"") $echo \ +"Usage: $modename [OPTION]... [MODE-ARG]... + +Provide generalized library-building support services. + + --config show all configuration variables + --debug enable verbose shell tracing +-n, --dry-run display commands without modifying any files + --features display basic configuration information and exit + --finish same as \`--mode=finish' + --help display this help message and exit + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] + --quiet same as \`--silent' + --silent don't print informational messages + --version print version information + +MODE must be one of the following: + + compile compile a source file into a libtool object + execute automatically set library path, then run a program + finish complete the installation of libtool libraries + install install libraries or executables + link create a library or an executable + uninstall remove libraries from an installed directory + +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for +a more detailed description of MODE." + exit 0 + ;; + +compile) + $echo \ +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -static always build a \`.o' file suitable for static linking + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + +execute) + $echo \ +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + +finish) + $echo \ +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + +install) + $echo \ +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + +link) + $echo \ +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -static do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + +uninstall) + $echo +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + +*) + $echo "$modename: invalid operation mode \`$mode'" 1>&2 + $echo "$help" 1>&2 + exit 1 + ;; +esac + +echo +$echo "Try \`$modename --help' for more information about other modes." + +exit 0 + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: diff --git a/missing b/missing new file mode 100755 index 00000000000..7789652e877 --- /dev/null +++ b/missing @@ -0,0 +1,190 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. +# Copyright (C) 1996, 1997 Free Software Foundation, Inc. +# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +case "$1" in + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + yacc create \`y.tab.[ch]', if possible, from existing .[ch]" + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing - GNU libit 0.0" + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + + aclocal) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acinclude.m4' or \`configure.in'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`configure.in'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acconfig.h' or \`configure.in'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + makeinfo) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` + fi + touch $file + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequirements for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100755 index 00000000000..e69de29bb2d --- /dev/null +++ b/mkinstalldirs |