Under autoconf-2.50, the AC_CHECK_LIB(mylib,mysymbol) macro builds shell variables with names like "$ac_cv_mylib_mysymbol". If a couple of files in the CommonC++-2.50/m4/ directory, you use a shell variable for "mylib", like so: AC_CHECK_LIB($ost_cv_thread_library, nanosleep, ... The problem is that the resulting ./configure file checks the variable $ost_cv_thread_library_nanosleep" instead of ${$ost_cv_thread_library)_nanosleep. The following patch seems to work around the problem. I think ths may arguably be an autoconf-2.50 bug, so I am cc'ing this to [EMAIL PROTECTED] for their information. Even if this is an autoconf bug, I believe that applying the following patch to CommonC++ should be harmless, so I recommend that you do it anyhow, to work with the existing autoconf-2.50 release in any case. -- Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104 [EMAIL PROTECTED] \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America fax +1 408 261-6631 "Free Software For The Rest Of Us."
diff -r -u CommonC++-1.5.0/m4/ost_pthread.m4 CommonC++/m4/ost_pthread.m4 --- CommonC++-1.5.0/m4/ost_pthread.m4 Sat Mar 31 07:15:47 2001 +++ CommonC++/m4/ost_pthread.m4 Thu Jun 28 17:56:40 2001 @@ -113,7 +113,7 @@ AC_MSG_ERROR(no library for posix threads found!) fi - AC_CHECK_LIB($ost_cv_thread_library, nanosleep, + AC_CHECK_LIB(${ost_cv_thread_library}, nanosleep, AC_DEFINE(HAVE_PTHREAD_NANOSLEEP),[ AC_CHECK_LIB(posix4, nanosleep,[ AC_DEFINE(HAVE_PTHREAD_NANOSLEEP) @@ -185,54 +185,54 @@ ;; esac - AC_CHECK_LIB($ost_cv_thread_library, pthread_mutexattr_settype, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_mutexattr_settype, AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETTYPE), [ - AC_CHECK_LIB($ost_cv_thread_library, pthread_mutexattr_settype_np, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_mutexattr_settype_np, AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP)) - AC_CHECK_LIB($ost_cv_thread_library, pthread_mutexattr_setkind_np, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_mutexattr_setkind_np, AC_DEFINE(HAVE_PTHREAD_MUTEXATTR_SETKIND_NP)) ] ) ost_cv_thread_rwlock=false - AC_CHECK_LIB($ost_cv_thread_library, pthread_rwlock_init,[ + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_rwlock_init,[ ost_cv_thread_rwlock=true AC_DEFINE(HAVE_PTHREAD_RWLOCK)]) AC_CHECK_LIB(c, pread,[ AC_DEFINE(HAVE_PREAD_PWRITE)],[ - AC_CHECK_LIB($ost_cv_thread_library, pread,[ + AC_CHECK_LIB(${ost_cv_thread_library}, pread,[ AC_DEFINE(HAVE_PREAD_PWRITE)],[ AC_CHECK_LIB(c_r, pread,[AC_DEFINE(HAVE_PREAD_PWRITE)]) ]) ]) - AC_CHECK_LIB($ost_cv_thread_library, pthread_attr_setstacksize, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_attr_setstacksize, AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACKSIZE)) - AC_CHECK_LIB($ost_cv_thread_library, pthread_yield, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_yield, AC_DEFINE(HAVE_PTHREAD_YIELD),[ - AC_CHECK_LIB($ost_cv_thread_library, sched_yield, + AC_CHECK_LIB(${ost_cv_thread_library}, sched_yield, AC_DEFINE(HAVE_PTHREAD_SCHED_YIELD)) ]) - AC_CHECK_LIB($ost_cv_thread_library, pthread_cancel,[ + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_cancel,[ AC_DEFINE(HAVE_PTHREAD_CANCEL) - AC_CHECK_LIB($ost_cv_thread_library, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_setcanceltype, AC_DEFINE(HAVE_PTHREAD_SETCANCELTYPE), AC_CHECK_LIB($ost_cv_thread_library, pthread_setcanel, AC_DEFINE(HAVE_PTHREAD_SETCANCEL))) ],[ - AC_CHECK_LIB($ost_cv_thread_library, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_setcanceltype,[ AC_DEFINE(HAVE_PTHREAD_CANCEL) AC_DEFINE(HAVE_PTHREAD_SETCANCELTYPE)]) ]) - AC_CHECK_LIB($ost_cv_thread_library, pthread_delay_np, + AC_CHECK_LIB(${ost_cv_thread_library}, pthread_delay_np, AC_DEFINE(HAVE_PTHREAD_DELAY_NP)) fi UNAME=`uname` diff -r -u CommonC++-1.5.0/m4/ost_socket.m4 CommonC++/m4/ost_socket.m4 --- CommonC++-1.5.0/m4/ost_socket.m4 Sat Mar 31 07:16:10 2001 +++ CommonC++/m4/ost_socket.m4 Thu Jun 28 17:55:30 2001 @@ -42,7 +42,7 @@ if test $ost_cv_inet_sockets = yes ; then AC_CHECK_HEADERS(sys/libcsys.h) AC_DEFINE(HAVE_INET_SOCKETS) - AC_CHECK_LIB($ost_cv_lib_socket, inet_aton,[ + AC_CHECK_LIB(${ost_cv_lib_socket}, inet_aton,[ AC_DEFINE(HAVE_INET_ATON)]) AC_CACHE_CHECK("for socklen_t defined", ost_cv_socklen_t, [ ost_cv_socklen_t='no'