/[PAMELA software]/yoda/configure
ViewVC logotype

Diff of /yoda/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4.2.2.1.2.1 by kusanagi, Tue Apr 25 11:26:32 2006 UTC revision 5.0 by kusanagi, Mon Aug 29 09:45:00 2005 UTC
# Line 278  fi Line 278  fi
278    
279  # The HP-UX ksh and POSIX shell print the target directory to stdout  # The HP-UX ksh and POSIX shell print the target directory to stdout
280  # if CDPATH is set.  # if CDPATH is set.
281  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH  if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282    
283  if test -z "$ECHO"; then  if test -z "$ECHO"; then
284  if test "X${echo_test_string+set}" != Xset; then  if test "X${echo_test_string+set}" != Xset; then
# Line 463  ac_includes_default="\ Line 463  ac_includes_default="\
463  # include <unistd.h>  # include <unistd.h>
464  #endif"  #endif"
465    
466  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LOG4CXX_INCLUDES LOG4CXX_LDFLAGS LOG4CXX_LIBRARY LIBOBJS LTLIBOBJS'  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LOG4CXX_INCLUDES LOG4CXX_LDFLAGS LOG4CXX_LIBRARY LIBOBJS LTLIBOBJS'
467  ac_subst_files=''  ac_subst_files=''
468    
469  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 1023  if test -n "$ac_init_help"; then Line 1023  if test -n "$ac_init_help"; then
1023  Optional Features:  Optional Features:
1024    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026    --disable-dependency-tracking Speeds up one-time builds    --disable-dependency-tracking  speeds up one-time build
1027    --enable-dependency-tracking  Do not reject slow dependency extractors    --enable-dependency-tracking   do not reject slow dependency extractors
1028    --enable-shared[=PKGS]    --enable-shared[=PKGS]
1029                            build shared libraries [default=yes]                            build shared libraries [default=yes]
1030    --enable-static[=PKGS]    --enable-static[=PKGS]
# Line 1498  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 1498  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498    
1499    
1500    
1501  am__api_version="1.7"  am__api_version="1.9"
1502  ac_aux_dir=  ac_aux_dir=
1503  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504    if test -f $ac_dir/install-sh; then    if test -f $ac_dir/install-sh; then
# Line 1661  _ACEOF Line 1661  _ACEOF
1661  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1662  rm conftest.sed  rm conftest.sed
1663    
   
1664  # expand $ac_aux_dir to an absolute path  # expand $ac_aux_dir to an absolute path
1665  am_aux_dir=`cd $ac_aux_dir && pwd`  am_aux_dir=`cd $ac_aux_dir && pwd`
1666    
# Line 1675  else Line 1674  else
1674  echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}  echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675  fi  fi
1676    
1677    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1678      # We used to keeping the `.' as first argument, in order to
1679      # allow $(mkdir_p) to be used without argument.  As in
1680      #   $(mkdir_p) $(somedir)
1681      # where $(somedir) is conditionally defined.  However this is wrong
1682      # for two reasons:
1683      #  1. if the package is installed by a user who cannot write `.'
1684      #     make install will fail,
1685      #  2. the above comment should most certainly read
1686      #     $(mkdir_p) $(DESTDIR)$(somedir)
1687      #     so it does not work when $(somedir) is undefined and
1688      #     $(DESTDIR) is not.
1689      #  To support the latter case, we have to write
1690      #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1691      #  so the `.' trick is pointless.
1692      mkdir_p='mkdir -p --'
1693    else
1694      # On NextStep and OpenStep, the `mkdir' command does not
1695      # recognize any option.  It will interpret all options as
1696      # directories to create, and then abort because `.' already
1697      # exists.
1698      for d in ./-p ./--version;
1699      do
1700        test -d $d && rmdir $d
1701      done
1702      # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1703      if test -f "$ac_aux_dir/mkinstalldirs"; then
1704        mkdir_p='$(mkinstalldirs)'
1705      else
1706        mkdir_p='$(install_sh) -d'
1707      fi
1708    fi
1709    
1710  for ac_prog in gawk mawk nawk awk  for ac_prog in gawk mawk nawk awk
1711  do  do
1712    # Extract the first word of "$ac_prog", so it can be a program name with args.    # Extract the first word of "$ac_prog", so it can be a program name with args.
# Line 1753  else Line 1785  else
1785  fi  fi
1786  rmdir .tst 2>/dev/null  rmdir .tst 2>/dev/null
1787    
1788   # test to see if srcdir already configured  # test to see if srcdir already configured
1789  if test "`cd $srcdir && pwd`" != "`pwd`" &&  if test "`cd $srcdir && pwd`" != "`pwd`" &&
1790     test -f $srcdir/config.status; then     test -f $srcdir/config.status; then
1791    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
# Line 1801  AUTOHEADER=${AUTOHEADER-"${am_missing_ru Line 1833  AUTOHEADER=${AUTOHEADER-"${am_missing_ru
1833    
1834  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1835    
   
 AMTAR=${AMTAR-"${am_missing_run}tar"}  
   
1836  install_sh=${install_sh-"$am_aux_dir/install-sh"}  install_sh=${install_sh-"$am_aux_dir/install-sh"}
1837    
1838  # Installed binaries are usually stripped using `strip' when the user  # Installed binaries are usually stripped using `strip' when the user
# Line 1896  INSTALL_STRIP_PROGRAM="\${SHELL} \$(inst Line 1925  INSTALL_STRIP_PROGRAM="\${SHELL} \$(inst
1925    
1926  # We need awk for the "check" target.  The system "awk" is bad on  # We need awk for the "check" target.  The system "awk" is bad on
1927  # some platforms.  # some platforms.
1928    # Always define AMTAR for backward compatibility.
1929    
1930    AMTAR=${AMTAR-"${am_missing_run}tar"}
1931    
1932    am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1933    
1934    
1935    
1936    
1937    
# Line 2997  else Line 3033  else
3033      : > sub/conftest.c      : > sub/conftest.c
3034      for i in 1 2 3 4 5 6; do      for i in 1 2 3 4 5 6; do
3035        echo '#include "conftst'$i'.h"' >> sub/conftest.c        echo '#include "conftst'$i'.h"' >> sub/conftest.c
3036        : > sub/conftst$i.h        # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3037          # Solaris 8's {/usr,}/bin/sh.
3038          touch sub/conftst$i.h
3039      done      done
3040      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3041    
# Line 3025  else Line 3063  else
3063         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3064         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3065        # icc doesn't choke on unknown options, it will just issue warnings        # icc doesn't choke on unknown options, it will just issue warnings
3066        # (even with -Werror).  So we grep stderr for any message        # or remarks (even with -Werror).  So we grep stderr for any message
3067        # that says an option was ignored.        # that says an option was ignored or not supported.
3068        if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else        # When given -MP, icc 7.0 and 7.1 complain thusly:
3069          #   icc: Command line warning: ignoring option '-M'; no argument required
3070          # The diagnosis changed in icc 8.0:
3071          #   icc: Command line remark: option '-MP' not supported
3072          if (grep 'ignoring option' conftest.err ||
3073              grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3074          am_cv_CC_dependencies_compiler_type=$depmode          am_cv_CC_dependencies_compiler_type=$depmode
3075          break          break
3076        fi        fi
# Line 3151  fi Line 3194  fi
3194    
3195    
3196  # Provide some information about the compiler.  # Provide some information about the compiler.
3197  echo "$as_me:3154:" \  echo "$as_me:3197:" \
3198       "checking for Fortran 77 compiler version" >&5       "checking for Fortran 77 compiler version" >&5
3199  ac_compiler=`set X $ac_compile; echo $2`  ac_compiler=`set X $ac_compile; echo $2`
3200  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 3348  _ACEOF Line 3391  _ACEOF
3391  # flags.  # flags.
3392  ac_save_FFLAGS=$FFLAGS  ac_save_FFLAGS=$FFLAGS
3393  FFLAGS="$FFLAGS $ac_verb"  FFLAGS="$FFLAGS $ac_verb"
3394  (eval echo $as_me:3351: \"$ac_link\") >&5  (eval echo $as_me:3394: \"$ac_link\") >&5
3395  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3396  echo "$ac_f77_v_output" >&5  echo "$ac_f77_v_output" >&5
3397  FFLAGS=$ac_save_FFLAGS  FFLAGS=$ac_save_FFLAGS
# Line 3426  _ACEOF Line 3469  _ACEOF
3469  # flags.  # flags.
3470  ac_save_FFLAGS=$FFLAGS  ac_save_FFLAGS=$FFLAGS
3471  FFLAGS="$FFLAGS $ac_cv_prog_f77_v"  FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3472  (eval echo $as_me:3429: \"$ac_link\") >&5  (eval echo $as_me:3472: \"$ac_link\") >&5
3473  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3474  echo "$ac_f77_v_output" >&5  echo "$ac_f77_v_output" >&5
3475  FFLAGS=$ac_save_FFLAGS  FFLAGS=$ac_save_FFLAGS
# Line 3996  else Line 4039  else
4039      : > sub/conftest.c      : > sub/conftest.c
4040      for i in 1 2 3 4 5 6; do      for i in 1 2 3 4 5 6; do
4041        echo '#include "conftst'$i'.h"' >> sub/conftest.c        echo '#include "conftst'$i'.h"' >> sub/conftest.c
4042        : > sub/conftst$i.h        # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4043          # Solaris 8's {/usr,}/bin/sh.
4044          touch sub/conftst$i.h
4045      done      done
4046      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4047    
# Line 4024  else Line 4069  else
4069         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&         grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4070         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4071        # icc doesn't choke on unknown options, it will just issue warnings        # icc doesn't choke on unknown options, it will just issue warnings
4072        # (even with -Werror).  So we grep stderr for any message        # or remarks (even with -Werror).  So we grep stderr for any message
4073        # that says an option was ignored.        # that says an option was ignored or not supported.
4074        if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else        # When given -MP, icc 7.0 and 7.1 complain thusly:
4075          #   icc: Command line warning: ignoring option '-M'; no argument required
4076          # The diagnosis changed in icc 8.0:
4077          #   icc: Command line remark: option '-MP' not supported
4078          if (grep 'ignoring option' conftest.err ||
4079              grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4080          am_cv_CXX_dependencies_compiler_type=$depmode          am_cv_CXX_dependencies_compiler_type=$depmode
4081          break          break
4082        fi        fi
# Line 4154  lt_ac_count=0 Line 4204  lt_ac_count=0
4204  # Add /usr/xpg4/bin/sed as it is typically found on Solaris  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4205  # along with /bin/sed that truncates output.  # along with /bin/sed that truncates output.
4206  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do  for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4207    test ! -f $lt_ac_sed && continue    test ! -f $lt_ac_sed && break
4208    cat /dev/null > conftest.in    cat /dev/null > conftest.in
4209    lt_ac_count=0    lt_ac_count=0
4210    echo $ECHO_N "0123456789$ECHO_C" >conftest.in    echo $ECHO_N "0123456789$ECHO_C" >conftest.in
# Line 4179  for lt_ac_sed in $lt_ac_sed_list /usr/xp Line 4229  for lt_ac_sed in $lt_ac_sed_list /usr/xp
4229      fi      fi
4230    done    done
4231  done  done
4232    SED=$lt_cv_path_SED
4233    
4234  fi  fi
4235    
 SED=$lt_cv_path_SED  
4236  echo "$as_me:$LINENO: result: $SED" >&5  echo "$as_me:$LINENO: result: $SED" >&5
4237  echo "${ECHO_T}$SED" >&6  echo "${ECHO_T}$SED" >&6
4238    
# Line 4323  case $reload_flag in Line 4373  case $reload_flag in
4373  *) reload_flag=" $reload_flag" ;;  *) reload_flag=" $reload_flag" ;;
4374  esac  esac
4375  reload_cmds='$LD$reload_flag -o $output$reload_objs'  reload_cmds='$LD$reload_flag -o $output$reload_objs'
 case $host_os in  
   darwin*)  
     if test "$GCC" = yes; then  
       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'  
     else  
       reload_cmds='$LD$reload_flag -o $output$reload_objs'  
     fi  
     ;;  
 esac  
4376    
4377  echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5  echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4378  echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6  echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
# Line 4418  beos*) Line 4459  beos*)
4459    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4460    ;;    ;;
4461    
4462  bsdi[45]*)  bsdi4*)
4463    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4464    lt_cv_file_magic_cmd='/usr/bin/file -L'    lt_cv_file_magic_cmd='/usr/bin/file -L'
4465    lt_cv_file_magic_test_file=/shlib/libc.so    lt_cv_file_magic_test_file=/shlib/libc.so
# Line 4441  darwin* | rhapsody*) Line 4482  darwin* | rhapsody*)
4482    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4483    ;;    ;;
4484    
4485  freebsd* | kfreebsd*-gnu | dragonfly*)  freebsd* | kfreebsd*-gnu)
4486    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4487      case $host_cpu in      case $host_cpu in
4488      i*86 )      i*86 )
4489        # Not sure whether the presence of OpenBSD here was a mistake.        # Not sure whether the presence of OpenBSD here was a mistake.
4490        # Let's accept both of them until this is cleared up.        # Let's accept both of them until this is cleared up.
4491        lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'        lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4492        lt_cv_file_magic_cmd=/usr/bin/file        lt_cv_file_magic_cmd=/usr/bin/file
4493        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4494        ;;        ;;
# Line 4491  irix5* | irix6* | nonstopux*) Line 4532  irix5* | irix6* | nonstopux*)
4532    
4533  # This must be Linux ELF.  # This must be Linux ELF.
4534  linux*)  linux*)
4535      case $host_cpu in
4536      alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4537        lt_cv_deplibs_check_method=pass_all ;;
4538      *)
4539        # glibc up to 2.1.1 does not perform some relocations on ARM
4540        # this will be overridden with pass_all, but let us keep it just in case
4541        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4542      esac
4543      lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4544    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4545    ;;    ;;
4546    
# Line 4513  nto-qnx*) Line 4563  nto-qnx*)
4563    ;;    ;;
4564    
4565  openbsd*)  openbsd*)
4566      lt_cv_file_magic_cmd=/usr/bin/file
4567      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4568    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4569      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4570    else    else
4571      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'      lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4572    fi    fi
4573    ;;    ;;
4574    
# Line 4609  ia64-*-hpux*) Line 4661  ia64-*-hpux*)
4661    ;;    ;;
4662  *-*-irix6*)  *-*-irix6*)
4663    # Find out which ABI we are using.    # Find out which ABI we are using.
4664    echo '#line 4612 "configure"' > conftest.$ac_ext    echo '#line 4664 "configure"' > conftest.$ac_ext
4665    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4666    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4667    ac_status=$?    ac_status=$?
# Line 4647  ia64-*-hpux*) Line 4699  ia64-*-hpux*)
4699  x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)  x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4700    # Find out which ABI we are using.    # Find out which ABI we are using.
4701    echo 'int i;' > conftest.$ac_ext    echo 'int i;' > conftest.$ac_ext
4702      lt_cv_cc_lib64_suffix=no
4703    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4705    ac_status=$?    ac_status=$?
4706    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707    (exit $ac_status); }; then    (exit $ac_status); }; then
4708      case "`/usr/bin/file conftest.o`" in      case "`/usr/bin/file conftest.$ac_objext`" in
4709      *32-bit*)      *32-bit*)
4710        case $host in        case $host in
4711          x86_64-*linux*)          x86_64-*linux*)
# Line 4673  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 4726  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
4726        case $host in        case $host in
4727          x86_64-*linux*)          x86_64-*linux*)
4728            LD="${LD-ld} -m elf_x86_64"            LD="${LD-ld} -m elf_x86_64"
4729              lt_cv_cc_lib64_suffix=yes
4730            ;;            ;;
4731          ppc*-*linux*|powerpc*-*linux*)          ppc*-*linux*|powerpc*-*linux*)
4732            LD="${LD-ld} -m elf64ppc"            LD="${LD-ld} -m elf64ppc"
4733              lt_cv_cc_lib64_suffix=yes
4734            ;;            ;;
4735          s390*-*linux*)          s390*-*linux*)
4736            LD="${LD-ld} -m elf64_s390"            LD="${LD-ld} -m elf64_s390"
4737              lt_cv_cc_lib64_suffix=yes
4738            ;;            ;;
4739          sparc*-*linux*)          sparc*-*linux*)
4740            LD="${LD-ld} -m elf64_sparc"            LD="${LD-ld} -m elf64_sparc"
4741              lt_cv_cc_lib64_suffix=yes
4742            ;;            ;;
4743        esac        esac
4744        ;;        ;;
# Line 5394  fi Line 5451  fi
5451    
5452  done  done
5453    
5454    ac_ext=cc
   
 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&  
     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||  
     (test "X$CXX" != "Xg++"))) ; then  
   ac_ext=cc  
5455  ac_cpp='$CXXCPP $CPPFLAGS'  ac_cpp='$CXXCPP $CPPFLAGS'
5456  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 5629  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS Line 5681  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS
5681  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5683    
 fi  
   
