From 4d30baadae68f6454ca01d11903225450e98d88f Mon Sep 17 00:00:00 2001 From: jbj Date: Mon, 15 Oct 2001 03:54:05 +0000 Subject: Resolve conflicts. CVS patchset: 5111 CVS date: 2001/10/15 03:54:05 --- db/dist/configure.ac | 255 ++++++++++++++++++++++++++------------------------- db/dist/pubdef.in | 53 +++++++++-- 2 files changed, 176 insertions(+), 132 deletions(-) (limited to 'db/dist') diff --git a/db/dist/configure.ac b/db/dist/configure.ac index c19a4b784..104606aa9 100644 --- a/db/dist/configure.ac +++ b/db/dist/configure.ac @@ -1,4 +1,4 @@ -# Id: configure.ac,v 11.100 2001/07/10 15:13:48 bostic Exp +# Id: configure.ac,v 11.116 2001/10/11 20:29:35 bostic Exp # Process this file with autoconf to produce a configure script. PACKAGE=db @@ -19,7 +19,6 @@ AC_MSG_RESULT(no) # Substitution variables. AC_SUBST(ADDITIONAL_INCS) AC_SUBST(ADDITIONAL_LANG) -AC_SUBST(ADDITIONAL_LIBS) AC_SUBST(ADDITIONAL_OBJS) AC_SUBST(ADDITIONAL_PROGS) AC_SUBST(BUILD_TARGET) @@ -39,7 +38,6 @@ AC_SUBST(INSTALLER) AC_SUBST(INSTALL_LIBS) AC_SUBST(INSTALL_TARGET) AC_SUBST(JAR) -AC_SUBST(JAVAC) AC_SUBST(JAVACFLAGS) AC_SUBST(LDFLAGS) AC_SUBST(LIBJSO_LIBS) @@ -50,14 +48,15 @@ AC_SUBST(LIBTSO_LIBS) AC_SUBST(LIBXSO_LIBS) AC_SUBST(MAKEFILE_CC) AC_SUBST(MAKEFILE_CCLINK) +AC_SUBST(MAKEFILE_SOLINK) AC_SUBST(MAKEFILE_CXX) AC_SUBST(MAKEFILE_CXXLINK) +AC_SUBST(MAKEFILE_XSOLINK) AC_SUBST(POSTLINK) AC_SUBST(RPC_CLIENT_OBJS) AC_SUBST(RPM_POST_INSTALL) AC_SUBST(RPM_POST_UNINSTALL) AC_SUBST(SOFLAGS) -AC_SUBST(SOLINK) AC_SUBST(SOSUFFIX) AC_SUBST(TEST_LIBS) AC_SUBST(db_cv_path_embedix_install) @@ -147,32 +146,43 @@ fi # Don't override anything if it's already set from the environment. optimize_def="-O" case "$host_os" in -aix4.*) optimize_def="-O2" - CC=${CC-"xlc_r"} - CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS" - LIBTSO_LIBS="\$(LIBS)";; -bsdi3*) CC=${CC-"shlicc2"} - optimize_def="-O2" - LIBS="-lipc $LIBS";; -bsdi*) optimize_def="-O2";; -freebsd*) optimize_def="-O2" - CPPFLAGS="-D_THREAD_SAFE $CPPFLAGS" - LIBS="-pthread";; -hpux*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";; -irix*) optimize_def="-O2" - CPPFLAGS="-D_SGI_MP_SOURCE $CPPFLAGS";; -linux*) optimize_def="-O2" - CPPFLAGS="-D_GNU_SOURCE -D_REENTRANT $CPPFLAGS";; -mpeix*) CPPFLAGS="-D_POSIX_SOURCE -D_SOCKET_SOURCE $CPPFLAGS" - LIBS="-lsocket -lsvipc $LIBS";; -osf*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";; -*qnx) AC_DEFINE(HAVE_QNX) - AH_TEMPLATE(HAVE_QNX, [Define if building on QNX.]);; -sco3.2v4*) CC=${CC-"cc -belf"} - LIBS="-lsocket -lnsl_s $LIBS";; -sco*) CC=${CC-"cc -belf"} - LIBS="-lsocket -lnsl $LIBS";; -solaris*) CPPFLAGS="-D_REENTRANT $CPPFLAGS";; +aix4.3.[12]) + optimize_def="-O2" + CC=${CC-"xlc_r"} + CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" + LIBTSO_LIBS="\$(LIBS)";; +aix4.3.3) + optimize_def="-O2" + CC=${CC-"xlc_r"} + CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" + LDFLAGS="$LDFLAGS -pthread" + LIBTSO_LIBS="\$(LIBS)";; +bsdi3*) optimize_def="-O2" + CC=${CC-"shlicc2"} + LIBS="$LIBS -lipc";; +bsdi*) optimize_def="-O2";; +freebsd*) + optimize_def="-O2" + CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" + LDFLAGS="$LDFLAGS -pthread";; +hpux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT";; +irix*) optimize_def="-O2" + CPPFLAGS="$CPPFLAGS -D_SGI_MP_SOURCE";; +linux*) optimize_def="-O2" + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_REENTRANT";; +mpeix*) CPPFLAGS="$CPPFLAGS -D_POSIX_SOURCE -D_SOCKET_SOURCE" + LIBS="$LIBS -lsocket -lsvipc";; +osf*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" + LDFLAGS="$LDFLAGS -pthread";; +*qnx) AC_DEFINE(HAVE_QNX) + AH_TEMPLATE(HAVE_QNX, [Define if building on QNX.]);; +sco3.2v4*) + CC=${CC-"cc -belf"} + LIBS="$LIBS -lsocket -lnsl_s";; +sco*) CC=${CC-"cc -belf"} + LIBS="$LIBS -lsocket -lnsl";; +solaris*) + CPPFLAGS="$CPPFLAGS -D_REENTRANT";; esac # Set CFLAGS/CXXFLAGS. We MUST set the flags before we call autoconf @@ -204,8 +214,8 @@ AC_PROG_CC # Because of shared library building, the ${CC} used for config tests # may be different than the ${CC} we want to put in the Makefile. # The latter is known as ${MAKEFILE_CC} in this script. -MAKEFILE_CC=${CC} -MAKEFILE_CCLINK="\$(CC)" +MAKEFILE_CC="${CC}" +MAKEFILE_CCLINK="${CC}" MAKEFILE_CXX="nocxx" MAKEFILE_CXXLINK="nocxx" @@ -219,15 +229,17 @@ MAKEFILE_CXXLINK="nocxx" if test "$db_cv_cxx" = "yes"; then if test "$GCC" != "yes"; then case "$host_os" in - aix*) AC_CHECK_TOOL(CCC, xlC_r);; + aix*) AC_CHECK_TOOL(CCC, xlC_r) + LIBXSO_LIBS="-lC_r $LIBXSO_LIBS" + LIBS="-lC_r $LIBS";; hpux*) AC_CHECK_TOOL(CCC, aCC);; osf*) AC_CHECK_TOOL(CCC, cxx);; solaris*) AC_CHECK_TOOL(CCC, CC);; esac fi AC_PROG_CXX - MAKEFILE_CXX=${CXX} - MAKEFILE_CXXLINK="\$(CXX)" + MAKEFILE_CXX="${CXX}" + MAKEFILE_CXXLINK="${CXX}" fi # Do some gcc specific configuration. @@ -242,19 +254,37 @@ CCC=CXX AC_PROG_LIBTOOL LIBTOOL="\$(SHELL) ./libtool" -SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([[a-zA-Z0-9_]]*\).*/\1/' ./libtool` SOFLAGS="-rpath \$(libdir)" -SAVE_CC="${MAKEFILE_CC}" -SAVE_CXX="${MAKEFILE_CXX}" -MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}" -MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}" -MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${SAVE_CC}" -MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${SAVE_CXX}" +AC_MSG_CHECKING([SOSUFFIX from libtool]) +# $library_names_spec is a snippet of shell that may +# defined in terms of $versuffix, $release, $libname. +# All we want is to eval it and grab the suffix used +# for shared objects. +versuffix="" +release="" +libname=libfoo +eval library_names=\"$library_names_spec\" +SOSUFFIX=`echo "$library_names" | sed -e 's/.*\.\([[a-zA-Z0-9_]]*\).*/\1/'` +AC_MSG_RESULT($SOSUFFIX) + +if test "$SOSUFFIX" = '' ; then + SOSUFFIX=so + if test "$enable_shared" = "yes"; then + AC_MSG_WARN([libtool may not know about this architecture.]) + AC_MSG_WARN([assuming .$SOSUFFIX suffix for dynamic libraries.]) + fi +fi -SOLINK="\$(LIBTOOL) --mode=link ${SAVE_CC} -avoid-version" INSTALLER="\$(LIBTOOL) --mode=install cp" +MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${MAKEFILE_CC}" +MAKEFILE_SOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK} -avoid-version" +MAKEFILE_CCLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CCLINK}" +MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${MAKEFILE_CXX}" +MAKEFILE_XSOLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK} -avoid-version" +MAKEFILE_CXXLINK="\$(LIBTOOL) --mode=link ${MAKEFILE_CXXLINK}" + # Configure for shared libraries, static libraries, or both. If both are # configured, build the utilities and example programs with shared versions. # @@ -262,28 +292,25 @@ INSTALLER="\$(LIBTOOL) --mode=install cp" # instead of .o if test "$enable_shared" = "no"; then DEFAULT_LIB="\$(libdb)" - DEFAULT_LIB_CXX="\$(libcxx)" - DEFAULT_INSTALL="install_static" POSTLINK="@true" o=".o" fi if test "$enable_shared" = "yes"; then DEFAULT_LIB="\$(libso_target)" - DEFAULT_LIB_CXX="\$(libxso_target)" - DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared" POSTLINK="\$(LIBTOOL) --mode=execute true" o=".lo" fi +INSTALL_LIBS="$DEFAULT_LIB" # Optional C++ API. if test "$db_cv_cxx" = "yes"; then if test "$enable_shared" = "no"; then - DEFAULT_INSTALL="${DEFAULT_INSTALL} install_static_cxx" + DEFAULT_LIB_CXX="\$(libcxx)" fi if test "$enable_shared" = "yes"; then - ADDITIONAL_LIBS="$ADDITIONAL_LIBS \$(libxso_target)" - DEFAULT_INSTALL="${DEFAULT_INSTALL} install_shared_cxx" + DEFAULT_LIB_CXX="\$(libxso_target)" fi + INSTALL_LIBS="$INSTALL_LIBS $DEFAULT_LIB_CXX" # Fill in C++ library for Embedix. EMBEDIX_ECD_CXX='