From: Karel G. <kg...@us...> - 2001-12-21 20:25:00
|
Update of /cvsroot/micomt/mico In directory usw-pr-cvs1:/tmp/cvs-serv19868 Modified Files: CHANGES.mt configure.in Log Message: - made global debug mutex not recursive - renamed swap16 to swap_16 because of name clash with OpenBSD's swap16 macro - fixed time service for compilation on *BSD - removed old gcc related params from configure - added checking for pthread's symbols in libc_r (needs for FreeBSD, OpenBSD) - added semaphore implementation based on mutex & condvar (needs for OpenBSD) it is used on OSes which doesn't provide POSIX implementation and semaphore.h Index: CHANGES.mt =================================================================== RCS file: /cvsroot/micomt/mico/CHANGES.mt,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** CHANGES.mt 2001/12/14 16:25:17 1.24 --- CHANGES.mt 2001/12/21 20:24:56 1.25 *************** *** 1,3 **** --- 1,10 ---- + - made global debug mutex not recursive + - renamed swap16 to swap_16 because of name clash with OpenBSD's swap16 macro + - fixed time service for compilation on *BSD + - removed old gcc related params from configure + - added checking for pthread's symbols in libc_r (needs for FreeBSD, OpenBSD) + - added semaphore implementation based on mutex & condvar (needs for OpenBSD) + it is used on OSes which doesn't provide POSIX implementation and semaphore.h - fixed ssl support - removed _tpm static value from global MICO:: namespace into MTManager class Index: configure.in =================================================================== RCS file: /cvsroot/micomt/mico/configure.in,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -r1.30 -r1.31 *** configure.in 2001/12/19 18:54:47 1.30 --- configure.in 2001/12/21 20:24:56 1.31 *************** *** 289,295 **** AC_CHECK_LIB(pthread, open, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h semaphore.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) AC_DEFINE(HAVE_PTHREADS) SHLIBS="-lpthread" --- 289,296 ---- AC_CHECK_LIB(pthread, open, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) + AC_CHECK_HEADERS(semaphore.h) AC_DEFINE(HAVE_PTHREADS) SHLIBS="-lpthread" *************** *** 299,305 **** AC_CHECK_LIB(c_r, pthread_create, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h semaphore.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) AC_DEFINE(HAVE_PTHREADS) #SHLIBS="-lpthread" --- 300,307 ---- AC_CHECK_LIB(c_r, pthread_create, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) + AC_CHECK_HEADERS(semaphore.h) AC_DEFINE(HAVE_PTHREADS) #SHLIBS="-lpthread" *************** *** 395,401 **** AC_CHECK_LIB(pthread, open, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h semaphore.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) AC_DEFINE(HAVE_PTHREADS) SHLIBS="-lpthread" --- 397,404 ---- AC_CHECK_LIB(pthread, open, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) + AC_CHECK_HEADERS(semaphore.h) AC_DEFINE(HAVE_PTHREADS) SHLIBS="-lpthread" *************** *** 403,409 **** AC_CHECK_LIB(c_r, pthread_create, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h semaphore.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) AC_DEFINE(HAVE_PTHREADS) #SHLIBS="-lpthread" --- 406,413 ---- AC_CHECK_LIB(c_r, pthread_create, use_pthreads=yes, use_pthreads=no) if test X"$use_pthreads" = Xyes; then ! AC_CHECK_HEADERS(pthread.h sched.h,, AC_MSG_ERROR(pthread header files incomplete) ) + AC_CHECK_HEADERS(semaphore.h) AC_DEFINE(HAVE_PTHREADS) #SHLIBS="-lpthread" *************** *** 549,558 **** fi - if test X"$use_mini_stl" = Xno; then - CXXFLAGS="$CXXFLAGS -ftemplate-depth-42" - fi - - # MICO_CHECK_CXX_FLAG(fno-rtti, [CXXFLAGS="$CXXFLAGS -fno-rtti"]) - CONF_PICFLAGS=-fPIC CONF_LDSOFLAGS=-fPIC --- 553,556 ---- *************** *** 560,578 **** CONF_EXCEPT_FLAGS="" - MICO_CHECK_CXX_FLAG(fexceptions, [ - HAVE_EX_FLAGS=yes - CONF_NO_EXCEPT_FLAGS=-fno-exceptions - CONF_EXCEPT_FLAGS="-fexceptions -O0" - CONF_EXCEPT_OPT_FLAGS="-fexceptions" - ], [ - HAVE_EX_FLAGS=no - CONF_NO_EXCEPT_FLAGS= - CONF_EXCEPT_FLAGS="-fhandle-exceptions -O0" - CONF_EXCEPT_OPT_FLAGS="-fhandle-exceptions -O0" - ]) - # workaround for compiling X11 headers with gcc 2.95 ! MICO_CHECK_CXX_FLAG(fpermissive, [CXXFLAGS="$CXXFLAGS -fpermissive"]) ! case $target in *aix*) --- 558,567 ---- CONF_EXCEPT_FLAGS="" # workaround for compiling X11 headers with gcc 2.95 ! # MICO_CHECK_CXX_FLAG(fpermissive, [CXXFLAGS="$CXXFLAGS -fpermissive"]) ! SAVE_CXXFLAGS=$CXXFLAGS ! CXXFLAGS="$SAVE_CXXFLAGS -fpermissive" ! AC_TRY_COMPILE([],[],, CXXFLAGS=$SAVE_CXXFLAGS) ! case $target in *aix*) |