5684    
5685    
5686  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
# Line 5677  else Line 5727  else
5727      lt_cv_sys_max_cmd_len=8192;      lt_cv_sys_max_cmd_len=8192;
5728      ;;      ;;
5729    
5730    netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)   *)
     # This has been around since 386BSD, at least.  Likely further.  
     if test -x /sbin/sysctl; then  
       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`  
     elif test -x /usr/sbin/sysctl; then  
       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`  
     else  
       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD  
     fi  
     # And add a safety zone  
     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`  
     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`  
     ;;  
   osf*)  
     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure  
     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not  
     # nice to cause kernel panics so lets avoid the loop below.  
     # First set a reasonable default.  
     lt_cv_sys_max_cmd_len=16384  
     #  
     if test -x /sbin/sysconfig; then  
       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in  
         *1*) lt_cv_sys_max_cmd_len=-1 ;;  
       esac  
     fi  
     ;;  
   *)  
5731      # If test is not a shell built-in, we'll probably end up computing a      # If test is not a shell built-in, we'll probably end up computing a
5732      # maximum length that is only half of the actual maximum length, but      # maximum length that is only half of the actual maximum length, but
5733      # we can't tell.      # we can't tell.
5734      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}      while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \  
5735                 = "XX$teststring") >/dev/null 2>&1 &&                 = "XX$teststring") >/dev/null 2>&1 &&
5736              new_result=`expr "X$teststring" : ".*" 2>&1` &&              new_result=`expr "X$teststring" : ".*" 2>&1` &&
5737              lt_cv_sys_max_cmd_len=$new_result &&              lt_cv_sys_max_cmd_len=$new_result &&
# Line 5754  symcode='[BCDEGRST]' Line 5777  symcode='[BCDEGRST]'
5777  # Regexp to match symbols that can be accessed directly from C.  # Regexp to match symbols that can be accessed directly from C.
5778  sympat='\([_A-Za-z][_A-Za-z0-9]*\)'  sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5779    
5780    # Transform the above into a raw symbol and a C symbol.
5781    symxfrm='\1 \2\3 \3'
5782    
5783  # Transform an extracted symbol line into a proper C declaration  # Transform an extracted symbol line into a proper C declaration
5784  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5785    
# Line 5775  hpux*) # Its linker distinguishes data f Line 5801  hpux*) # Its linker distinguishes data f
5801    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5802    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5803    ;;    ;;
 linux*)  
   if test "$host_cpu" = ia64; then  
     symcode='[ABCDGIRSTW]'  
     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"  
     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"  
   fi  
   ;;  
5804  irix* | nonstopux*)  irix* | nonstopux*)
5805    symcode='[BCDEGRST]'    symcode='[BCDEGRST]'
5806    ;;    ;;
# Line 5813  esac Line 5832  esac
5832  # Try without a prefix undercore, then with it.  # Try without a prefix undercore, then with it.
5833  for ac_symprfx in "" "_"; do  for ac_symprfx in "" "_"; do
5834    
   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.  
   symxfrm="\\1 $ac_symprfx\\2 \\2"  
   
5835    # Write the raw and C identifiers.    # Write the raw and C identifiers.
5836    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5837    
5838    # Check to see that the pipe works correctly.    # Check to see that the pipe works correctly.
5839    pipe_works=no    pipe_works=no
# Line 5979  esac Line 5995  esac
5995    
5996  # Sed substitution that helps us do robust quoting.  It backslashifies  # Sed substitution that helps us do robust quoting.  It backslashifies
5997  # metacharacters that are still active within double-quoted strings.  # metacharacters that are still active within double-quoted strings.
5998  Xsed='sed -e 1s/^X//'  Xsed='sed -e s/^X//'
5999  sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'  sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6000    
6001  # Same as above, but do not quote variable references.  # Same as above, but do not quote variable references.
# Line 6284  if test -n "$RANLIB"; then Line 6300  if test -n "$RANLIB"; then
6300    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6301  fi  fi
6302    
 for cc_temp in $compiler""; do  
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
   
   
6303  # Only perform the check for file, if the check method requires it  # Only perform the check for file, if the check method requires it
6304  case $deplibs_check_method in  case $deplibs_check_method in
6305  file_magic*)  file_magic*)
# Line 6481  LTCC=${LTCC-"$CC"} Line 6486  LTCC=${LTCC-"$CC"}
6486  compiler=$CC  compiler=$CC
6487    
6488    
 # save warnings/boilerplate of simple test code  
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext  
 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_compiler_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_link_test_code" >conftest.$ac_ext  
 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_linker_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
   
6489  #  #
6490  # Check for any special shared library compilation flags.  # Check for any special shared library compilation flags.
6491  #  #
# Line 6536  else Line 6527  else
6527       if test -s conftest.err; then       if test -s conftest.err; then
6528         # Append any errors to the config.log.         # Append any errors to the config.log.
6529         cat conftest.err 1>&5         cat conftest.err 1>&5
        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp  
        $SED '/^$/d' conftest.err >conftest.er2  
        if diff conftest.exp conftest.er2 >/dev/null; then  
          lt_prog_compiler_static_works=yes  
        fi  
6530       else       else
6531         lt_prog_compiler_static_works=yes         lt_prog_compiler_static_works=yes
6532       fi       fi
# Line 6585  else Line 6571  else
6571     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6572     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6573     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6574     (eval echo "\"\$as_me:6588: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6574: $lt_compile\"" >&5)
6575     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
6576     ac_status=$?     ac_status=$?
6577     cat conftest.err >&5     cat conftest.err >&5
6578     echo "$as_me:6592: \$? = $ac_status" >&5     echo "$as_me:6578: \$? = $ac_status" >&5
6579     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
6580       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6581       # So say no if there are warnings other than the usual output.       # So say no if there are warnings
6582       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       if test ! -s conftest.err; then
      $SED '/^$/d' conftest.err >conftest.er2  
      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then  
6583         lt_cv_prog_compiler_rtti_exceptions=yes         lt_cv_prog_compiler_rtti_exceptions=yes
6584       fi       fi
6585     fi     fi
# Line 6698  echo $ECHO_N "checking for $compiler opt Line 6682  echo $ECHO_N "checking for $compiler opt
6682          lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'          lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6683        fi        fi
6684        ;;        ;;
       darwin*)  
         # PIC is the default on this platform  
         # Common symbols not allowed in MH_DYLIB files  
        case $cc_basename in  
          xlc*)  
          lt_prog_compiler_pic='-qnocommon'  
          lt_prog_compiler_wl='-Wl,'  
          ;;  
        esac  
        ;;  
6685    
6686      mingw* | pw32* | os2*)      mingw* | pw32* | os2*)
6687        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
# Line 6743  echo $ECHO_N "checking for $compiler opt Line 6717  echo $ECHO_N "checking for $compiler opt
6717        ;;        ;;
6718    
6719      linux*)      linux*)
6720        case $cc_basename in        case $CC in
6721        icc* | ecc*)        icc* | ecc*)
6722          lt_prog_compiler_wl='-Wl,'          lt_prog_compiler_wl='-Wl,'
6723          lt_prog_compiler_pic='-KPIC'          lt_prog_compiler_pic='-KPIC'
6724          lt_prog_compiler_static='-static'          lt_prog_compiler_static='-static'
6725          ;;          ;;
       pgcc* | pgf77* | pgf90*)  
         # Portland Group compilers (*not* the Pentium gcc compiler,  
         # which looks to be a dead project)  
         lt_prog_compiler_wl='-Wl,'  
         lt_prog_compiler_pic='-fpic'  
         lt_prog_compiler_static='-static'  
         ;;  
6726        ccc*)        ccc*)
6727          lt_prog_compiler_wl='-Wl,'          lt_prog_compiler_wl='-Wl,'
6728          # All Alpha code is PIC.          # All Alpha code is PIC.
# Line 6776  echo $ECHO_N "checking for $compiler opt Line 6743  echo $ECHO_N "checking for $compiler opt
6743        ;;        ;;
6744    
6745      solaris*)      solaris*)
6746          lt_prog_compiler_wl='-Wl,'
6747        lt_prog_compiler_pic='-KPIC'        lt_prog_compiler_pic='-KPIC'
6748        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
       case $cc_basename in  
       f77* | f90* | f95*)  
         lt_prog_compiler_wl='-Qoption ld ';;  
       *)  
         lt_prog_compiler_wl='-Wl,';;  
       esac  
6749        ;;        ;;
6750    
6751      sunos4*)      sunos4*)
# Line 6805  echo $ECHO_N "checking for $compiler opt Line 6767  echo $ECHO_N "checking for $compiler opt
6767        fi        fi
6768        ;;        ;;
6769    
     unicos*)  
       lt_prog_compiler_wl='-Wl,'  
       lt_prog_compiler_can_build_shared=no  
       ;;  
   
6770      uts4*)      uts4*)
6771        lt_prog_compiler_pic='-pic'        lt_prog_compiler_pic='-pic'
6772        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
# Line 6847  else Line 6804  else
6804     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6805     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6806     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6807     (eval echo "\"\$as_me:6850: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6807: $lt_compile\"" >&5)
6808     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
6809     ac_status=$?     ac_status=$?
6810     cat conftest.err >&5     cat conftest.err >&5
6811     echo "$as_me:6854: \$? = $ac_status" >&5     echo "$as_me:6811: \$? = $ac_status" >&5
6812     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
6813       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6814       # So say no if there are warnings other than the usual output.       # So say no if there are warnings
6815       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       if test ! -s conftest.err; then
      $SED '/^$/d' conftest.err >conftest.er2  
      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then  
6816         lt_prog_compiler_pic_works=yes         lt_prog_compiler_pic_works=yes
6817       fi       fi
6818     fi     fi
# Line 6909  else Line 6864  else
6864     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6865     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6867     (eval echo "\"\$as_me:6912: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
6869     ac_status=$?     ac_status=$?
6870     cat out/conftest.err >&5     cat out/conftest.err >&5
6871     echo "$as_me:6916: \$? = $ac_status" >&5     echo "$as_me:6871: \$? = $ac_status" >&5
6872     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
6873     then     then
6874       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6875       # So say no if there are warnings       # So say no if there are warnings
6876       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       if test ! -s out/conftest.err; then
      $SED '/^$/d' out/conftest.err >out/conftest.er2  
      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then  
6877         lt_cv_prog_compiler_c_o=yes         lt_cv_prog_compiler_c_o=yes
6878       fi       fi
6879     fi     fi
# Line 7000  echo $ECHO_N "checking whether the $comp Line 6953  echo $ECHO_N "checking whether the $comp
6953    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
6954    # preloaded symbol tables.    # preloaded symbol tables.
6955    extract_expsyms_cmds=    extract_expsyms_cmds=
   # Just being paranoid about ensuring that cc_basename is set.  
   for cc_temp in $compiler""; do  
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
6956    
6957    case $host_os in    case $host_os in
6958    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
# Line 7030  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 6973  cc_basename=`$echo "X$cc_temp" | $Xsed -
6973      # If archive_cmds runs LD, not CC, wlarc should be empty      # If archive_cmds runs LD, not CC, wlarc should be empty
6974      wlarc='${wl}'      wlarc='${wl}'
6975    
     # Set some defaults for GNU ld with shared library support. These  
     # are reset later if shared libraries are not supported. Putting them  
     # here allows them to be overridden if necessary.  
     runpath_var=LD_RUN_PATH  
     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'  
     export_dynamic_flag_spec='${wl}--export-dynamic'  
     # ancient GNU ld didn't support --whole-archive et. al.  
     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then  
         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  
       else  
         whole_archive_flag_spec=  
     fi  
     supports_anon_versioning=no  
     case `$LD -v 2>/dev/null` in  
       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11  
       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...  
       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...  
       *\ 2.11.*) ;; # other 2.11 versions  
       *) supports_anon_versioning=yes ;;  
     esac  
   
6976      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
6977      case $host_os in      case $host_os in
6978      aix3* | aix4* | aix5*)      aix3* | aix4* | aix5*)
# Line 7101  EOF Line 7023  EOF
7023        allow_undefined_flag=unsupported        allow_undefined_flag=unsupported
7024        always_export_symbols=no        always_export_symbols=no
7025        enable_shared_with_static_runtimes=yes        enable_shared_with_static_runtimes=yes
7026        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7027    
7028        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7029          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
# Line 7119  EOF Line 7041  EOF
7041        fi        fi
7042        ;;        ;;
7043    
     linux*)  
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then  
         tmp_addflag=  
         case $cc_basename,$host_cpu in  
         pgcc*)                          # Portland Group C compiler  
           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'  
           tmp_addflag=' $pic_flag'  
           ;;  
         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers  
           whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'  
           tmp_addflag=' $pic_flag -Mnomain' ;;  
         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64  
           tmp_addflag=' -i_dynamic' ;;  
         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64  
           tmp_addflag=' -i_dynamic -nofor_main' ;;  
         ifc* | ifort*)                  # Intel Fortran compiler  
           tmp_addflag=' -nofor_main' ;;  
         esac  
         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
   
         if test $supports_anon_versioning = yes; then  
           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~  
   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~  
   $echo "local: *; };" >> $output_objdir/$libname.ver~  
           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'  
         fi  
       else  
         ld_shlibs=no  
       fi  
       ;;  
   
7044      netbsd*)      netbsd*)
7045        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7046          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'          archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
# Line 7188  EOF Line 7079  EOF
7079        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
7080        ;;        ;;
7081    
7082      linux*)
7083        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7084            tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7085            archive_cmds="$tmp_archive_cmds"
7086          supports_anon_versioning=no
7087          case `$LD -v 2>/dev/null` in
7088            *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7089            *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7090            *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7091            *\ 2.11.*) ;; # other 2.11 versions
7092            *) supports_anon_versioning=yes ;;
7093          esac
7094          if test $supports_anon_versioning = yes; then
7095            archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7096    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7097    $echo "local: *; };" >> $output_objdir/$libname.ver~
7098            $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7099          else
7100            archive_expsym_cmds="$tmp_archive_cmds"
7101          fi
7102        else
7103          ld_shlibs=no
7104        fi
7105        ;;
7106    
7107      *)      *)
7108        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7109          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
# Line 7198  EOF Line 7114  EOF
7114        ;;        ;;
7115      esac      esac
7116    
7117      if test "$ld_shlibs" = no; then      if test "$ld_shlibs" = yes; then
7118        runpath_var=        runpath_var=LD_RUN_PATH
7119        hardcode_libdir_flag_spec=        hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7120        export_dynamic_flag_spec=        export_dynamic_flag_spec='${wl}--export-dynamic'
7121        whole_archive_flag_spec=        # ancient GNU ld didn't support --whole-archive et. al.
7122          if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7123            whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7124          else
7125            whole_archive_flag_spec=
7126          fi
7127      fi      fi
7128    else    else
7129      # PORTME fill in a description of your system's linker (not GNU ld)      # PORTME fill in a description of your system's linker (not GNU ld)
# Line 7266  EOF Line 7187  EOF
7187        link_all_deplibs=yes        link_all_deplibs=yes
7188    
7189        if test "$GCC" = yes; then        if test "$GCC" = yes; then
7190          case $host_os in aix4.[012]|aix4.[012].*)          case $host_os in aix4.012|aix4.012.*)
7191          # We only want to do this on AIX 4.2 and lower, the check          # We only want to do this on AIX 4.2 and lower, the check
7192          # below for broken collect2 doesn't work under 4.3+          # below for broken collect2 doesn't work under 4.3+
7193            collect2name=`${CC} -print-prog-name=collect2`            collect2name=`${CC} -print-prog-name=collect2`
# Line 7287  EOF Line 7208  EOF
7208            fi            fi
7209          esac          esac
7210          shared_flag='-shared'          shared_flag='-shared'
         if test "$aix_use_runtimelinking" = yes; then  
           shared_flag="$shared_flag "'${wl}-G'  
         fi  
7211        else        else
7212          # not using gcc          # not using gcc
7213          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
# Line 7450  if test -z "$aix_libpath"; then aix_libp Line 7368  if test -z "$aix_libpath"; then aix_libp
7368        ld_shlibs=no        ld_shlibs=no
7369        ;;        ;;
7370    
7371      bsdi[45]*)      bsdi4*)
7372        export_dynamic_flag_spec=-rdynamic        export_dynamic_flag_spec=-rdynamic
7373        ;;        ;;
7374    
# Line 7476  if test -z "$aix_libpath"; then aix_libp Line 7394  if test -z "$aix_libpath"; then aix_libp
7394        ;;        ;;
7395    
7396      darwin* | rhapsody*)      darwin* | rhapsody*)
7397        if test "$GXX" = yes ; then
7398          archive_cmds_need_lc=no
7399        case "$host_os" in        case "$host_os" in
7400          rhapsody* | darwin1.[012])        rhapsody* | darwin1.[012])
7401           allow_undefined_flag='${wl}-undefined ${wl}suppress'          allow_undefined_flag='-undefined suppress'
7402           ;;          ;;
7403         *) # Darwin 1.3 on        *) # Darwin 1.3 on
7404           if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7405             allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'          allow_undefined_flag='-flat_namespace -undefined suppress'
7406           else        else
7407             case ${MACOSX_DEPLOYMENT_TARGET} in          case ${MACOSX_DEPLOYMENT_TARGET} in
7408               10.[012])            10.[012])
7409                 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'              allow_undefined_flag='-flat_namespace -undefined suppress'
7410                 ;;              ;;
7411               10.*)            10.*)
7412                 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'              allow_undefined_flag='-undefined dynamic_lookup'
7413                 ;;              ;;
7414             esac          esac
7415           fi        fi
7416           ;;          ;;
7417        esac        esac
7418        archive_cmds_need_lc=no          lt_int_apple_cc_single_mod=no
7419            output_verbose_link_cmd='echo'
7420            if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7421              lt_int_apple_cc_single_mod=yes
7422            fi
7423            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7424              archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7425            else
7426            archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7427          fi
7428          module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7429          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7430            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7431              archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7432            else
7433              archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7434            fi
7435              module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7436        hardcode_direct=no        hardcode_direct=no
7437        hardcode_automatic=yes        hardcode_automatic=yes
7438        hardcode_shlibpath_var=unsupported        hardcode_shlibpath_var=unsupported
7439        whole_archive_flag_spec=''        whole_archive_flag_spec='-all_load $convenience'
7440        link_all_deplibs=yes        link_all_deplibs=yes
     if test "$GCC" = yes ; then  
         output_verbose_link_cmd='echo'  
         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'  
       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
7441      else      else
7442        case $cc_basename in        ld_shlibs=no
         xlc*)  
          output_verbose_link_cmd='echo'  
          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'  
          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           ;;  
        *)  
          ld_shlibs=no  
           ;;  
       esac  
7443      fi      fi
7444        ;;        ;;
7445    
# Line 7555  if test -z "$aix_libpath"; then aix_libp Line 7473  if test -z "$aix_libpath"; then aix_libp
7473        ;;        ;;
7474    
7475      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7476      freebsd* | kfreebsd*-gnu | dragonfly*)      freebsd* | kfreebsd*-gnu)
7477        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'        archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7478        hardcode_libdir_flag_spec='-R$libdir'        hardcode_libdir_flag_spec='-R$libdir'
7479        hardcode_direct=yes        hardcode_direct=yes
# Line 7666  if test -z "$aix_libpath"; then aix_libp Line 7584  if test -z "$aix_libpath"; then aix_libp
7584        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
7585        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7586          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'  
7587          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7588          export_dynamic_flag_spec='${wl}-E'          export_dynamic_flag_spec='${wl}-E'
7589        else        else
# Line 7712  if test -z "$aix_libpath"; then aix_libp Line 7629  if test -z "$aix_libpath"; then aix_libp
7629          allow_undefined_flag=' -expect_unresolved \*'          allow_undefined_flag=' -expect_unresolved \*'
7630          archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'          archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7631          archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~          archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7632          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7633    
7634          # Both c and cxx compiler support -rpath directly          # Both c and cxx compiler support -rpath directly
7635          hardcode_libdir_flag_spec='-rpath $libdir'          hardcode_libdir_flag_spec='-rpath $libdir'
# Line 7731  if test -z "$aix_libpath"; then aix_libp Line 7648  if test -z "$aix_libpath"; then aix_libp
7648      solaris*)      solaris*)
7649        no_undefined_flag=' -z text'        no_undefined_flag=' -z text'
7650        if test "$GCC" = yes; then        if test "$GCC" = yes; then
         wlarc='${wl}'  
7651          archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7652          archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7653            $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'            $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7654        else        else
         wlarc=''  
7655          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656          archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7657          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
# Line 7745  if test -z "$aix_libpath"; then aix_libp Line 7660  if test -z "$aix_libpath"; then aix_libp
7660        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
7661        case $host_os in        case $host_os in
7662        solaris2.[0-5] | solaris2.[0-5].*) ;;        solaris2.[0-5] | solaris2.[0-5].*) ;;
7663        *)        *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7664          # The compiler driver will combine linker options so we          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
         # cannot just pass the convience library names through  
         # without $wl, iff we do not link with $LD.  
         # Luckily, gcc supports the same syntax we need for Sun Studio.  
         # Supported since Solaris 2.6 (maybe 2.5.1?)  
         case $wlarc in  
         '')  
           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;  
         *)  
           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;  
         esac ;;  
7665        esac        esac
7666        link_all_deplibs=yes        link_all_deplibs=yes
7667        ;;        ;;
# Line 8030  beos*) Line 7935  beos*)
7935    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
7936    ;;    ;;
7937    
7938  bsdi[45]*)  bsdi4*)
7939    version_type=linux    version_type=linux
7940    need_version=no    need_version=no
7941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 8088  cygwin* | mingw* | pw32*) Line 7993  cygwin* | mingw* | pw32*)
7993        ;;        ;;
7994      pw32*)      pw32*)
7995        # pw32 DLLs use 'pw' prefix rather than 'lib'        # pw32 DLLs use 'pw' prefix rather than 'lib'
7996        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7997        ;;        ;;
7998      esac      esac
7999      ;;      ;;
# Line 8146  kfreebsd*-gnu) Line 8051  kfreebsd*-gnu)
8051    dynamic_linker='GNU ld.so'    dynamic_linker='GNU ld.so'
8052    ;;    ;;
8053    
8054  freebsd* | dragonfly*)  freebsd*)
   # DragonFly does not have aout.  When/if they implement a new  
   # versioning mechanism, adjust this.  
8055    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8056    version_type=freebsd-$objformat    version_type=freebsd-$objformat
8057    case $version_type in    case $version_type in
# Line 8167  freebsd* | dragonfly*) Line 8070  freebsd* | dragonfly*)
8070    freebsd2*)    freebsd2*)
8071      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
8072      ;;      ;;
8073    freebsd3.[01]* | freebsdelf3.[01]*)    freebsd3.01* | freebsdelf3.01*)
8074      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
8075      hardcode_into_libs=yes      hardcode_into_libs=yes
8076      ;;      ;;
# Line 8291  linux*) Line 8194  linux*)
8194    # before this can be enabled.    # before this can be enabled.
8195    hardcode_into_libs=yes    hardcode_into_libs=yes
8196    
   # find out which ABI we are using  
8197    libsuff=    libsuff=
8198    case "$host_cpu" in    if test "$lt_cv_cc_lib64_suffix" = "yes"; then
8199    x86_64*|s390x*|powerpc64*)      libsuff=64
8200      echo '#line 8298 "configure"' > conftest.$ac_ext    fi
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
       case `/usr/bin/file conftest.$ac_objext` in  
       *64-bit*)  
         libsuff=64  
         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  
         ;;  
       esac  
     fi  
     rm -rf conftest*  
     ;;  
   esac  
8201    
8202    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
8203    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
8204      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`      lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8205      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
8206        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
8207    fi    fi
8208    
8209    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
# Line 8377  nto-qnx*) Line 8265  nto-qnx*)
8265  openbsd*)  openbsd*)
8266    version_type=sunos    version_type=sunos
8267    need_lib_prefix=no    need_lib_prefix=no
8268    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    need_version=yes
   case $host_os in  
     openbsd3.3 | openbsd3.3.*) need_version=yes ;;  
     *)                         need_version=no  ;;  
   esac  
8269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8270    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8271    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 8503  echo "$as_me:$LINENO: checking how to ha Line 8387  echo "$as_me:$LINENO: checking how to ha
8387  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8388  hardcode_action=  hardcode_action=
8389  if test -n "$hardcode_libdir_flag_spec" || \  if test -n "$hardcode_libdir_flag_spec" || \
8390     test -n "$runpath_var" || \     test -n "$runpath_var " || \
8391     test "X$hardcode_automatic" = "Xyes" ; then     test "X$hardcode_automatic"="Xyes" ; then
8392    
8393    # We can hardcode non-existant directories.    # We can hardcode non-existant directories.
8394    if test "$hardcode_direct" != no &&    if test "$hardcode_direct" != no &&
# Line 9170  else Line 9054  else
9054    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9055    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
9056    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
9057  #line 9173 "configure"  #line 9057 "configure"
9058  #include "confdefs.h"  #include "confdefs.h"
9059    
9060  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 9268  else Line 9152  else
9152    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9153    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
9154    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
9155  #line 9271 "configure"  #line 9155 "configure"
9156  #include "confdefs.h"  #include "confdefs.h"
9157    
9158  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 9397  aix4* | aix5*) Line 9281  aix4* | aix5*)
9281    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9282      test "$enable_shared" = yes && enable_static=no      test "$enable_shared" = yes && enable_static=no
9283    fi    fi
9284      ;;
9285      darwin* | rhapsody*)
9286      if test "$GCC" = yes; then
9287        archive_cmds_need_lc=no
9288        case "$host_os" in
9289        rhapsody* | darwin1.[012])
9290          allow_undefined_flag='-undefined suppress'
9291          ;;
9292        *) # Darwin 1.3 on
9293          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9294            allow_undefined_flag='-flat_namespace -undefined suppress'
9295          else
9296            case ${MACOSX_DEPLOYMENT_TARGET} in
9297              10.[012])
9298                allow_undefined_flag='-flat_namespace -undefined suppress'
9299                ;;
9300              10.*)
9301                allow_undefined_flag='-undefined dynamic_lookup'
9302                ;;
9303            esac
9304          fi
9305          ;;
9306        esac
9307        output_verbose_link_cmd='echo'
9308        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9309        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9310        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9311        archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9312        module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9313        hardcode_direct=no
9314        hardcode_automatic=yes
9315        hardcode_shlibpath_var=unsupported
9316        whole_archive_flag_spec='-all_load $convenience'
9317        link_all_deplibs=yes
9318      else
9319        ld_shlibs=no
9320      fi
9321      ;;      ;;
9322  esac  esac
9323  echo "$as_me:$LINENO: result: $enable_shared" >&5  echo "$as_me:$LINENO: result: $enable_shared" >&5
# Line 9526  echo "$as_me: creating $ofile" >&6;} Line 9447  echo "$as_me: creating $ofile" >&6;}
9447  #  #
9448  # You should have received a copy of the GNU General Public License  # You should have received a copy of the GNU General Public License
9449  # along with this program; if not, write to the Free Software  # along with this program; if not, write to the Free Software
9450  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9451  #  #
9452  # As a special exception to the GNU General Public License, if you  # As a special exception to the GNU General Public License, if you
9453  # distribute this file as part of a program that contains a  # distribute this file as part of a program that contains a
# Line 9537  echo "$as_me: creating $ofile" >&6;} Line 9458  echo "$as_me: creating $ofile" >&6;}
9458  SED=$lt_SED  SED=$lt_SED
9459    
9460  # Sed that helps us avoid accidentally triggering echo(1) options like -n.  # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9461  Xsed="$SED -e 1s/^X//"  Xsed="$SED -e s/^X//"
9462    
9463  # The HP-UX ksh and POSIX shell print the target directory to stdout  # The HP-UX ksh and POSIX shell print the target directory to stdout
9464  # if CDPATH is set.  # if CDPATH is set.
9465  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH  if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9466    
9467  # The names of the tagged configurations supported by this script.  # The names of the tagged configurations supported by this script.
9468  available_tags=  available_tags=
# Line 9571  fast_install=$enable_fast_install Line 9492  fast_install=$enable_fast_install
9492  # The host system.  # The host system.
9493  host_alias=$host_alias  host_alias=$host_alias
9494  host=$host  host=$host
 host_os=$host_os  
   
 # The build system.  
 build_alias=$build_alias  
 build=$build  
 build_os=$build_os  
9495    
9496  # An echo program that does not interpret backslashes.  # An echo program that does not interpret backslashes.
9497  echo=$lt_echo  echo=$lt_echo
# Line 9653  max_cmd_len=$lt_cv_sys_max_cmd_len Line 9568  max_cmd_len=$lt_cv_sys_max_cmd_len
9568  # Does compiler simultaneously support -c and -o options?  # Does compiler simultaneously support -c and -o options?
9569  compiler_c_o=$lt_lt_cv_prog_compiler_c_o  compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9570    
9571  # Must we lock files when doing compilation?  # Must we lock files when doing compilation ?
9572  need_locks=$lt_need_locks  need_locks=$lt_need_locks
9573    
9574  # Do we need the lib prefix for modules?  # Do we need the lib prefix for modules?
# Line 9948  echo "$as_me: error: tag name \"$tagname Line 9863  echo "$as_me: error: tag name \"$tagname
9863    
9864        case $tagname in        case $tagname in
9865        CXX)        CXX)
9866          if test -n "$CXX" && ( test "X$CXX" != "Xno" &&          if test -n "$CXX" && test "X$CXX" != "Xno"; then
             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||  
             (test "X$CXX" != "Xg++"))) ; then  
9867            ac_ext=cc            ac_ext=cc
9868  ac_cpp='$CXXCPP $CPPFLAGS'  ac_cpp='$CXXCPP $CPPFLAGS'
9869  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 10008  LTCC=${LTCC-"$CC"} Line 9921  LTCC=${LTCC-"$CC"}
9921  compiler=$CC  compiler=$CC
9922    
9923    
 # save warnings/boilerplate of simple test code  
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext  
 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_compiler_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_link_test_code" >conftest.$ac_ext  
 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_linker_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
   
9924  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
9925  lt_save_CC=$CC  lt_save_CC=$CC
9926  lt_save_LD=$LD  lt_save_LD=$LD
# Line 10043  test -z "${LDCXX+set}" || LD=$LDCXX Line 9942  test -z "${LDCXX+set}" || LD=$LDCXX
9942  CC=${CXX-"c++"}  CC=${CXX-"c++"}
9943  compiler=$CC  compiler=$CC
9944  compiler_CXX=$CC  compiler_CXX=$CC
9945  for cc_temp in $compiler""; do  cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
   
9946    
9947  # We don't want -fno-exception wen compiling C++ code, so set the  # We don't want -fno-exception wen compiling C++ code, so set the
9948  # no_builtin_flag separately  # no_builtin_flag separately
# Line 10266  case $host_os in Line 10156  case $host_os in
10156      link_all_deplibs_CXX=yes      link_all_deplibs_CXX=yes
10157    
10158      if test "$GXX" = yes; then      if test "$GXX" = yes; then
10159        case $host_os in aix4.[012]|aix4.[012].*)        case $host_os in aix4.012|aix4.012.*)
10160        # We only want to do this on AIX 4.2 and lower, the check        # We only want to do this on AIX 4.2 and lower, the check
10161        # below for broken collect2 doesn't work under 4.3+        # below for broken collect2 doesn't work under 4.3+
10162          collect2name=`${CC} -print-prog-name=collect2`          collect2name=`${CC} -print-prog-name=collect2`
# Line 10287  case $host_os in Line 10177  case $host_os in
10177          fi          fi
10178        esac        esac
10179        shared_flag='-shared'        shared_flag='-shared'
       if test "$aix_use_runtimelinking" = yes; then  
         shared_flag="$shared_flag "'${wl}-G'  
       fi  
10180      else      else
10181        # not using gcc        # not using gcc
10182        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
# Line 10451  if test -z "$aix_libpath"; then aix_libp Line 10338  if test -z "$aix_libpath"; then aix_libp
10338      esac      esac
10339      ;;      ;;
10340    
   
10341    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
10342      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10343      # as there is no search path for DLLs.      # as there is no search path for DLLs.
# Line 10475  if test -z "$aix_libpath"; then aix_libp Line 10361  if test -z "$aix_libpath"; then aix_libp
10361        ld_shlibs_CXX=no        ld_shlibs_CXX=no
10362      fi      fi
10363    ;;    ;;
       darwin* | rhapsody*)  
         case "$host_os" in  
         rhapsody* | darwin1.[012])  
          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'  
          ;;  
        *) # Darwin 1.3 on  
          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then  
            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'  
          else  
            case ${MACOSX_DEPLOYMENT_TARGET} in  
              10.[012])  
                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'  
                ;;  
              10.*)  
                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'  
                ;;  
            esac  
          fi  
          ;;  
         esac  
       archive_cmds_need_lc_CXX=no  
       hardcode_direct_CXX=no  
       hardcode_automatic_CXX=yes  
       hardcode_shlibpath_var_CXX=unsupported  
       whole_archive_flag_spec_CXX=''  
       link_all_deplibs_CXX=yes  
10364    
10365      if test "$GXX" = yes ; then    darwin* | rhapsody*)
10366        lt_int_apple_cc_single_mod=no    if test "$GXX" = yes; then
10367        output_verbose_link_cmd='echo'      archive_cmds_need_lc_CXX=no
10368        if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then      case "$host_os" in
10369         lt_int_apple_cc_single_mod=yes      rhapsody* | darwin1.[012])
10370        fi        allow_undefined_flag_CXX='-undefined suppress'
10371        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then        ;;
10372         archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'      *) # Darwin 1.3 on
10373        else        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10374            archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'          allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10375          fi        else
10376          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'          case ${MACOSX_DEPLOYMENT_TARGET} in
10377          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's            10.[012])
10378            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then              allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10379              archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'              ;;
10380            else            10.*)
10381              archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'              allow_undefined_flag_CXX='-undefined dynamic_lookup'
10382            fi              ;;
10383              module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'          esac
       else  
       case $cc_basename in  
         xlc*)  
          output_verbose_link_cmd='echo'  
           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'  
           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           ;;  
        *)  
          ld_shlibs_CXX=no  
           ;;  
       esac  
10384        fi        fi
10385          ;;        ;;
10386        esac
10387        lt_int_apple_cc_single_mod=no
10388        output_verbose_link_cmd='echo'
10389        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10390          lt_int_apple_cc_single_mod=yes
10391        fi
10392        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10393          archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10394        else
10395          archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10396        fi
10397        module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10398    
10399        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10400        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10401          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10402        else
10403          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10404        fi
10405        module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10406        hardcode_direct_CXX=no
10407        hardcode_automatic_CXX=yes
10408        hardcode_shlibpath_var_CXX=unsupported
10409        whole_archive_flag_spec_CXX='-all_load $convenience'
10410        link_all_deplibs_CXX=yes
10411      else
10412        ld_shlibs_CXX=no
10413      fi
10414        ;;
10415    
10416    dgux*)    dgux*)
10417      case $cc_basename in      case $cc_basename in
10418        ec++*)        ec++)
10419          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10420          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10421          ;;          ;;
10422        ghcx*)        ghcx)
10423          # Green Hills C++ Compiler          # Green Hills C++ Compiler
10424          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10425          ld_shlibs_CXX=no          ld_shlibs_CXX=no
# Line 10555  if test -z "$aix_libpath"; then aix_libp Line 10430  if test -z "$aix_libpath"; then aix_libp
10430          ;;          ;;
10431      esac      esac
10432      ;;      ;;
10433    freebsd[12]*)    freebsd12*)
10434      # C++ shared libraries reported to be fairly broken before switch to ELF      # C++ shared libraries reported to be fairly broken before switch to ELF
10435      ld_shlibs_CXX=no      ld_shlibs_CXX=no
10436      ;;      ;;
10437    freebsd-elf*)    freebsd-elf*)
10438      archive_cmds_need_lc_CXX=no      archive_cmds_need_lc_CXX=no
10439      ;;      ;;
10440    freebsd* | kfreebsd*-gnu | dragonfly*)    freebsd* | kfreebsd*-gnu)
10441      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF      # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10442      # conventions      # conventions
10443      ld_shlibs_CXX=yes      ld_shlibs_CXX=yes
# Line 10579  if test -z "$aix_libpath"; then aix_libp Line 10454  if test -z "$aix_libpath"; then aix_libp
10454                                  # location of the library.                                  # location of the library.
10455    
10456      case $cc_basename in      case $cc_basename in
10457      CC*)      CC)
10458        # FIXME: insert proper C++ library support        # FIXME: insert proper C++ library support
10459        ld_shlibs_CXX=no        ld_shlibs_CXX=no
10460        ;;        ;;
10461      aCC*)      aCC)
10462        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10463        # Commands to make compiler produce verbose output that lists        # Commands to make compiler produce verbose output that lists
10464        # what "hidden" libraries, object files and flags are used when        # what "hidden" libraries, object files and flags are used when
# Line 10593  if test -z "$aix_libpath"; then aix_libp Line 10468  if test -z "$aix_libpath"; then aix_libp
10468        # explicitly linking system object files so we need to strip them        # explicitly linking system object files so we need to strip them
10469        # from the output so that they don't get included in the library        # from the output so that they don't get included in the library
10470        # dependencies.        # dependencies.
10471        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10472        ;;        ;;
10473      *)      *)
10474        if test "$GXX" = yes; then        if test "$GXX" = yes; then
# Line 10644  if test -z "$aix_libpath"; then aix_libp Line 10519  if test -z "$aix_libpath"; then aix_libp
10519      esac      esac
10520    
10521      case $cc_basename in      case $cc_basename in
10522        CC*)        CC)
10523          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10524          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10525          ;;          ;;
10526        aCC*)        aCC)
10527          case "$host_cpu" in          case "$host_cpu" in
10528          hppa*64*|ia64*)          hppa*64*|ia64*)
10529            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
# Line 10688  if test -z "$aix_libpath"; then aix_libp Line 10563  if test -z "$aix_libpath"; then aix_libp
10563      ;;      ;;
10564    irix5* | irix6*)    irix5* | irix6*)
10565      case $cc_basename in      case $cc_basename in
10566        CC*)        CC)
10567          # SGI C++          # SGI C++
10568          archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'          archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10569    
10570          # Archives containing C++ object files must be created using          # Archives containing C++ object files must be created using
10571          # "CC -ar", where "CC" is the IRIX C++ compiler.  This is          # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
# Line 10701  if test -z "$aix_libpath"; then aix_libp Line 10576  if test -z "$aix_libpath"; then aix_libp
10576        *)        *)
10577          if test "$GXX" = yes; then          if test "$GXX" = yes; then
10578            if test "$with_gnu_ld" = no; then            if test "$with_gnu_ld" = no; then
10579              archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'              archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10580            else            else
10581              archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'              archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10582            fi            fi
# Line 10714  if test -z "$aix_libpath"; then aix_libp Line 10589  if test -z "$aix_libpath"; then aix_libp
10589      ;;      ;;
10590    linux*)    linux*)
10591      case $cc_basename in      case $cc_basename in
10592        KCC*)        KCC)
10593          # Kuck and Associates, Inc. (KAI) C++ Compiler          # Kuck and Associates, Inc. (KAI) C++ Compiler
10594    
10595          # KCC will only create a shared library if the output file          # KCC will only create a shared library if the output file
# Line 10739  if test -z "$aix_libpath"; then aix_libp Line 10614  if test -z "$aix_libpath"; then aix_libp
10614          # "CC -Bstatic", where "CC" is the KAI C++ compiler.          # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10615          old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'          old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10616          ;;          ;;
10617        icpc*)        icpc)
10618          # Intel C++          # Intel C++
10619          with_gnu_ld=yes          with_gnu_ld=yes
         # version 8.0 and above of icpc choke on multiply defined symbols  
         # if we add $predep_objects and $postdep_objects, however 7.1 and  
         # earlier do not add the objects themselves.  
         case `$CC -V 2>&1` in  
         *"Version 7."*)  
           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'  
           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
           ;;  
         *)  # Version 8.0 or newer  
           tmp_idyn=  
           case $host_cpu in  
             ia64*) tmp_idyn=' -i_dynamic';;  
           esac  
           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
           ;;  
         esac  
10620          archive_cmds_need_lc_CXX=no          archive_cmds_need_lc_CXX=no
10621            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10622            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10623          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10624          export_dynamic_flag_spec_CXX='${wl}--export-dynamic'          export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10625          whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'          whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10626          ;;          ;;
10627        pgCC*)        cxx)
         # Portland Group C++ compiler  
         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'  
         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'  
   
         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'  
         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'  
         whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'  
         ;;  
       cxx*)  
10628          # Compaq C++          # Compaq C++
10629          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10630          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
# Line 10804  if test -z "$aix_libpath"; then aix_libp Line 10655  if test -z "$aix_libpath"; then aix_libp
10655      ;;      ;;
10656    mvs*)    mvs*)
10657      case $cc_basename in      case $cc_basename in
10658        cxx*)        cxx)
10659          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10660          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10661          ;;          ;;
# Line 10825  if test -z "$aix_libpath"; then aix_libp Line 10676  if test -z "$aix_libpath"; then aix_libp
10676      # Workaround some broken pre-1.5 toolchains      # Workaround some broken pre-1.5 toolchains
10677      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10678      ;;      ;;
   openbsd2*)  
     # C++ shared libraries are fairly broken  
     ld_shlibs_CXX=no  
     ;;  
   openbsd*)  
     hardcode_direct_CXX=yes  
     hardcode_shlibpath_var_CXX=no  
     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'  
     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'  
     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then  
       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'  
       export_dynamic_flag_spec_CXX='${wl}-E'  
       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  
     fi  
     output_verbose_link_cmd='echo'  
     ;;  
10679    osf3*)    osf3*)
10680      case $cc_basename in      case $cc_basename in
10681        KCC*)        KCC)
10682          # Kuck and Associates, Inc. (KAI) C++ Compiler          # Kuck and Associates, Inc. (KAI) C++ Compiler
10683    
10684          # KCC will only create a shared library if the output file          # KCC will only create a shared library if the output file
# Line 10859  if test -z "$aix_libpath"; then aix_libp Line 10694  if test -z "$aix_libpath"; then aix_libp
10694          old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'          old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10695    
10696          ;;          ;;
10697        RCC*)        RCC)
10698          # Rational C++ 2.4.1          # Rational C++ 2.4.1
10699          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10700          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10701          ;;          ;;
10702        cxx*)        cxx)
10703          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10704          archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'          archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10705    
10706          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10707          hardcode_libdir_separator_CXX=:          hardcode_libdir_separator_CXX=:
# Line 10884  if test -z "$aix_libpath"; then aix_libp Line 10719  if test -z "$aix_libpath"; then aix_libp
10719        *)        *)
10720          if test "$GXX" = yes && test "$with_gnu_ld" = no; then          if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10721            allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'            allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10722            archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'            archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10723    
10724            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10725            hardcode_libdir_separator_CXX=:            hardcode_libdir_separator_CXX=:
# Line 10903  if test -z "$aix_libpath"; then aix_libp Line 10738  if test -z "$aix_libpath"; then aix_libp
10738      ;;      ;;
10739    osf4* | osf5*)    osf4* | osf5*)
10740      case $cc_basename in      case $cc_basename in
10741        KCC*)        KCC)
10742          # Kuck and Associates, Inc. (KAI) C++ Compiler          # Kuck and Associates, Inc. (KAI) C++ Compiler
10743    
10744          # KCC will only create a shared library if the output file          # KCC will only create a shared library if the output file
# Line 10918  if test -z "$aix_libpath"; then aix_libp Line 10753  if test -z "$aix_libpath"; then aix_libp
10753          # the KAI C++ compiler.          # the KAI C++ compiler.
10754          old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'          old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10755          ;;          ;;
10756        RCC*)        RCC)
10757          # Rational C++ 2.4.1          # Rational C++ 2.4.1
10758          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10759          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10760          ;;          ;;
10761        cxx*)        cxx)
10762          allow_undefined_flag_CXX=' -expect_unresolved \*'          allow_undefined_flag_CXX=' -expect_unresolved \*'
10763          archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'          archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10764          archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~          archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10765            echo "-hidden">> $lib.exp~            echo "-hidden">> $lib.exp~
10766            $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~            $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10767            $rm $lib.exp'            $rm $lib.exp'
10768    
10769          hardcode_libdir_flag_spec_CXX='-rpath $libdir'          hardcode_libdir_flag_spec_CXX='-rpath $libdir'
# Line 10947  if test -z "$aix_libpath"; then aix_libp Line 10782  if test -z "$aix_libpath"; then aix_libp
10782        *)        *)
10783          if test "$GXX" = yes && test "$with_gnu_ld" = no; then          if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10784            allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'            allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10785           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10786    
10787            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10788            hardcode_libdir_separator_CXX=:            hardcode_libdir_separator_CXX=:
# Line 10971  if test -z "$aix_libpath"; then aix_libp Line 10806  if test -z "$aix_libpath"; then aix_libp
10806    sco*)    sco*)
10807      archive_cmds_need_lc_CXX=no      archive_cmds_need_lc_CXX=no
10808      case $cc_basename in      case $cc_basename in
10809        CC*)        CC)
10810          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10811          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10812          ;;          ;;
# Line 10983  if test -z "$aix_libpath"; then aix_libp Line 10818  if test -z "$aix_libpath"; then aix_libp
10818      ;;      ;;
10819    sunos4*)    sunos4*)
10820      case $cc_basename in      case $cc_basename in
10821        CC*)        CC)
10822          # Sun C++ 4.x          # Sun C++ 4.x
10823          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10824          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10825          ;;          ;;
10826        lcc*)        lcc)
10827          # Lucid          # Lucid
10828          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10829          ld_shlibs_CXX=no          ld_shlibs_CXX=no
# Line 11001  if test -z "$aix_libpath"; then aix_libp Line 10836  if test -z "$aix_libpath"; then aix_libp
10836      ;;      ;;
10837    solaris*)    solaris*)
10838      case $cc_basename in      case $cc_basename in
10839        CC*)        CC)
10840          # Sun C++ 4.2, 5.x and Centerline C++          # Sun C++ 4.2, 5.x and Centerline C++
10841          no_undefined_flag_CXX=' -zdefs'          no_undefined_flag_CXX=' -zdefs'
10842          archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'          archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
# Line 11011  if test -z "$aix_libpath"; then aix_libp Line 10846  if test -z "$aix_libpath"; then aix_libp
10846          hardcode_libdir_flag_spec_CXX='-R$libdir'          hardcode_libdir_flag_spec_CXX='-R$libdir'
10847          hardcode_shlibpath_var_CXX=no          hardcode_shlibpath_var_CXX=no
10848          case $host_os in          case $host_os in
10849            solaris2.[0-5] | solaris2.[0-5].*) ;;            solaris2.0-5 | solaris2.0-5.*) ;;
10850            *)            *)
10851              # The C++ compiler is used as linker so we must use $wl              # The C++ compiler is used as linker so we must use $wl
10852              # flag to pass the commands to the underlying system              # flag to pass the commands to the underlying system
10853              # linker. We must also pass each convience library through              # linker.
             # to the system linker between allextract/defaultextract.  
             # The C++ compiler will combine linker options so we  
             # cannot just pass the convience library names through  
             # without $wl.  
10854              # Supported since Solaris 2.6 (maybe 2.5.1?)              # Supported since Solaris 2.6 (maybe 2.5.1?)
10855              whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'              whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10856              ;;              ;;
10857          esac          esac
10858          link_all_deplibs_CXX=yes          link_all_deplibs_CXX=yes
# Line 11042  if test -z "$aix_libpath"; then aix_libp Line 10873  if test -z "$aix_libpath"; then aix_libp
10873          # in the archive.          # in the archive.
10874          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10875          ;;          ;;
10876        gcx*)        gcx)
10877          # Green Hills C++ Compiler          # Green Hills C++ Compiler
10878          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10879    
# Line 11085  if test -z "$aix_libpath"; then aix_libp Line 10916  if test -z "$aix_libpath"; then aix_libp
10916      ;;      ;;
10917    tandem*)    tandem*)
10918      case $cc_basename in      case $cc_basename in
10919        NCC*)        NCC)
10920          # NonStop-UX NCC 3.20          # NonStop-UX NCC 3.20
10921          # FIXME: insert proper C++ library support          # FIXME: insert proper C++ library support
10922          ld_shlibs_CXX=no          ld_shlibs_CXX=no
# Line 11294  echo $ECHO_N "checking for $compiler opt Line 11125  echo $ECHO_N "checking for $compiler opt
11125          ;;          ;;
11126        chorus*)        chorus*)
11127          case $cc_basename in          case $cc_basename in
11128          cxch68*)          cxch68)
11129            # Green Hills C++ Compiler            # Green Hills C++ Compiler
11130            # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"            # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11131            ;;            ;;
11132          esac          esac
11133          ;;          ;;
        darwin*)  
          # PIC is the default on this platform  
          # Common symbols not allowed in MH_DYLIB files  
          case $cc_basename in  
            xlc*)  
            lt_prog_compiler_pic_CXX='-qnocommon'  
            lt_prog_compiler_wl_CXX='-Wl,'  
            ;;  
          esac  
        ;;  
11134        dgux*)        dgux*)
11135          case $cc_basename in          case $cc_basename in
11136            ec++*)            ec++)
11137              lt_prog_compiler_pic_CXX='-KPIC'              lt_prog_compiler_pic_CXX='-KPIC'
11138              ;;              ;;
11139            ghcx*)            ghcx)
11140              # Green Hills C++ Compiler              # Green Hills C++ Compiler
11141              lt_prog_compiler_pic_CXX='-pic'              lt_prog_compiler_pic_CXX='-pic'
11142              ;;              ;;
# Line 11323  echo $ECHO_N "checking for $compiler opt Line 11144  echo $ECHO_N "checking for $compiler opt
11144              ;;              ;;
11145          esac          esac
11146          ;;          ;;
11147        freebsd* | kfreebsd*-gnu | dragonfly*)        freebsd* | kfreebsd*-gnu)
11148          # FreeBSD uses GNU C++          # FreeBSD uses GNU C++
11149          ;;          ;;
11150        hpux9* | hpux10* | hpux11*)        hpux9* | hpux10* | hpux11*)
11151          case $cc_basename in          case $cc_basename in
11152            CC*)            CC)
11153              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11154              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11155              if test "$host_cpu" != ia64; then              if test "$host_cpu" != ia64; then
11156                lt_prog_compiler_pic_CXX='+Z'                lt_prog_compiler_pic_CXX='+Z'
11157              fi              fi
11158              ;;              ;;
11159            aCC*)            aCC)
11160              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11161              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11162              case "$host_cpu" in              case "$host_cpu" in
# Line 11353  echo $ECHO_N "checking for $compiler opt Line 11174  echo $ECHO_N "checking for $compiler opt
11174          ;;          ;;
11175        irix5* | irix6* | nonstopux*)        irix5* | irix6* | nonstopux*)
11176          case $cc_basename in          case $cc_basename in
11177            CC*)            CC)
11178              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11179              lt_prog_compiler_static_CXX='-non_shared'              lt_prog_compiler_static_CXX='-non_shared'
11180              # CC pic flag -KPIC is the default.              # CC pic flag -KPIC is the default.
# Line 11364  echo $ECHO_N "checking for $compiler opt Line 11185  echo $ECHO_N "checking for $compiler opt
11185          ;;          ;;
11186        linux*)        linux*)
11187          case $cc_basename in          case $cc_basename in
11188            KCC*)            KCC)
11189              # KAI C++ Compiler              # KAI C++ Compiler
11190              lt_prog_compiler_wl_CXX='--backend -Wl,'              lt_prog_compiler_wl_CXX='--backend -Wl,'
11191              lt_prog_compiler_pic_CXX='-fPIC'              lt_prog_compiler_pic_CXX='-fPIC'
11192              ;;              ;;
11193            icpc* | ecpc*)            icpc)
11194              # Intel C++              # Intel C++
11195              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11196              lt_prog_compiler_pic_CXX='-KPIC'              lt_prog_compiler_pic_CXX='-KPIC'
11197              lt_prog_compiler_static_CXX='-static'              lt_prog_compiler_static_CXX='-static'
11198              ;;              ;;
11199            pgCC*)            cxx)
             # Portland Group C++ compiler.  
             lt_prog_compiler_wl_CXX='-Wl,'  
             lt_prog_compiler_pic_CXX='-fpic'  
             lt_prog_compiler_static_CXX='-static'  
             ;;  
           cxx*)  
11200              # Compaq C++              # Compaq C++
11201              # Make sure the PIC flag is empty.  It appears that all Alpha              # Make sure the PIC flag is empty.  It appears that all Alpha
11202              # Linux and Compaq Tru64 Unix objects are PIC.              # Linux and Compaq Tru64 Unix objects are PIC.
# Line 11398  echo $ECHO_N "checking for $compiler opt Line 11213  echo $ECHO_N "checking for $compiler opt
11213          ;;          ;;
11214        mvs*)        mvs*)
11215          case $cc_basename in          case $cc_basename in
11216            cxx*)            cxx)
11217              lt_prog_compiler_pic_CXX='-W c,exportall'              lt_prog_compiler_pic_CXX='-W c,exportall'
11218              ;;              ;;
11219            *)            *)
# Line 11409  echo $ECHO_N "checking for $compiler opt Line 11224  echo $ECHO_N "checking for $compiler opt
11224          ;;          ;;
11225        osf3* | osf4* | osf5*)        osf3* | osf4* | osf5*)
11226          case $cc_basename in          case $cc_basename in
11227            KCC*)            KCC)
11228              lt_prog_compiler_wl_CXX='--backend -Wl,'              lt_prog_compiler_wl_CXX='--backend -Wl,'
11229              ;;              ;;
11230            RCC*)            RCC)
11231              # Rational C++ 2.4.1              # Rational C++ 2.4.1
11232              lt_prog_compiler_pic_CXX='-pic'              lt_prog_compiler_pic_CXX='-pic'
11233              ;;              ;;
11234            cxx*)            cxx)
11235              # Digital/Compaq C++              # Digital/Compaq C++
11236              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11237              # Make sure the PIC flag is empty.  It appears that all Alpha              # Make sure the PIC flag is empty.  It appears that all Alpha
# Line 11432  echo $ECHO_N "checking for $compiler opt Line 11247  echo $ECHO_N "checking for $compiler opt
11247          ;;          ;;
11248        sco*)        sco*)
11249          case $cc_basename in          case $cc_basename in
11250            CC*)            CC)
11251              lt_prog_compiler_pic_CXX='-fPIC'              lt_prog_compiler_pic_CXX='-fPIC'
11252              ;;              ;;
11253            *)            *)
# Line 11441  echo $ECHO_N "checking for $compiler opt Line 11256  echo $ECHO_N "checking for $compiler opt
11256          ;;          ;;
11257        solaris*)        solaris*)
11258          case $cc_basename in          case $cc_basename in
11259            CC*)            CC)
11260              # Sun C++ 4.2, 5.x and Centerline C++              # Sun C++ 4.2, 5.x and Centerline C++
11261              lt_prog_compiler_pic_CXX='-KPIC'              lt_prog_compiler_pic_CXX='-KPIC'
11262              lt_prog_compiler_static_CXX='-Bstatic'              lt_prog_compiler_static_CXX='-Bstatic'
11263              lt_prog_compiler_wl_CXX='-Qoption ld '              lt_prog_compiler_wl_CXX='-Qoption ld '
11264              ;;              ;;
11265            gcx*)            gcx)
11266              # Green Hills C++ Compiler              # Green Hills C++ Compiler
11267              lt_prog_compiler_pic_CXX='-PIC'              lt_prog_compiler_pic_CXX='-PIC'
11268              ;;              ;;
# Line 11457  echo $ECHO_N "checking for $compiler opt Line 11272  echo $ECHO_N "checking for $compiler opt
11272          ;;          ;;
11273        sunos4*)        sunos4*)
11274          case $cc_basename in          case $cc_basename in
11275            CC*)            CC)
11276              # Sun C++ 4.x              # Sun C++ 4.x
11277              lt_prog_compiler_pic_CXX='-pic'              lt_prog_compiler_pic_CXX='-pic'
11278              lt_prog_compiler_static_CXX='-Bstatic'              lt_prog_compiler_static_CXX='-Bstatic'
11279              ;;              ;;
11280            lcc*)            lcc)
11281              # Lucid              # Lucid
11282              lt_prog_compiler_pic_CXX='-pic'              lt_prog_compiler_pic_CXX='-pic'
11283              ;;              ;;
# Line 11472  echo $ECHO_N "checking for $compiler opt Line 11287  echo $ECHO_N "checking for $compiler opt
11287          ;;          ;;
11288        tandem*)        tandem*)
11289          case $cc_basename in          case $cc_basename in
11290            NCC*)            NCC)
11291              # NonStop-UX NCC 3.20              # NonStop-UX NCC 3.20
11292              lt_prog_compiler_pic_CXX='-KPIC'              lt_prog_compiler_pic_CXX='-KPIC'
11293              ;;              ;;
# Line 11516  else Line 11331  else
11331     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11332     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11333     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
11334     (eval echo "\"\$as_me:11519: $lt_compile\"" >&5)     (eval echo "\"\$as_me:11334: $lt_compile\"" >&5)
11335     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
11336     ac_status=$?     ac_status=$?
11337     cat conftest.err >&5     cat conftest.err >&5
11338     echo "$as_me:11523: \$? = $ac_status" >&5     echo "$as_me:11338: \$? = $ac_status" >&5
11339     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
11340       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
11341       # So say no if there are warnings other than the usual output.       # So say no if there are warnings
11342       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       if test ! -s conftest.err; then
      $SED '/^$/d' conftest.err >conftest.er2  
      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then  
11343         lt_prog_compiler_pic_works_CXX=yes         lt_prog_compiler_pic_works_CXX=yes
11344       fi       fi
11345     fi     fi
# Line 11578  else Line 11391  else
11391     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11392     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11393     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
11394     (eval echo "\"\$as_me:11581: $lt_compile\"" >&5)     (eval echo "\"\$as_me:11394: $lt_compile\"" >&5)
11395     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
11396     ac_status=$?     ac_status=$?
11397     cat out/conftest.err >&5     cat out/conftest.err >&5
11398     echo "$as_me:11585: \$? = $ac_status" >&5     echo "$as_me:11398: \$? = $ac_status" >&5
11399     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
11400     then     then
11401       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
11402       # So say no if there are warnings       # So say no if there are warnings
11403       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       if test ! -s out/conftest.err; then
      $SED '/^$/d' out/conftest.err >out/conftest.er2  
      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then  
11404         lt_cv_prog_compiler_c_o_CXX=yes         lt_cv_prog_compiler_c_o_CXX=yes
11405       fi       fi
11406     fi     fi
# Line 11648  echo $ECHO_N "checking whether the $comp Line 11459  echo $ECHO_N "checking whether the $comp
11459      export_symbols_cmds_CXX="$ltdll_cmds"      export_symbols_cmds_CXX="$ltdll_cmds"
11460    ;;    ;;
11461    cygwin* | mingw*)    cygwin* | mingw*)
11462      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11463    ;;    ;;
11464    *)    *)
11465      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
# Line 11828  beos*) Line 11639  beos*)
11639    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
11640    ;;    ;;
11641    
11642  bsdi[45]*)  bsdi4*)
11643    version_type=linux    version_type=linux
11644    need_version=no    need_version=no
11645    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 11886  cygwin* | mingw* | pw32*) Line 11697  cygwin* | mingw* | pw32*)
11697        ;;        ;;
11698      pw32*)      pw32*)
11699        # pw32 DLLs use 'pw' prefix rather than 'lib'        # pw32 DLLs use 'pw' prefix rather than 'lib'
11700        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11701        ;;        ;;
11702      esac      esac
11703      ;;      ;;
# Line 11944  kfreebsd*-gnu) Line 11755  kfreebsd*-gnu)
11755    dynamic_linker='GNU ld.so'    dynamic_linker='GNU ld.so'
11756    ;;    ;;
11757    
11758  freebsd* | dragonfly*)  freebsd*)
   # DragonFly does not have aout.  When/if they implement a new  
   # versioning mechanism, adjust this.  
11759    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11760    version_type=freebsd-$objformat    version_type=freebsd-$objformat
11761    case $version_type in    case $version_type in
# Line 11965  freebsd* | dragonfly*) Line 11774  freebsd* | dragonfly*)
11774    freebsd2*)    freebsd2*)
11775      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
11776      ;;      ;;
11777    freebsd3.[01]* | freebsdelf3.[01]*)    freebsd3.01* | freebsdelf3.01*)
11778      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
11779      hardcode_into_libs=yes      hardcode_into_libs=yes
11780      ;;      ;;
# Line 12089  linux*) Line 11898  linux*)
11898    # before this can be enabled.    # before this can be enabled.
11899    hardcode_into_libs=yes    hardcode_into_libs=yes
11900    
   # find out which ABI we are using  
11901    libsuff=    libsuff=
11902    case "$host_cpu" in    if test "$lt_cv_cc_lib64_suffix" = "yes"; then
11903    x86_64*|s390x*|powerpc64*)      libsuff=64
11904      echo '#line 12096 "configure"' > conftest.$ac_ext    fi
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
       case `/usr/bin/file conftest.$ac_objext` in  
       *64-bit*)  
         libsuff=64  
         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  
         ;;  
       esac  
     fi  
     rm -rf conftest*  
     ;;  
   esac  
11905    
11906    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
11907    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
11908      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`      lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11909      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
11910        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
11911    fi    fi
11912    
11913    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
# Line 12175  nto-qnx*) Line 11969  nto-qnx*)
11969  openbsd*)  openbsd*)
11970    version_type=sunos    version_type=sunos
11971    need_lib_prefix=no    need_lib_prefix=no
11972    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    need_version=yes
   case $host_os in  
     openbsd3.3 | openbsd3.3.*) need_version=yes ;;  
     *)                         need_version=no  ;;  
   esac  
11973    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11974    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11975    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 12301  echo "$as_me:$LINENO: checking how to ha Line 12091  echo "$as_me:$LINENO: checking how to ha
12091  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12092  hardcode_action_CXX=  hardcode_action_CXX=
12093  if test -n "$hardcode_libdir_flag_spec_CXX" || \  if test -n "$hardcode_libdir_flag_spec_CXX" || \
12094     test -n "$runpath_var_CXX" || \     test -n "$runpath_var CXX" || \
12095     test "X$hardcode_automatic_CXX" = "Xyes" ; then     test "X$hardcode_automatic_CXX"="Xyes" ; then
12096    
12097    # We can hardcode non-existant directories.    # We can hardcode non-existant directories.
12098    if test "$hardcode_direct_CXX" != no &&    if test "$hardcode_direct_CXX" != no &&
# Line 12968  else Line 12758  else
12758    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12759    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
12760    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
12761  #line 12971 "configure"  #line 12761 "configure"
12762  #include "confdefs.h"  #include "confdefs.h"
12763    
12764  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 13066  else Line 12856  else
12856    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12857    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
12858    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
12859  #line 13069 "configure"  #line 12859 "configure"
12860  #include "confdefs.h"  #include "confdefs.h"
12861    
12862  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 13284  fast_install=$enable_fast_install Line 13074  fast_install=$enable_fast_install
13074  # The host system.  # The host system.
13075  host_alias=$host_alias  host_alias=$host_alias
13076  host=$host  host=$host
 host_os=$host_os  
   
 # The build system.  
 build_alias=$build_alias  
 build=$build  
 build_os=$build_os  
13077    
13078  # An echo program that does not interpret backslashes.  # An echo program that does not interpret backslashes.
13079  echo=$lt_echo  echo=$lt_echo
# Line 13366  max_cmd_len=$lt_cv_sys_max_cmd_len Line 13150  max_cmd_len=$lt_cv_sys_max_cmd_len
13150  # Does compiler simultaneously support -c and -o options?  # Does compiler simultaneously support -c and -o options?
13151  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13152    
13153  # Must we lock files when doing compilation?  # Must we lock files when doing compilation ?
13154  need_locks=$lt_need_locks  need_locks=$lt_need_locks
13155    
13156  # Do we need the lib prefix for modules?  # Do we need the lib prefix for modules?
# Line 13647  LTCC=${LTCC-"$CC"} Line 13431  LTCC=${LTCC-"$CC"}
13431  compiler=$CC  compiler=$CC
13432    
13433    
 # save warnings/boilerplate of simple test code  
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext  
 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_compiler_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_link_test_code" >conftest.$ac_ext  
 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_linker_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
   
13434  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
13435  lt_save_CC="$CC"  lt_save_CC="$CC"
13436  CC=${F77-"f77"}  CC=${F77-"f77"}
13437  compiler=$CC  compiler=$CC
13438  compiler_F77=$CC  compiler_F77=$CC
13439  for cc_temp in $compiler""; do  cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
   
13440    
13441  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13442  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
# Line 13697  aix3*) Line 13458  aix3*)
13458    fi    fi
13459    ;;    ;;
13460  aix4* | aix5*)  aix4* | aix5*)
13461    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    test "$enable_shared" = yes && enable_static=no
     test "$enable_shared" = yes && enable_static=no  
   fi  
13462    ;;    ;;
13463  esac  esac
13464  echo "$as_me:$LINENO: result: $enable_shared" >&5  echo "$as_me:$LINENO: result: $enable_shared" >&5
# Line 13802  echo $ECHO_N "checking for $compiler opt Line 13561  echo $ECHO_N "checking for $compiler opt
13561          lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'          lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13562        fi        fi
13563        ;;        ;;
       darwin*)  
         # PIC is the default on this platform  
         # Common symbols not allowed in MH_DYLIB files  
        case $cc_basename in  
          xlc*)  
          lt_prog_compiler_pic_F77='-qnocommon'  
          lt_prog_compiler_wl_F77='-Wl,'  
          ;;  
        esac  
        ;;  
13564    
13565      mingw* | pw32* | os2*)      mingw* | pw32* | os2*)
13566        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
# Line 13847  echo $ECHO_N "checking for $compiler opt Line 13596  echo $ECHO_N "checking for $compiler opt
13596        ;;        ;;
13597    
13598      linux*)      linux*)
13599        case $cc_basename in        case $CC in
13600        icc* | ecc*)        icc* | ecc*)
13601          lt_prog_compiler_wl_F77='-Wl,'          lt_prog_compiler_wl_F77='-Wl,'
13602          lt_prog_compiler_pic_F77='-KPIC'          lt_prog_compiler_pic_F77='-KPIC'
13603          lt_prog_compiler_static_F77='-static'          lt_prog_compiler_static_F77='-static'
13604          ;;          ;;
       pgcc* | pgf77* | pgf90*)  
         # Portland Group compilers (*not* the Pentium gcc compiler,  
         # which looks to be a dead project)  
         lt_prog_compiler_wl_F77='-Wl,'  
         lt_prog_compiler_pic_F77='-fpic'  
         lt_prog_compiler_static_F77='-static'  
         ;;  
13605        ccc*)        ccc*)
13606          lt_prog_compiler_wl_F77='-Wl,'          lt_prog_compiler_wl_F77='-Wl,'
13607          # All Alpha code is PIC.          # All Alpha code is PIC.
# Line 13880  echo $ECHO_N "checking for $compiler opt Line 13622  echo $ECHO_N "checking for $compiler opt
13622        ;;        ;;
13623    
13624      solaris*)      solaris*)
13625          lt_prog_compiler_wl_F77='-Wl,'
13626        lt_prog_compiler_pic_F77='-KPIC'        lt_prog_compiler_pic_F77='-KPIC'
13627        lt_prog_compiler_static_F77='-Bstatic'        lt_prog_compiler_static_F77='-Bstatic'
       case $cc_basename in  
       f77* | f90* | f95*)  
         lt_prog_compiler_wl_F77='-Qoption ld ';;  
       *)  
         lt_prog_compiler_wl_F77='-Wl,';;  
       esac  
13628        ;;        ;;
13629    
13630      sunos4*)      sunos4*)
# Line 13909  echo $ECHO_N "checking for $compiler opt Line 13646  echo $ECHO_N "checking for $compiler opt
13646        fi        fi
13647        ;;        ;;
13648    
     unicos*)  
       lt_prog_compiler_wl_F77='-Wl,'  
       lt_prog_compiler_can_build_shared_F77=no  
       ;;  
   
13649      uts4*)      uts4*)
13650        lt_prog_compiler_pic_F77='-pic'        lt_prog_compiler_pic_F77='-pic'
13651        lt_prog_compiler_static_F77='-Bstatic'        lt_prog_compiler_static_F77='-Bstatic'
# Line 13951  else Line 13683  else
13683     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13684     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13685     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
13686     (eval echo "\"\$as_me:13954: $lt_compile\"" >&5)     (eval echo "\"\$as_me:13686: $lt_compile\"" >&5)
13687     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
13688     ac_status=$?     ac_status=$?
13689     cat conftest.err >&5     cat conftest.err >&5
13690     echo "$as_me:13958: \$? = $ac_status" >&5     echo "$as_me:13690: \$? = $ac_status" >&5
13691     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
13692       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
13693       # So say no if there are warnings other than the usual output.       # So say no if there are warnings
13694       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       if test ! -s conftest.err; then
      $SED '/^$/d' conftest.err >conftest.er2  
      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then  
13695         lt_prog_compiler_pic_works_F77=yes         lt_prog_compiler_pic_works_F77=yes
13696       fi       fi
13697     fi     fi
# Line 14013  else Line 13743  else
13743     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13744     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13745     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
13746     (eval echo "\"\$as_me:14016: $lt_compile\"" >&5)     (eval echo "\"\$as_me:13746: $lt_compile\"" >&5)
13747     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
13748     ac_status=$?     ac_status=$?
13749     cat out/conftest.err >&5     cat out/conftest.err >&5
13750     echo "$as_me:14020: \$? = $ac_status" >&5     echo "$as_me:13750: \$? = $ac_status" >&5
13751     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
13752     then     then
13753       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
13754       # So say no if there are warnings       # So say no if there are warnings
13755       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       if test ! -s out/conftest.err; then
      $SED '/^$/d' out/conftest.err >out/conftest.er2  
      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then  
13756         lt_cv_prog_compiler_c_o_F77=yes         lt_cv_prog_compiler_c_o_F77=yes
13757       fi       fi
13758     fi     fi
# Line 14104  echo $ECHO_N "checking whether the $comp Line 13832  echo $ECHO_N "checking whether the $comp
13832    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
13833    # preloaded symbol tables.    # preloaded symbol tables.
13834    extract_expsyms_cmds=    extract_expsyms_cmds=
   # Just being paranoid about ensuring that cc_basename is set.  
   for cc_temp in $compiler""; do  
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
13835    
13836    case $host_os in    case $host_os in
13837    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
# Line 14134  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 13852  cc_basename=`$echo "X$cc_temp" | $Xsed -
13852      # If archive_cmds runs LD, not CC, wlarc should be empty      # If archive_cmds runs LD, not CC, wlarc should be empty
13853      wlarc='${wl}'      wlarc='${wl}'
13854    
     # Set some defaults for GNU ld with shared library support. These  
     # are reset later if shared libraries are not supported. Putting them  
     # here allows them to be overridden if necessary.  
     runpath_var=LD_RUN_PATH  
     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'  
     export_dynamic_flag_spec_F77='${wl}--export-dynamic'  
     # ancient GNU ld didn't support --whole-archive et. al.  
     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then  
         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  
       else  
         whole_archive_flag_spec_F77=  
     fi  
     supports_anon_versioning=no  
     case `$LD -v 2>/dev/null` in  
       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11  
       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...  
       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...  
       *\ 2.11.*) ;; # other 2.11 versions  
       *) supports_anon_versioning=yes ;;  
     esac  
   
13855      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
13856      case $host_os in      case $host_os in
13857      aix3* | aix4* | aix5*)      aix3* | aix4* | aix5*)
# Line 14205  EOF Line 13902  EOF
13902        allow_undefined_flag_F77=unsupported        allow_undefined_flag_F77=unsupported
13903        always_export_symbols_F77=no        always_export_symbols_F77=no
13904        enable_shared_with_static_runtimes_F77=yes        enable_shared_with_static_runtimes_F77=yes
13905        export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'        export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13906    
13907        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13908          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
# Line 14219  EOF Line 13916  EOF
13916          fi~          fi~
13917          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13918        else        else
13919          ld_shlibs_F77=no          ld_shlibs=no
       fi  
       ;;  
   
     linux*)  
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then  
         tmp_addflag=  
         case $cc_basename,$host_cpu in  
         pgcc*)                          # Portland Group C compiler  
           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'  
           tmp_addflag=' $pic_flag'  
           ;;  
         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers  
           whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'  
           tmp_addflag=' $pic_flag -Mnomain' ;;  
         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64  
           tmp_addflag=' -i_dynamic' ;;  
         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64  
           tmp_addflag=' -i_dynamic -nofor_main' ;;  
         ifc* | ifort*)                  # Intel Fortran compiler  
           tmp_addflag=' -nofor_main' ;;  
         esac  
         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
   
         if test $supports_anon_versioning = yes; then  
           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~  
   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~  
   $echo "local: *; };" >> $output_objdir/$libname.ver~  
           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'  
         fi  
       else  
         ld_shlibs_F77=no  
13920        fi        fi
13921        ;;        ;;
13922    
# Line 14292  EOF Line 13958  EOF
13958        hardcode_shlibpath_var_F77=no        hardcode_shlibpath_var_F77=no
13959        ;;        ;;
13960    
13961      linux*)
13962        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13963            tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13964            archive_cmds_F77="$tmp_archive_cmds"
13965          supports_anon_versioning=no
13966          case `$LD -v 2>/dev/null` in
13967            *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13968            *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13969            *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13970            *\ 2.11.*) ;; # other 2.11 versions
13971            *) supports_anon_versioning=yes ;;
13972          esac
13973          if test $supports_anon_versioning = yes; then
13974            archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13975    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13976    $echo "local: *; };" >> $output_objdir/$libname.ver~
13977            $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13978          else
13979            archive_expsym_cmds_F77="$tmp_archive_cmds"
13980          fi
13981        else
13982          ld_shlibs_F77=no
13983        fi
13984        ;;
13985    
13986      *)      *)
13987        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13988          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
# Line 14302  EOF Line 13993  EOF
13993        ;;        ;;
13994      esac      esac
13995    
13996      if test "$ld_shlibs_F77" = no; then      if test "$ld_shlibs_F77" = yes; then
13997        runpath_var=        runpath_var=LD_RUN_PATH
13998        hardcode_libdir_flag_spec_F77=        hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13999        export_dynamic_flag_spec_F77=        export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14000        whole_archive_flag_spec_F77=        # ancient GNU ld didn't support --whole-archive et. al.
14001          if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14002            whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14003          else
14004            whole_archive_flag_spec_F77=
14005          fi
14006      fi      fi
14007    else    else
14008      # PORTME fill in a description of your system's linker (not GNU ld)      # PORTME fill in a description of your system's linker (not GNU ld)
# Line 14370  EOF Line 14066  EOF
14066        link_all_deplibs_F77=yes        link_all_deplibs_F77=yes
14067    
14068        if test "$GCC" = yes; then        if test "$GCC" = yes; then
14069          case $host_os in aix4.[012]|aix4.[012].*)          case $host_os in aix4.012|aix4.012.*)
14070          # We only want to do this on AIX 4.2 and lower, the check          # We only want to do this on AIX 4.2 and lower, the check
14071          # below for broken collect2 doesn't work under 4.3+          # below for broken collect2 doesn't work under 4.3+
14072            collect2name=`${CC} -print-prog-name=collect2`            collect2name=`${CC} -print-prog-name=collect2`
# Line 14391  EOF Line 14087  EOF
14087            fi            fi
14088          esac          esac
14089          shared_flag='-shared'          shared_flag='-shared'
         if test "$aix_use_runtimelinking" = yes; then  
           shared_flag="$shared_flag "'${wl}-G'  
         fi  
14090        else        else
14091          # not using gcc          # not using gcc
14092          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
# Line 14534  if test -z "$aix_libpath"; then aix_libp Line 14227  if test -z "$aix_libpath"; then aix_libp
14227        ld_shlibs_F77=no        ld_shlibs_F77=no
14228        ;;        ;;
14229    
14230      bsdi[45]*)      bsdi4*)
14231        export_dynamic_flag_spec_F77=-rdynamic        export_dynamic_flag_spec_F77=-rdynamic
14232        ;;        ;;
14233    
# Line 14555  if test -z "$aix_libpath"; then aix_libp Line 14248  if test -z "$aix_libpath"; then aix_libp
14248        old_archive_From_new_cmds_F77='true'        old_archive_From_new_cmds_F77='true'
14249        # FIXME: Should let the user specify the lib program.        # FIXME: Should let the user specify the lib program.
14250        old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'        old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14251        fix_srcfile_path_F77='`cygpath -w "$srcfile"`'        fix_srcfile_path='`cygpath -w "$srcfile"`'
14252        enable_shared_with_static_runtimes_F77=yes        enable_shared_with_static_runtimes_F77=yes
14253        ;;        ;;
14254    
14255      darwin* | rhapsody*)      darwin* | rhapsody*)
14256        if test "$GXX" = yes ; then
14257          archive_cmds_need_lc_F77=no
14258        case "$host_os" in        case "$host_os" in
14259          rhapsody* | darwin1.[012])        rhapsody* | darwin1.[012])
14260           allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'          allow_undefined_flag_F77='-undefined suppress'
14261           ;;          ;;
14262         *) # Darwin 1.3 on        *) # Darwin 1.3 on
14263           if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14264             allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'          allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14265           else        else
14266             case ${MACOSX_DEPLOYMENT_TARGET} in          case ${MACOSX_DEPLOYMENT_TARGET} in
14267               10.[012])            10.[012])
14268                 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'              allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14269                 ;;              ;;
14270               10.*)            10.*)
14271                 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'              allow_undefined_flag_F77='-undefined dynamic_lookup'
14272                 ;;              ;;
14273             esac          esac
14274           fi        fi
14275           ;;          ;;
14276        esac        esac
14277        archive_cmds_need_lc_F77=no          lt_int_apple_cc_single_mod=no
14278            output_verbose_link_cmd='echo'
14279            if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14280              lt_int_apple_cc_single_mod=yes
14281            fi
14282            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14283              archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14284            else
14285            archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14286          fi
14287          module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14288          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14289            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14290              archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14291            else
14292              archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14293            fi
14294              module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14295        hardcode_direct_F77=no        hardcode_direct_F77=no
14296        hardcode_automatic_F77=yes        hardcode_automatic_F77=yes
14297        hardcode_shlibpath_var_F77=unsupported        hardcode_shlibpath_var_F77=unsupported
14298        whole_archive_flag_spec_F77=''        whole_archive_flag_spec_F77='-all_load $convenience'
14299        link_all_deplibs_F77=yes        link_all_deplibs_F77=yes
     if test "$GCC" = yes ; then  
         output_verbose_link_cmd='echo'  
         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'  
       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
14300      else      else
14301        case $cc_basename in        ld_shlibs_F77=no
         xlc*)  
          output_verbose_link_cmd='echo'  
          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'  
          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           ;;  
        *)  
          ld_shlibs_F77=no  
           ;;  
       esac  
14302      fi      fi
14303        ;;        ;;
14304    
# Line 14639  if test -z "$aix_libpath"; then aix_libp Line 14332  if test -z "$aix_libpath"; then aix_libp
14332        ;;        ;;
14333    
14334      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14335      freebsd* | kfreebsd*-gnu | dragonfly*)      freebsd* | kfreebsd*-gnu)
14336        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'        archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14337        hardcode_libdir_flag_spec_F77='-R$libdir'        hardcode_libdir_flag_spec_F77='-R$libdir'
14338        hardcode_direct_F77=yes        hardcode_direct_F77=yes
# Line 14750  if test -z "$aix_libpath"; then aix_libp Line 14443  if test -z "$aix_libpath"; then aix_libp
14443        hardcode_shlibpath_var_F77=no        hardcode_shlibpath_var_F77=no
14444        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14445          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'  
14446          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14447          export_dynamic_flag_spec_F77='${wl}-E'          export_dynamic_flag_spec_F77='${wl}-E'
14448        else        else
# Line 14796  if test -z "$aix_libpath"; then aix_libp Line 14488  if test -z "$aix_libpath"; then aix_libp
14488          allow_undefined_flag_F77=' -expect_unresolved \*'          allow_undefined_flag_F77=' -expect_unresolved \*'
14489          archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'          archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14490          archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~          archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14491          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14492    
14493          # Both c and cxx compiler support -rpath directly          # Both c and cxx compiler support -rpath directly
14494          hardcode_libdir_flag_spec_F77='-rpath $libdir'          hardcode_libdir_flag_spec_F77='-rpath $libdir'
# Line 14815  if test -z "$aix_libpath"; then aix_libp Line 14507  if test -z "$aix_libpath"; then aix_libp
14507      solaris*)      solaris*)
14508        no_undefined_flag_F77=' -z text'        no_undefined_flag_F77=' -z text'
14509        if test "$GCC" = yes; then        if test "$GCC" = yes; then
         wlarc='${wl}'  
14510          archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14511          archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14512            $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'            $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14513        else        else
         wlarc=''  
14514          archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'          archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14515          archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14516          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
# Line 14829  if test -z "$aix_libpath"; then aix_libp Line 14519  if test -z "$aix_libpath"; then aix_libp
14519        hardcode_shlibpath_var_F77=no        hardcode_shlibpath_var_F77=no
14520        case $host_os in        case $host_os in
14521        solaris2.[0-5] | solaris2.[0-5].*) ;;        solaris2.[0-5] | solaris2.[0-5].*) ;;
14522        *)        *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14523          # The compiler driver will combine linker options so we          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
         # cannot just pass the convience library names through  
         # without $wl, iff we do not link with $LD.  
         # Luckily, gcc supports the same syntax we need for Sun Studio.  
         # Supported since Solaris 2.6 (maybe 2.5.1?)  
         case $wlarc in  
         '')  
           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;  
         *)  
           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;  
         esac ;;  
14524        esac        esac
14525        link_all_deplibs_F77=yes        link_all_deplibs_F77=yes
14526        ;;        ;;
# Line 15114  beos*) Line 14794  beos*)
14794    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
14795    ;;    ;;
14796    
14797  bsdi[45]*)  bsdi4*)
14798    version_type=linux    version_type=linux
14799    need_version=no    need_version=no
14800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 15172  cygwin* | mingw* | pw32*) Line 14852  cygwin* | mingw* | pw32*)
14852        ;;        ;;
14853      pw32*)      pw32*)
14854        # pw32 DLLs use 'pw' prefix rather than 'lib'        # pw32 DLLs use 'pw' prefix rather than 'lib'
14855        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14856        ;;        ;;
14857      esac      esac
14858      ;;      ;;
# Line 15230  kfreebsd*-gnu) Line 14910  kfreebsd*-gnu)
14910    dynamic_linker='GNU ld.so'    dynamic_linker='GNU ld.so'
14911    ;;    ;;
14912    
14913  freebsd* | dragonfly*)  freebsd*)
   # DragonFly does not have aout.  When/if they implement a new  
   # versioning mechanism, adjust this.  
14914    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14915    version_type=freebsd-$objformat    version_type=freebsd-$objformat
14916    case $version_type in    case $version_type in
# Line 15251  freebsd* | dragonfly*) Line 14929  freebsd* | dragonfly*)
14929    freebsd2*)    freebsd2*)
14930      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
14931      ;;      ;;
14932    freebsd3.[01]* | freebsdelf3.[01]*)    freebsd3.01* | freebsdelf3.01*)
14933      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
14934      hardcode_into_libs=yes      hardcode_into_libs=yes
14935      ;;      ;;
# Line 15375  linux*) Line 15053  linux*)
15053    # before this can be enabled.    # before this can be enabled.
15054    hardcode_into_libs=yes    hardcode_into_libs=yes
15055    
   # find out which ABI we are using  
15056    libsuff=    libsuff=
15057    case "$host_cpu" in    if test "$lt_cv_cc_lib64_suffix" = "yes"; then
15058    x86_64*|s390x*|powerpc64*)      libsuff=64
15059      echo '#line 15382 "configure"' > conftest.$ac_ext    fi
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
       case `/usr/bin/file conftest.$ac_objext` in  
       *64-bit*)  
         libsuff=64  
         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  
         ;;  
       esac  
     fi  
     rm -rf conftest*  
     ;;  
   esac  
15060    
15061    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
15062    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
15063      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`      lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15064      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
15065        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
15066    fi    fi
15067    
15068    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
# Line 15461  nto-qnx*) Line 15124  nto-qnx*)
15124  openbsd*)  openbsd*)
15125    version_type=sunos    version_type=sunos
15126    need_lib_prefix=no    need_lib_prefix=no
15127    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    need_version=yes
   case $host_os in  
     openbsd3.3 | openbsd3.3.*) need_version=yes ;;  
     *)                         need_version=no  ;;  
   esac  
15128    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15129    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15130    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 15587  echo "$as_me:$LINENO: checking how to ha Line 15246  echo "$as_me:$LINENO: checking how to ha
15246  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15247  hardcode_action_F77=  hardcode_action_F77=
15248  if test -n "$hardcode_libdir_flag_spec_F77" || \  if test -n "$hardcode_libdir_flag_spec_F77" || \
15249     test -n "$runpath_var_F77" || \     test -n "$runpath_var F77" || \
15250     test "X$hardcode_automatic_F77" = "Xyes" ; then     test "X$hardcode_automatic_F77"="Xyes" ; then
15251    
15252    # We can hardcode non-existant directories.    # We can hardcode non-existant directories.
15253    if test "$hardcode_direct_F77" != no &&    if test "$hardcode_direct_F77" != no &&
# Line 15765  fast_install=$enable_fast_install Line 15424  fast_install=$enable_fast_install
15424  # The host system.  # The host system.
15425  host_alias=$host_alias  host_alias=$host_alias
15426  host=$host  host=$host
 host_os=$host_os  
   
 # The build system.  
 build_alias=$build_alias  
 build=$build  
 build_os=$build_os  
15427    
15428  # An echo program that does not interpret backslashes.  # An echo program that does not interpret backslashes.
15429  echo=$lt_echo  echo=$lt_echo
# Line 15847  max_cmd_len=$lt_cv_sys_max_cmd_len Line 15500  max_cmd_len=$lt_cv_sys_max_cmd_len
15500  # Does compiler simultaneously support -c and -o options?  # Does compiler simultaneously support -c and -o options?
15501  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15502    
15503  # Must we lock files when doing compilation?  # Must we lock files when doing compilation ?
15504  need_locks=$lt_need_locks  need_locks=$lt_need_locks
15505    
15506  # Do we need the lib prefix for modules?  # Do we need the lib prefix for modules?
# Line 16085  objext_GCJ=$objext Line 15738  objext_GCJ=$objext
15738  lt_simple_compile_test_code="class foo {}\n"  lt_simple_compile_test_code="class foo {}\n"
15739    
15740  # Code to be used in simple link tests  # Code to be used in simple link tests
15741  lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'  lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15742    
15743  # ltmain only uses $CC for tagged configurations so make sure $CC is set.  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15744    
# Line 16096  LTCC=${LTCC-"$CC"} Line 15749  LTCC=${LTCC-"$CC"}
15749  compiler=$CC  compiler=$CC
15750    
15751    
 # save warnings/boilerplate of simple test code  
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext  
 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_compiler_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_link_test_code" >conftest.$ac_ext  
 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_linker_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
   
15752  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
15753  lt_save_CC="$CC"  lt_save_CC="$CC"
15754  CC=${GCJ-"gcj"}  CC=${GCJ-"gcj"}
15755  compiler=$CC  compiler=$CC
15756  compiler_GCJ=$CC  compiler_GCJ=$CC
 for cc_temp in $compiler""; do  
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
   
15757    
15758  # GCJ did not exist at the time GCC didn't implicitly link libc in.  # GCJ did not exist at the time GCC didn't implicitly link libc in.
15759  archive_cmds_need_lc_GCJ=no  archive_cmds_need_lc_GCJ=no
15760    
 old_archive_cmds_GCJ=$old_archive_cmds  
   
15761    
15762  lt_prog_compiler_no_builtin_flag_GCJ=  lt_prog_compiler_no_builtin_flag_GCJ=
15763    
# Line 16156  else Line 15783  else
15783     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15784     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15785     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
15786     (eval echo "\"\$as_me:16159: $lt_compile\"" >&5)     (eval echo "\"\$as_me:15786: $lt_compile\"" >&5)
15787     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
15788     ac_status=$?     ac_status=$?
15789     cat conftest.err >&5     cat conftest.err >&5
15790     echo "$as_me:16163: \$? = $ac_status" >&5     echo "$as_me:15790: \$? = $ac_status" >&5
15791     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
15792       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
15793       # So say no if there are warnings other than the usual output.       # So say no if there are warnings
15794       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       if test ! -s conftest.err; then
      $SED '/^$/d' conftest.err >conftest.er2  
      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then  
15795         lt_cv_prog_compiler_rtti_exceptions=yes         lt_cv_prog_compiler_rtti_exceptions=yes
15796       fi       fi
15797     fi     fi
# Line 16269  echo $ECHO_N "checking for $compiler opt Line 15894  echo $ECHO_N "checking for $compiler opt
15894          lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'          lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15895        fi        fi
15896        ;;        ;;
       darwin*)  
         # PIC is the default on this platform  
         # Common symbols not allowed in MH_DYLIB files  
        case $cc_basename in  
          xlc*)  
          lt_prog_compiler_pic_GCJ='-qnocommon'  
          lt_prog_compiler_wl_GCJ='-Wl,'  
          ;;  
        esac  
        ;;  
15897    
15898      mingw* | pw32* | os2*)      mingw* | pw32* | os2*)
15899        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
# Line 16314  echo $ECHO_N "checking for $compiler opt Line 15929  echo $ECHO_N "checking for $compiler opt
15929        ;;        ;;
15930    
15931      linux*)      linux*)
15932        case $cc_basename in        case $CC in
15933        icc* | ecc*)        icc* | ecc*)
15934          lt_prog_compiler_wl_GCJ='-Wl,'          lt_prog_compiler_wl_GCJ='-Wl,'
15935          lt_prog_compiler_pic_GCJ='-KPIC'          lt_prog_compiler_pic_GCJ='-KPIC'
15936          lt_prog_compiler_static_GCJ='-static'          lt_prog_compiler_static_GCJ='-static'
15937          ;;          ;;
       pgcc* | pgf77* | pgf90*)  
         # Portland Group compilers (*not* the Pentium gcc compiler,  
         # which looks to be a dead project)  
         lt_prog_compiler_wl_GCJ='-Wl,'  
         lt_prog_compiler_pic_GCJ='-fpic'  
         lt_prog_compiler_static_GCJ='-static'  
         ;;  
15938        ccc*)        ccc*)
15939          lt_prog_compiler_wl_GCJ='-Wl,'          lt_prog_compiler_wl_GCJ='-Wl,'
15940          # All Alpha code is PIC.          # All Alpha code is PIC.
# Line 16347  echo $ECHO_N "checking for $compiler opt Line 15955  echo $ECHO_N "checking for $compiler opt
15955        ;;        ;;
15956    
15957      solaris*)      solaris*)
15958          lt_prog_compiler_wl_GCJ='-Wl,'
15959        lt_prog_compiler_pic_GCJ='-KPIC'        lt_prog_compiler_pic_GCJ='-KPIC'
15960        lt_prog_compiler_static_GCJ='-Bstatic'        lt_prog_compiler_static_GCJ='-Bstatic'
       case $cc_basename in  
       f77* | f90* | f95*)  
         lt_prog_compiler_wl_GCJ='-Qoption ld ';;  
       *)  
         lt_prog_compiler_wl_GCJ='-Wl,';;  
       esac  
15961        ;;        ;;
15962    
15963      sunos4*)      sunos4*)
# Line 16376  echo $ECHO_N "checking for $compiler opt Line 15979  echo $ECHO_N "checking for $compiler opt
15979        fi        fi
15980        ;;        ;;
15981    
     unicos*)  
       lt_prog_compiler_wl_GCJ='-Wl,'  
       lt_prog_compiler_can_build_shared_GCJ=no  
       ;;  
   
15982      uts4*)      uts4*)
15983        lt_prog_compiler_pic_GCJ='-pic'        lt_prog_compiler_pic_GCJ='-pic'
15984        lt_prog_compiler_static_GCJ='-Bstatic'        lt_prog_compiler_static_GCJ='-Bstatic'
# Line 16418  else Line 16016  else
16016     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16017     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16018     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
16019     (eval echo "\"\$as_me:16421: $lt_compile\"" >&5)     (eval echo "\"\$as_me:16019: $lt_compile\"" >&5)
16020     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
16021     ac_status=$?     ac_status=$?
16022     cat conftest.err >&5     cat conftest.err >&5
16023     echo "$as_me:16425: \$? = $ac_status" >&5     echo "$as_me:16023: \$? = $ac_status" >&5
16024     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
16025       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
16026       # So say no if there are warnings other than the usual output.       # So say no if there are warnings
16027       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       if test ! -s conftest.err; then
      $SED '/^$/d' conftest.err >conftest.er2  
      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then  
16028         lt_prog_compiler_pic_works_GCJ=yes         lt_prog_compiler_pic_works_GCJ=yes
16029       fi       fi
16030     fi     fi
# Line 16480  else Line 16076  else
16076     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16077     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16078     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
16079     (eval echo "\"\$as_me:16483: $lt_compile\"" >&5)     (eval echo "\"\$as_me:16079: $lt_compile\"" >&5)
16080     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
16081     ac_status=$?     ac_status=$?
16082     cat out/conftest.err >&5     cat out/conftest.err >&5
16083     echo "$as_me:16487: \$? = $ac_status" >&5     echo "$as_me:16083: \$? = $ac_status" >&5
16084     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
16085     then     then
16086       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
16087       # So say no if there are warnings       # So say no if there are warnings
16088       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       if test ! -s out/conftest.err; then
      $SED '/^$/d' out/conftest.err >out/conftest.er2  
      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then  
16089         lt_cv_prog_compiler_c_o_GCJ=yes         lt_cv_prog_compiler_c_o_GCJ=yes
16090       fi       fi
16091     fi     fi
# Line 16571  echo $ECHO_N "checking whether the $comp Line 16165  echo $ECHO_N "checking whether the $comp
16165    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
16166    # preloaded symbol tables.    # preloaded symbol tables.
16167    extract_expsyms_cmds=    extract_expsyms_cmds=
   # Just being paranoid about ensuring that cc_basename is set.  
   for cc_temp in $compiler""; do  
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
16168    
16169    case $host_os in    case $host_os in
16170    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
# Line 16601  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 16185  cc_basename=`$echo "X$cc_temp" | $Xsed -
16185      # If archive_cmds runs LD, not CC, wlarc should be empty      # If archive_cmds runs LD, not CC, wlarc should be empty
16186      wlarc='${wl}'      wlarc='${wl}'
16187    
     # Set some defaults for GNU ld with shared library support. These  
     # are reset later if shared libraries are not supported. Putting them  
     # here allows them to be overridden if necessary.  
     runpath_var=LD_RUN_PATH  
     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'  
     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'  
     # ancient GNU ld didn't support --whole-archive et. al.  
     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then  
         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  
       else  
         whole_archive_flag_spec_GCJ=  
     fi  
     supports_anon_versioning=no  
     case `$LD -v 2>/dev/null` in  
       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11  
       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...  
       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...  
       *\ 2.11.*) ;; # other 2.11 versions  
       *) supports_anon_versioning=yes ;;  
     esac  
   
16188      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
16189      case $host_os in      case $host_os in
16190      aix3* | aix4* | aix5*)      aix3* | aix4* | aix5*)
# Line 16672  EOF Line 16235  EOF
16235        allow_undefined_flag_GCJ=unsupported        allow_undefined_flag_GCJ=unsupported
16236        always_export_symbols_GCJ=no        always_export_symbols_GCJ=no
16237        enable_shared_with_static_runtimes_GCJ=yes        enable_shared_with_static_runtimes_GCJ=yes
16238        export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'        export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16239    
16240        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16241          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
# Line 16686  EOF Line 16249  EOF
16249          fi~          fi~
16250          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16251        else        else
16252          ld_shlibs_GCJ=no          ld_shlibs=no
       fi  
       ;;  
   
     linux*)  
       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then  
         tmp_addflag=  
         case $cc_basename,$host_cpu in  
         pgcc*)                          # Portland Group C compiler  
           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'  
           tmp_addflag=' $pic_flag'  
           ;;  
         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers  
           whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'  
           tmp_addflag=' $pic_flag -Mnomain' ;;  
         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64  
           tmp_addflag=' -i_dynamic' ;;  
         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64  
           tmp_addflag=' -i_dynamic -nofor_main' ;;  
         ifc* | ifort*)                  # Intel Fortran compiler  
           tmp_addflag=' -nofor_main' ;;  
         esac  
         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
   
         if test $supports_anon_versioning = yes; then  
           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~  
   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~  
   $echo "local: *; };" >> $output_objdir/$libname.ver~  
           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'  
         fi  
       else  
         ld_shlibs_GCJ=no  
16253        fi        fi
16254        ;;        ;;
16255    
# Line 16759  EOF Line 16291  EOF
16291        hardcode_shlibpath_var_GCJ=no        hardcode_shlibpath_var_GCJ=no
16292        ;;        ;;
16293    
16294      linux*)
16295        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16296            tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16297            archive_cmds_GCJ="$tmp_archive_cmds"
16298          supports_anon_versioning=no
16299          case `$LD -v 2>/dev/null` in
16300            *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16301            *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16302            *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16303            *\ 2.11.*) ;; # other 2.11 versions
16304            *) supports_anon_versioning=yes ;;
16305          esac
16306          if test $supports_anon_versioning = yes; then
16307            archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16308    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16309    $echo "local: *; };" >> $output_objdir/$libname.ver~
16310            $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16311          else
16312            archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16313          fi
16314        else
16315          ld_shlibs_GCJ=no
16316        fi
16317        ;;
16318    
16319      *)      *)
16320        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16321          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
# Line 16769  EOF Line 16326  EOF
16326        ;;        ;;
16327      esac      esac
16328    
16329      if test "$ld_shlibs_GCJ" = no; then      if test "$ld_shlibs_GCJ" = yes; then
16330        runpath_var=        runpath_var=LD_RUN_PATH
16331        hardcode_libdir_flag_spec_GCJ=        hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16332        export_dynamic_flag_spec_GCJ=        export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16333        whole_archive_flag_spec_GCJ=        # ancient GNU ld didn't support --whole-archive et. al.
16334          if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16335            whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16336          else
16337            whole_archive_flag_spec_GCJ=
16338          fi
16339      fi      fi
16340    else    else
16341      # PORTME fill in a description of your system's linker (not GNU ld)      # PORTME fill in a description of your system's linker (not GNU ld)
# Line 16837  EOF Line 16399  EOF
16399        link_all_deplibs_GCJ=yes        link_all_deplibs_GCJ=yes
16400    
16401        if test "$GCC" = yes; then        if test "$GCC" = yes; then
16402          case $host_os in aix4.[012]|aix4.[012].*)          case $host_os in aix4.012|aix4.012.*)
16403          # We only want to do this on AIX 4.2 and lower, the check          # We only want to do this on AIX 4.2 and lower, the check
16404          # below for broken collect2 doesn't work under 4.3+          # below for broken collect2 doesn't work under 4.3+
16405            collect2name=`${CC} -print-prog-name=collect2`            collect2name=`${CC} -print-prog-name=collect2`
# Line 16858  EOF Line 16420  EOF
16420            fi            fi
16421          esac          esac
16422          shared_flag='-shared'          shared_flag='-shared'
         if test "$aix_use_runtimelinking" = yes; then  
           shared_flag="$shared_flag "'${wl}-G'  
         fi  
16423        else        else
16424          # not using gcc          # not using gcc
16425          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
# Line 17021  if test -z "$aix_libpath"; then aix_libp Line 16580  if test -z "$aix_libpath"; then aix_libp
16580        ld_shlibs_GCJ=no        ld_shlibs_GCJ=no
16581        ;;        ;;
16582    
16583      bsdi[45]*)      bsdi4*)
16584        export_dynamic_flag_spec_GCJ=-rdynamic        export_dynamic_flag_spec_GCJ=-rdynamic
16585        ;;        ;;
16586    
# Line 17042  if test -z "$aix_libpath"; then aix_libp Line 16601  if test -z "$aix_libpath"; then aix_libp
16601        old_archive_From_new_cmds_GCJ='true'        old_archive_From_new_cmds_GCJ='true'
16602        # FIXME: Should let the user specify the lib program.        # FIXME: Should let the user specify the lib program.
16603        old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'        old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16604        fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'        fix_srcfile_path='`cygpath -w "$srcfile"`'
16605        enable_shared_with_static_runtimes_GCJ=yes        enable_shared_with_static_runtimes_GCJ=yes
16606        ;;        ;;
16607    
16608      darwin* | rhapsody*)      darwin* | rhapsody*)
16609        if test "$GXX" = yes ; then
16610          archive_cmds_need_lc_GCJ=no
16611        case "$host_os" in        case "$host_os" in
16612          rhapsody* | darwin1.[012])        rhapsody* | darwin1.[012])
16613           allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'          allow_undefined_flag_GCJ='-undefined suppress'
16614           ;;          ;;
16615         *) # Darwin 1.3 on        *) # Darwin 1.3 on
16616           if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then        if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16617             allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'          allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16618           else        else
16619             case ${MACOSX_DEPLOYMENT_TARGET} in          case ${MACOSX_DEPLOYMENT_TARGET} in
16620               10.[012])            10.[012])
16621                 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'              allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16622                 ;;              ;;
16623               10.*)            10.*)
16624                 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'              allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16625                 ;;              ;;
16626             esac          esac
16627           fi        fi
16628           ;;          ;;
16629        esac        esac
16630        archive_cmds_need_lc_GCJ=no          lt_int_apple_cc_single_mod=no
16631            output_verbose_link_cmd='echo'
16632            if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16633              lt_int_apple_cc_single_mod=yes
16634            fi
16635            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16636              archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16637            else
16638            archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16639          fi
16640          module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16641          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16642            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16643              archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16644            else
16645              archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16646            fi
16647              module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16648        hardcode_direct_GCJ=no        hardcode_direct_GCJ=no
16649        hardcode_automatic_GCJ=yes        hardcode_automatic_GCJ=yes
16650        hardcode_shlibpath_var_GCJ=unsupported        hardcode_shlibpath_var_GCJ=unsupported
16651        whole_archive_flag_spec_GCJ=''        whole_archive_flag_spec_GCJ='-all_load $convenience'
16652        link_all_deplibs_GCJ=yes        link_all_deplibs_GCJ=yes
     if test "$GCC" = yes ; then  
         output_verbose_link_cmd='echo'  
         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'  
       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
16653      else      else
16654        case $cc_basename in        ld_shlibs_GCJ=no
         xlc*)  
          output_verbose_link_cmd='echo'  
          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'  
          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's  
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           ;;  
        *)  
          ld_shlibs_GCJ=no  
           ;;  
       esac  
16655      fi      fi
16656        ;;        ;;
16657    
# Line 17126  if test -z "$aix_libpath"; then aix_libp Line 16685  if test -z "$aix_libpath"; then aix_libp
16685        ;;        ;;
16686    
16687      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16688      freebsd* | kfreebsd*-gnu | dragonfly*)      freebsd* | kfreebsd*-gnu)
16689        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16690        hardcode_libdir_flag_spec_GCJ='-R$libdir'        hardcode_libdir_flag_spec_GCJ='-R$libdir'
16691        hardcode_direct_GCJ=yes        hardcode_direct_GCJ=yes
# Line 17237  if test -z "$aix_libpath"; then aix_libp Line 16796  if test -z "$aix_libpath"; then aix_libp
16796        hardcode_shlibpath_var_GCJ=no        hardcode_shlibpath_var_GCJ=no
16797        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16798          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'  
16799          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16800          export_dynamic_flag_spec_GCJ='${wl}-E'          export_dynamic_flag_spec_GCJ='${wl}-E'
16801        else        else
# Line 17283  if test -z "$aix_libpath"; then aix_libp Line 16841  if test -z "$aix_libpath"; then aix_libp
16841          allow_undefined_flag_GCJ=' -expect_unresolved \*'          allow_undefined_flag_GCJ=' -expect_unresolved \*'
16842          archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'          archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16843          archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~          archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16844          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'          $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16845    
16846          # Both c and cxx compiler support -rpath directly          # Both c and cxx compiler support -rpath directly
16847          hardcode_libdir_flag_spec_GCJ='-rpath $libdir'          hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
# Line 17302  if test -z "$aix_libpath"; then aix_libp Line 16860  if test -z "$aix_libpath"; then aix_libp
16860      solaris*)      solaris*)
16861        no_undefined_flag_GCJ=' -z text'        no_undefined_flag_GCJ=' -z text'
16862        if test "$GCC" = yes; then        if test "$GCC" = yes; then
         wlarc='${wl}'  
16863          archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16864          archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16865            $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'            $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16866        else        else
         wlarc=''  
16867          archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'          archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16868          archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16869          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
# Line 17316  if test -z "$aix_libpath"; then aix_libp Line 16872  if test -z "$aix_libpath"; then aix_libp
16872        hardcode_shlibpath_var_GCJ=no        hardcode_shlibpath_var_GCJ=no
16873        case $host_os in        case $host_os in
16874        solaris2.[0-5] | solaris2.[0-5].*) ;;        solaris2.[0-5] | solaris2.[0-5].*) ;;
16875        *)        *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16876          # The compiler driver will combine linker options so we          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
         # cannot just pass the convience library names through  
         # without $wl, iff we do not link with $LD.  
         # Luckily, gcc supports the same syntax we need for Sun Studio.  
         # Supported since Solaris 2.6 (maybe 2.5.1?)  
         case $wlarc in  
         '')  
           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;  
         *)  
           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;  
         esac ;;  
16877        esac        esac
16878        link_all_deplibs_GCJ=yes        link_all_deplibs_GCJ=yes
16879        ;;        ;;
# Line 17601  beos*) Line 17147  beos*)
17147    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
17148    ;;    ;;
17149    
17150  bsdi[45]*)  bsdi4*)
17151    version_type=linux    version_type=linux
17152    need_version=no    need_version=no
17153    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 17659  cygwin* | mingw* | pw32*) Line 17205  cygwin* | mingw* | pw32*)
17205        ;;        ;;
17206      pw32*)      pw32*)
17207        # pw32 DLLs use 'pw' prefix rather than 'lib'        # pw32 DLLs use 'pw' prefix rather than 'lib'
17208        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17209        ;;        ;;
17210      esac      esac
17211      ;;      ;;
# Line 17717  kfreebsd*-gnu) Line 17263  kfreebsd*-gnu)
17263    dynamic_linker='GNU ld.so'    dynamic_linker='GNU ld.so'
17264    ;;    ;;
17265    
17266  freebsd* | dragonfly*)  freebsd*)
   # DragonFly does not have aout.  When/if they implement a new  
   # versioning mechanism, adjust this.  
17267    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17268    version_type=freebsd-$objformat    version_type=freebsd-$objformat
17269    case $version_type in    case $version_type in
# Line 17738  freebsd* | dragonfly*) Line 17282  freebsd* | dragonfly*)
17282    freebsd2*)    freebsd2*)
17283      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
17284      ;;      ;;
17285    freebsd3.[01]* | freebsdelf3.[01]*)    freebsd3.01* | freebsdelf3.01*)
17286      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
17287      hardcode_into_libs=yes      hardcode_into_libs=yes
17288      ;;      ;;
# Line 17862  linux*) Line 17406  linux*)
17406    # before this can be enabled.    # before this can be enabled.
17407    hardcode_into_libs=yes    hardcode_into_libs=yes
17408    
   # find out which ABI we are using  
17409    libsuff=    libsuff=
17410    case "$host_cpu" in    if test "$lt_cv_cc_lib64_suffix" = "yes"; then
17411    x86_64*|s390x*|powerpc64*)      libsuff=64
17412      echo '#line 17869 "configure"' > conftest.$ac_ext    fi
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
       case `/usr/bin/file conftest.$ac_objext` in  
       *64-bit*)  
         libsuff=64  
         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  
         ;;  
       esac  
     fi  
     rm -rf conftest*  
     ;;  
   esac  
17413    
17414    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
17415    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
17416      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`      lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17417      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
17418        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
17419    fi    fi
17420    
17421    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
# Line 17948  nto-qnx*) Line 17477  nto-qnx*)
17477  openbsd*)  openbsd*)
17478    version_type=sunos    version_type=sunos
17479    need_lib_prefix=no    need_lib_prefix=no
17480    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    need_version=yes
   case $host_os in  
     openbsd3.3 | openbsd3.3.*) need_version=yes ;;  
     *)                         need_version=no  ;;  
   esac  
17481    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17482    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17483    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 18074  echo "$as_me:$LINENO: checking how to ha Line 17599  echo "$as_me:$LINENO: checking how to ha
17599  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17600  hardcode_action_GCJ=  hardcode_action_GCJ=
17601  if test -n "$hardcode_libdir_flag_spec_GCJ" || \  if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17602     test -n "$runpath_var_GCJ" || \     test -n "$runpath_var GCJ" || \
17603     test "X$hardcode_automatic_GCJ" = "Xyes" ; then     test "X$hardcode_automatic_GCJ"="Xyes" ; then
17604    
17605    # We can hardcode non-existant directories.    # We can hardcode non-existant directories.
17606    if test "$hardcode_direct_GCJ" != no &&    if test "$hardcode_direct_GCJ" != no &&
# Line 18741  else Line 18266  else
18266    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18267    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
18268    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
18269  #line 18744 "configure"  #line 18269 "configure"
18270  #include "confdefs.h"  #include "confdefs.h"
18271    
18272  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 18839  else Line 18364  else
18364    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18365    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
18366    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
18367  #line 18842 "configure"  #line 18367 "configure"
18368  #include "confdefs.h"  #include "confdefs.h"
18369    
18370  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 19057  fast_install=$enable_fast_install Line 18582  fast_install=$enable_fast_install
18582  # The host system.  # The host system.
18583  host_alias=$host_alias  host_alias=$host_alias
18584  host=$host  host=$host
 host_os=$host_os  
   
 # The build system.  
 build_alias=$build_alias  
 build=$build  
 build_os=$build_os  
18585    
18586  # An echo program that does not interpret backslashes.  # An echo program that does not interpret backslashes.
18587  echo=$lt_echo  echo=$lt_echo
# Line 19139  max_cmd_len=$lt_cv_sys_max_cmd_len Line 18658  max_cmd_len=$lt_cv_sys_max_cmd_len
18658  # Does compiler simultaneously support -c and -o options?  # Does compiler simultaneously support -c and -o options?
18659  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18660    
18661  # Must we lock files when doing compilation?  # Must we lock files when doing compilation ?
18662  need_locks=$lt_need_locks  need_locks=$lt_need_locks
18663    
18664  # Do we need the lib prefix for modules?  # Do we need the lib prefix for modules?
# Line 19387  LTCC=${LTCC-"$CC"} Line 18906  LTCC=${LTCC-"$CC"}
18906  compiler=$CC  compiler=$CC
18907    
18908    
 # save warnings/boilerplate of simple test code  
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_compile_test_code" >conftest.$ac_ext  
 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_compiler_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
 ac_outfile=conftest.$ac_objext  
 printf "$lt_simple_link_test_code" >conftest.$ac_ext  
 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  
 _lt_linker_boilerplate=`cat conftest.err`  
 $rm conftest*  
   
   
18909  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
18910  lt_save_CC="$CC"  lt_save_CC="$CC"
18911  CC=${RC-"windres"}  CC=${RC-"windres"}
18912  compiler=$CC  compiler=$CC
18913  compiler_RC=$CC  compiler_RC=$CC
 for cc_temp in $compiler""; do  
   case $cc_temp in  
     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;  
     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;  
     \-*) ;;  
     *) break;;  
   esac  
 done  
 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`  
   
18914  lt_cv_prog_compiler_c_o_RC=yes  lt_cv_prog_compiler_c_o_RC=yes
18915    
18916  # The else clause should only fire when bootstrapping the  # The else clause should only fire when bootstrapping the
# Line 19532  fast_install=$enable_fast_install Line 19027  fast_install=$enable_fast_install
19027  # The host system.  # The host system.
19028  host_alias=$host_alias  host_alias=$host_alias
19029  host=$host  host=$host
 host_os=$host_os  
   
 # The build system.  
 build_alias=$build_alias  
 build=$build  
 build_os=$build_os  
19030    
19031  # An echo program that does not interpret backslashes.  # An echo program that does not interpret backslashes.
19032  echo=$lt_echo  echo=$lt_echo
# Line 19614  max_cmd_len=$lt_cv_sys_max_cmd_len Line 19103  max_cmd_len=$lt_cv_sys_max_cmd_len
19103  # Does compiler simultaneously support -c and -o options?  # Does compiler simultaneously support -c and -o options?
19104  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19105    
19106  # Must we lock files when doing compilation?  # Must we lock files when doing compilation ?
19107  need_locks=$lt_need_locks  need_locks=$lt_need_locks
19108    
19109  # Do we need the lib prefix for modules?  # Do we need the lib prefix for modules?
# Line 20990  s,@AUTOCONF@,$AUTOCONF,;t t Line 20479  s,@AUTOCONF@,$AUTOCONF,;t t
20479  s,@AUTOMAKE@,$AUTOMAKE,;t t  s,@AUTOMAKE@,$AUTOMAKE,;t t
20480  s,@AUTOHEADER@,$AUTOHEADER,;t t  s,@AUTOHEADER@,$AUTOHEADER,;t t
20481  s,@MAKEINFO@,$MAKEINFO,;t t  s,@MAKEINFO@,$MAKEINFO,;t t
 s,@AMTAR@,$AMTAR,;t t  
20482  s,@install_sh@,$install_sh,;t t  s,@install_sh@,$install_sh,;t t
20483  s,@STRIP@,$STRIP,;t t  s,@STRIP@,$STRIP,;t t
20484  s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t  s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20485  s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t  s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20486    s,@mkdir_p@,$mkdir_p,;t t
20487  s,@AWK@,$AWK,;t t  s,@AWK@,$AWK,;t t
20488  s,@SET_MAKE@,$SET_MAKE,;t t  s,@SET_MAKE@,$SET_MAKE,;t t
20489  s,@am__leading_dot@,$am__leading_dot,;t t  s,@am__leading_dot@,$am__leading_dot,;t t
20490    s,@AMTAR@,$AMTAR,;t t
20491    s,@am__tar@,$am__tar,;t t
20492    s,@am__untar@,$am__untar,;t t
20493  s,@build@,$build,;t t  s,@build@,$build,;t t
20494  s,@build_cpu@,$build_cpu,;t t  s,@build_cpu@,$build_cpu,;t t
20495  s,@build_vendor@,$build_vendor,;t t  s,@build_vendor@,$build_vendor,;t t
# Line 21673  echo X"$mf" | Line 21165  echo X"$mf" |
21165    else    else
21166      continue      continue
21167    fi    fi
21168    grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue    # Extract the definition of DEPDIR, am__include, and am__quote
21169    # Extract the definition of DEP_FILES from the Makefile without    # from the Makefile without running `make'.
21170    # running `make'.    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`  
21171    test -z "$DEPDIR" && continue    test -z "$DEPDIR" && continue
21172      am__include=`sed -n 's/^am__include = //p' < "$mf"`
21173      test -z "am__include" && continue
21174      am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21175    # When using ansi2knr, U may be empty or an underscore; expand it    # When using ansi2knr, U may be empty or an underscore; expand it
21176    U=`sed -n -e '/^U = / s///p' < "$mf"`    U=`sed -n 's/^U = //p' < "$mf"`
21177    test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"    # Find all dependency output files, they are included files with
21178    # We invoke sed twice because it is the simplest approach to    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21179    # changing $(DEPDIR) to its actual value in the expansion.    # simplest approach to changing $(DEPDIR) to its actual value in the
21180    for file in `sed -n -e '    # expansion.
21181      /^DEP_FILES = .*\\\\$/ {    for file in `sed -n "
21182        s/^DEP_FILES = //      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
       :loop  
         s/\\\\$//  
         p  
         n  
         /\\\\$/ b loop  
       p  
     }  
     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \  
21183         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21184      # Make sure the directory exists.      # Make sure the directory exists.
21185      test -f "$dirpart/$file" && continue      test -f "$dirpart/$file" && continue

Legend:
Removed from v.4.2.2.1.2.1  
changed lines
  Added in v.5.0

  ViewVC Help
Powered by ViewVC 1.1.23