Develop and Download Open Source Software

Browse CVS Repository

Diff of /satellite/satellite4/configure

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

revision 1.19 by orrisroot, Fri Nov 11 07:44:06 2005 UTC revision 1.20 by orrisroot, Mon Mar 13 15:12:15 2006 UTC
# Line 4431  reload_cmds='$LD$reload_flag -o $output$ Line 4431  reload_cmds='$LD$reload_flag -o $output$
4431  case $host_os in  case $host_os in
4432    darwin*)    darwin*)
4433      if test "$GCC" = yes; then      if test "$GCC" = yes; then
4434        reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'        reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4435      else      else
4436        reload_cmds='$LD$reload_flag -o $output$reload_objs'        reload_cmds='$LD$reload_flag -o $output$reload_objs'
4437      fi      fi
# Line 4447  else Line 4447  else
4447    # Let the user override the test.    # Let the user override the test.
4448    lt_cv_path_NM="$NM"    lt_cv_path_NM="$NM"
4449  else  else
4450    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR    lt_nm_to_check="${ac_tool_prefix}nm"
4451    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4452      IFS="$lt_save_ifs"      lt_nm_to_check="$lt_nm_to_check nm"
4453      test -z "$ac_dir" && ac_dir=.    fi
4454      tmp_nm="$ac_dir/${ac_tool_prefix}nm"    for lt_tmp_nm in $lt_nm_to_check; do
4455      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4456        # Check to see if the nm accepts a BSD-compat flag.      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4457        # Adding the `sed 1q' prevents false positives on HP-UX, which says:        IFS="$lt_save_ifs"
4458        #   nm: unknown option "B" ignored        test -z "$ac_dir" && ac_dir=.
4459        # Tru64's nm complains that /dev/null is an invalid object file        tmp_nm="$ac_dir/$lt_tmp_nm"
4460        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in        if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4461        */dev/null* | *'Invalid file or object type'*)          # Check to see if the nm accepts a BSD-compat flag.
4462          lt_cv_path_NM="$tmp_nm -B"          # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4463          break          #   nm: unknown option "B" ignored
4464          ;;          # Tru64's nm complains that /dev/null is an invalid object file
4465        *)          case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4466          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in          */dev/null* | *'Invalid file or object type'*)
4467          */dev/null*)            lt_cv_path_NM="$tmp_nm -B"
           lt_cv_path_NM="$tmp_nm -p"  
4468            break            break
4469            ;;            ;;
4470          *)          *)
4471            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4472            continue # so that we can try to find one that supports BSD flags            */dev/null*)
4473                lt_cv_path_NM="$tmp_nm -p"
4474                break
4475                ;;
4476              *)
4477                lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4478                continue # so that we can try to find one that supports BSD flags
4479                ;;
4480              esac
4481            ;;            ;;
4482          esac          esac
4483        esac        fi
4484      fi      done
4485        IFS="$lt_save_ifs"
4486    done    done
   IFS="$lt_save_ifs"  
4487    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4488  fi  fi
4489  fi  fi
# Line 4573  hpux10.20* | hpux11*) Line 4580  hpux10.20* | hpux11*)
4580    esac    esac
4581    ;;    ;;
4582    
4583    interix3*)
4584      # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4585      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4586      ;;
4587    
4588  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
4589    case $LD in    case $LD in
4590    *-32|*"-32 ") libmagic=32-bit;;    *-32|*"-32 ") libmagic=32-bit;;
# Line 4618  osf3* | osf4* | osf5*) Line 4630  osf3* | osf4* | osf5*)
4630    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4631    ;;    ;;
4632    
 sco3.2v5*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
4633  solaris*)  solaris*)
4634    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4635    ;;    ;;
4636    
4637  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
4638    case $host_vendor in    case $host_vendor in
4639    motorola)    motorola)
4640      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
# Line 4647  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 4655  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4655    siemens)    siemens)
4656      lt_cv_deplibs_check_method=pass_all      lt_cv_deplibs_check_method=pass_all
4657      ;;      ;;
4658      pc)
4659        lt_cv_deplibs_check_method=pass_all
4660        ;;
4661    esac    esac
4662    ;;    ;;
4663    
4664  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4665    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4666    ;;    ;;
4667  esac  esac
# Line 4668  test -z "$deplibs_check_method" && depli Line 4679  test -z "$deplibs_check_method" && depli
4679  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
4680  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
4681    
4682    # If no C compiler flags were specified, use CFLAGS.
4683    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4684    
4685  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
4686  compiler=$CC  compiler=$CC
4687    
# Line 4703  ia64-*-hpux*) Line 4717  ia64-*-hpux*)
4717    ;;    ;;
4718  *-*-irix6*)  *-*-irix6*)
4719    # Find out which ABI we are using.    # Find out which ABI we are using.
4720    echo '#line 4706 "configure"' > conftest.$ac_ext    echo '#line 4720 "configure"' > conftest.$ac_ext
4721    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4723    ac_status=$?    ac_status=$?
# Line 4859  echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 Line 4873  echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4873      CFLAGS="$SAVE_CFLAGS"      CFLAGS="$SAVE_CFLAGS"
4874    fi    fi
4875    ;;    ;;
4876    sparc*-*solaris*)
4877      # Find out which ABI we are using.
4878      echo 'int i;' > conftest.$ac_ext
4879      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880      (eval $ac_compile) 2>&5
4881      ac_status=$?
4882      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883      (exit $ac_status); }; then
4884        case `/usr/bin/file conftest.o` in
4885        *64-bit*)
4886          case $lt_cv_prog_gnu_ld in
4887          yes*) LD="${LD-ld} -m elf64_sparc" ;;
4888          *)    LD="${LD-ld} -64" ;;
4889          esac
4890          ;;
4891        esac
4892      fi
4893      rm -rf conftest*
4894      ;;
4895    
4896    
4897  esac  esac
4898    
# Line 5584  fi Line 5618  fi
5618    
5619    
5620  # Provide some information about the compiler.  # Provide some information about the compiler.
5621  echo "$as_me:5587:" \  echo "$as_me:5621:" \
5622       "checking for Fortran 77 compiler version" >&5       "checking for Fortran 77 compiler version" >&5
5623  ac_compiler=`set X $ac_compile; echo $2`  ac_compiler=`set X $ac_compile; echo $2`
5624  { (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 5787  else Line 5821  else
5821      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 \/ 4`
5822      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5823      ;;      ;;
5824    
5825      interix*)
5826        # We know the value 262144 and hardcode it with a safety zone (like BSD)
5827        lt_cv_sys_max_cmd_len=196608
5828        ;;
5829    
5830    osf*)    osf*)
5831      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5832      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
# Line 5800  else Line 5840  else
5840        esac        esac
5841      fi      fi
5842      ;;      ;;
5843      sco3.2v5*)
5844        lt_cv_sys_max_cmd_len=102400
5845        ;;
5846      sysv5* | sco5v6* | sysv4.2uw2*)
5847        kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5848        if test -n "$kargmax"; then
5849          lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5850        else
5851          lt_cv_sys_max_cmd_len=32768
5852        fi
5853        ;;
5854    *)    *)
5855      # 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
5856      # maximum length that is only half of the actual maximum length, but      # maximum length that is only half of the actual maximum length, but
# Line 5885  irix* | nonstopux*) Line 5936  irix* | nonstopux*)
5936  osf*)  osf*)
5937    symcode='[BCDEGQRST]'    symcode='[BCDEGQRST]'
5938    ;;    ;;
5939  solaris* | sysv5*)  solaris*)
5940    symcode='[BDRT]'    symcode='[BDRT]'
5941    ;;    ;;
5942    sco3.2v5*)
5943      symcode='[DT]'
5944      ;;
5945    sysv4.2uw2*)
5946      symcode='[DT]'
5947      ;;
5948    sysv5* | sco5v6* | unixware* | OpenUNIX*)
5949      symcode='[ABDT]'
5950      ;;
5951  sysv4)  sysv4)
5952    symcode='[DFNSTU]'    symcode='[DFNSTU]'
5953    ;;    ;;
# Line 6353  test -z "$AR_FLAGS" && AR_FLAGS=cru Line 6413  test -z "$AR_FLAGS" && AR_FLAGS=cru
6413  test -z "$AS" && AS=as  test -z "$AS" && AS=as
6414  test -z "$CC" && CC=cc  test -z "$CC" && CC=cc
6415  test -z "$LTCC" && LTCC=$CC  test -z "$LTCC" && LTCC=$CC
6416    test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6417  test -z "$DLLTOOL" && DLLTOOL=dlltool  test -z "$DLLTOOL" && DLLTOOL=dlltool
6418  test -z "$LD" && LD=ld  test -z "$LD" && LD=ld
6419  test -z "$LN_S" && LN_S="ln -s"  test -z "$LN_S" && LN_S="ln -s"
# Line 6372  old_postuninstall_cmds= Line 6433  old_postuninstall_cmds=
6433  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
6434    case $host_os in    case $host_os in
6435    openbsd*)    openbsd*)
6436      old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6437      ;;      ;;
6438    *)    *)
6439      old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6440      ;;      ;;
6441    esac    esac
6442    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
# Line 6574  lt_simple_link_test_code='int main(){ret Line 6635  lt_simple_link_test_code='int main(){ret
6635  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
6636  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
6637    
6638    # If no C compiler flags were specified, use CFLAGS.
6639    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6640    
6641  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
6642  compiler=$CC  compiler=$CC
6643    
# Line 6581  compiler=$CC Line 6645  compiler=$CC
6645  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
6646  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
6647  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6648  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6649  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
6650  $rm conftest*  $rm conftest*
6651    
6652  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
6653  printf "$lt_simple_link_test_code" >conftest.$ac_ext  printf "$lt_simple_link_test_code" >conftest.$ac_ext
6654  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6655  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
6656  $rm conftest*  $rm conftest*
6657    
6658    
 #  
 # Check for any special shared library compilation flags.  
 #  
 lt_prog_cc_shlib=  
 if test "$GCC" = no; then  
   case $host_os in  
   sco3.2v5*)  
     lt_prog_cc_shlib='-belf'  
     ;;  
   esac  
 fi  
 if test -n "$lt_prog_cc_shlib"; then  
   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5  
 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}  
   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :  
   else  
     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5  
 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}  
     lt_cv_prog_cc_can_build_shared=no  
   fi  
 fi  
   
   
 #  
 # Check to make sure the static flag actually works.  
 #  
 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5  
 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6  
 if test "${lt_prog_compiler_static_works+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   lt_prog_compiler_static_works=no  
    save_LDFLAGS="$LDFLAGS"  
    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"  
    printf "$lt_simple_link_test_code" > conftest.$ac_ext  
    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then  
      # The linker can only warn and ignore the option if not recognized  
      # So say no if there are warnings  
      if test -s conftest.err; then  
        # Append any errors to the config.log.  
        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  
      else  
        lt_prog_compiler_static_works=yes  
      fi  
    fi  
    $rm conftest*  
    LDFLAGS="$save_LDFLAGS"  
   
 fi  
 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5  
 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6  
   
 if test x"$lt_prog_compiler_static_works" = xyes; then  
     :  
 else  
     lt_prog_compiler_static=  
 fi  
   
   
   
6659  ## CAVEAT EMPTOR:  ## CAVEAT EMPTOR:
6660  ## There is no encapsulation within the following macros, do not change  ## There is no encapsulation within the following macros, do not change
6661  ## the running order or otherwise move them around unless you know exactly  ## the running order or otherwise move them around unless you know exactly
# Line 6686  else Line 6685  else
6685     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6686     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6687     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6688     (eval echo "\"\$as_me:6689: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6688: $lt_compile\"" >&5)
6689     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
6690     ac_status=$?     ac_status=$?
6691     cat conftest.err >&5     cat conftest.err >&5
6692     echo "$as_me:6693: \$? = $ac_status" >&5     echo "$as_me:6692: \$? = $ac_status" >&5
6693     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
6694       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6695       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
6696       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6697       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6698       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6699         lt_cv_prog_compiler_rtti_exceptions=yes         lt_cv_prog_compiler_rtti_exceptions=yes
6700       fi       fi
6701     fi     fi
# Line 6757  echo $ECHO_N "checking for $compiler opt Line 6756  echo $ECHO_N "checking for $compiler opt
6756        lt_prog_compiler_pic='-fno-common'        lt_prog_compiler_pic='-fno-common'
6757        ;;        ;;
6758    
6759        interix3*)
6760          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6761          # Instead, we relocate shared libraries at runtime.
6762          ;;
6763    
6764      msdosdjgpp*)      msdosdjgpp*)
6765        # Just because we use GCC doesn't mean we suddenly get shared libraries        # Just because we use GCC doesn't mean we suddenly get shared libraries
6766        # on systems that don't support them.        # on systems that don't support them.
# Line 6865  echo $ECHO_N "checking for $compiler opt Line 6869  echo $ECHO_N "checking for $compiler opt
6869        esac        esac
6870        ;;        ;;
6871    
6872        freebsd*)
6873          case $cc_basename in
6874          icc* | ecc*)
6875            lt_prog_compiler_wl='-Wl,'
6876            lt_prog_compiler_pic='-KPIC'
6877            lt_prog_compiler_static='-static'
6878            ;;
6879          ccc*)
6880            lt_prog_compiler_wl='-Wl,'
6881            # All Alpha code is PIC.
6882            lt_prog_compiler_static='-non_shared'
6883            ;;
6884          esac
6885          ;;
6886    
6887      osf3* | osf4* | osf5*)      osf3* | osf4* | osf5*)
6888        lt_prog_compiler_wl='-Wl,'        lt_prog_compiler_wl='-Wl,'
6889        # All OSF/1 code is PIC.        # All OSF/1 code is PIC.
6890        lt_prog_compiler_static='-non_shared'        lt_prog_compiler_static='-non_shared'
6891        ;;        ;;
6892    
     sco3.2v5*)  
       lt_prog_compiler_pic='-Kpic'  
       lt_prog_compiler_static='-dn'  
       ;;  
   
6893      solaris*)      solaris*)
6894        lt_prog_compiler_pic='-KPIC'        lt_prog_compiler_pic='-KPIC'
6895        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
# Line 6893  echo $ECHO_N "checking for $compiler opt Line 6907  echo $ECHO_N "checking for $compiler opt
6907        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
6908        ;;        ;;
6909    
6910      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      sysv4 | sysv4.2uw2* | sysv4.3*)
6911        lt_prog_compiler_wl='-Wl,'        lt_prog_compiler_wl='-Wl,'
6912        lt_prog_compiler_pic='-KPIC'        lt_prog_compiler_pic='-KPIC'
6913        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
# Line 6906  echo $ECHO_N "checking for $compiler opt Line 6920  echo $ECHO_N "checking for $compiler opt
6920        fi        fi
6921        ;;        ;;
6922    
6923        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6924          lt_prog_compiler_wl='-Wl,'
6925          lt_prog_compiler_pic='-KPIC'
6926          lt_prog_compiler_static='-Bstatic'
6927          ;;
6928    
6929      unicos*)      unicos*)
6930        lt_prog_compiler_wl='-Wl,'        lt_prog_compiler_wl='-Wl,'
6931        lt_prog_compiler_can_build_shared=no        lt_prog_compiler_can_build_shared=no
# Line 6948  else Line 6968  else
6968     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6969     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6970     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6971     (eval echo "\"\$as_me:6951: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6971: $lt_compile\"" >&5)
6972     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
6973     ac_status=$?     ac_status=$?
6974     cat conftest.err >&5     cat conftest.err >&5
6975     echo "$as_me:6955: \$? = $ac_status" >&5     echo "$as_me:6975: \$? = $ac_status" >&5
6976     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
6977       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6978       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
6979       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6980       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6981       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6982         lt_prog_compiler_pic_works=yes         lt_prog_compiler_pic_works=yes
6983       fi       fi
6984     fi     fi
# Line 6989  case $host_os in Line 7009  case $host_os in
7009      ;;      ;;
7010  esac  esac
7011    
7012    #
7013    # Check to make sure the static flag actually works.
7014    #
7015    wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7016    echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7017    echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7018    if test "${lt_prog_compiler_static_works+set}" = set; then
7019      echo $ECHO_N "(cached) $ECHO_C" >&6
7020    else
7021      lt_prog_compiler_static_works=no
7022       save_LDFLAGS="$LDFLAGS"
7023       LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7024       printf "$lt_simple_link_test_code" > conftest.$ac_ext
7025       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7026         # The linker can only warn and ignore the option if not recognized
7027         # So say no if there are warnings
7028         if test -s conftest.err; then
7029           # Append any errors to the config.log.
7030           cat conftest.err 1>&5
7031           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7032           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7033           if diff conftest.exp conftest.er2 >/dev/null; then
7034             lt_prog_compiler_static_works=yes
7035           fi
7036         else
7037           lt_prog_compiler_static_works=yes
7038         fi
7039       fi
7040       $rm conftest*
7041       LDFLAGS="$save_LDFLAGS"
7042    
7043    fi
7044    echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7045    echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7046    
7047    if test x"$lt_prog_compiler_static_works" = xyes; then
7048        :
7049    else
7050        lt_prog_compiler_static=
7051    fi
7052    
7053    
7054  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7055  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7056  if test "${lt_cv_prog_compiler_c_o+set}" = set; then  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
# Line 7010  else Line 7072  else
7072     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7073     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7074     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
7075     (eval echo "\"\$as_me:7013: $lt_compile\"" >&5)     (eval echo "\"\$as_me:7075: $lt_compile\"" >&5)
7076     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
7077     ac_status=$?     ac_status=$?
7078     cat out/conftest.err >&5     cat out/conftest.err >&5
7079     echo "$as_me:7017: \$? = $ac_status" >&5     echo "$as_me:7079: \$? = $ac_status" >&5
7080     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
7081     then     then
7082       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
7083       # So say no if there are warnings       # So say no if there are warnings
7084       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7085       $SED '/^$/d' out/conftest.err >out/conftest.er2       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7086       if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7087         lt_cv_prog_compiler_c_o=yes         lt_cv_prog_compiler_c_o=yes
7088       fi       fi
7089     fi     fi
# Line 7121  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 7183  cc_basename=`$echo "X$cc_temp" | $Xsed -
7183        with_gnu_ld=no        with_gnu_ld=no
7184      fi      fi
7185      ;;      ;;
7186      interix*)
7187        # we just hope/assume this is gcc and not c89 (= MSVC++)
7188        with_gnu_ld=yes
7189        ;;
7190    openbsd*)    openbsd*)
7191      with_gnu_ld=no      with_gnu_ld=no
7192      ;;      ;;
# Line 7205  EOF Line 7271  EOF
7271        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 '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7272    
7273        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7274          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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7275          # If the export-symbols file already is a .def file (1st line          # If the export-symbols file already is a .def file (1st line
7276          # is EXPORTS), use it as is; otherwise, prepend...          # is EXPORTS), use it as is; otherwise, prepend...
7277          archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then          archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 7214  EOF Line 7280  EOF
7280            echo EXPORTS > $output_objdir/$soname.def;            echo EXPORTS > $output_objdir/$soname.def;
7281            cat $export_symbols >> $output_objdir/$soname.def;            cat $export_symbols >> $output_objdir/$soname.def;
7282          fi~          fi~
7283          $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7284        else        else
7285          ld_shlibs=no          ld_shlibs=no
7286        fi        fi
7287        ;;        ;;
7288    
7289        interix3*)
7290          hardcode_direct=no
7291          hardcode_shlibpath_var=no
7292          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7293          export_dynamic_flag_spec='${wl}-E'
7294          # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7295          # Instead, shared libraries are loaded at an image base (0x10000000 by
7296          # default) and relocated if they conflict, which is a slow very memory
7297          # consuming and fragmenting process.  To avoid this, we pick a random,
7298          # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7299          # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7300          archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7301          archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7302          ;;
7303    
7304      linux*)      linux*)
7305        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7306          tmp_addflag=          tmp_addflag=
# Line 7261  EOF Line 7342  EOF
7342        fi        fi
7343        ;;        ;;
7344    
7345      solaris* | sysv5*)      solaris*)
7346        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7347          ld_shlibs=no          ld_shlibs=no
7348          cat <<EOF 1>&2          cat <<EOF 1>&2
# Line 7282  EOF Line 7363  EOF
7363        fi        fi
7364        ;;        ;;
7365    
7366        sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7367          case `$LD -v 2>&1` in
7368            *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7369            ld_shlibs=no
7370            cat <<_LT_EOF 1>&2
7371    
7372    *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7373    *** reliably create shared libraries on SCO systems.  Therefore, libtool
7374    *** is disabling shared libraries support.  We urge you to upgrade GNU
7375    *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7376    *** your PATH or compiler configuration so that the native linker is
7377    *** used, and then restart.
7378    
7379    _LT_EOF
7380            ;;
7381            *)
7382              if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7383                hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7384                archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7385                archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7386              else
7387                ld_shlibs=no
7388              fi
7389            ;;
7390          esac
7391          ;;
7392    
7393      sunos4*)      sunos4*)
7394        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7395        wlarc=        wlarc=
# Line 7315  EOF Line 7423  EOF
7423        # Note: this linker hardcodes the directories in LIBPATH if there        # Note: this linker hardcodes the directories in LIBPATH if there
7424        # are no directories specified by -L.        # are no directories specified by -L.
7425        hardcode_minus_L=yes        hardcode_minus_L=yes
7426        if test "$GCC" = yes && test -z "$link_static_flag"; then        if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7427          # Neither direct hardcoding nor static linking is supported with a          # Neither direct hardcoding nor static linking is supported with a
7428          # broken collect2.          # broken collect2.
7429          hardcode_direct=unsupported          hardcode_direct=unsupported
# Line 7349  EOF Line 7457  EOF
7457              break              break
7458            fi            fi
7459            done            done
7460              ;;
7461          esac          esac
7462    
7463          exp_sym_flag='-bexport'          exp_sym_flag='-bexport'
# Line 7386  EOF Line 7495  EOF
7495            hardcode_libdir_flag_spec='-L$libdir'            hardcode_libdir_flag_spec='-L$libdir'
7496            hardcode_libdir_separator=            hardcode_libdir_separator=
7497            fi            fi
7498              ;;
7499          esac          esac
7500          shared_flag='-shared'          shared_flag='-shared'
7501          if test "$aix_use_runtimelinking" = yes; then          if test "$aix_use_runtimelinking" = yes; then
# Line 7398  EOF Line 7508  EOF
7508          # chokes on -Wl,-G. The following line is correct:          # chokes on -Wl,-G. The following line is correct:
7509            shared_flag='-G'            shared_flag='-G'
7510          else          else
7511          if test "$aix_use_runtimelinking" = yes; then            if test "$aix_use_runtimelinking" = yes; then
7512              shared_flag='${wl}-G'              shared_flag='${wl}-G'
7513            else            else
7514              shared_flag='${wl}-bM:SRE'              shared_flag='${wl}-bM:SRE'
7515          fi            fi
7516          fi          fi
7517        fi        fi
7518    
# Line 7467  rm -f conftest.err conftest.$ac_objext \ Line 7577  rm -f conftest.err conftest.$ac_objext \
7577  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7578    
7579         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7580          archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"          archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7581         else         else
7582          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
7583            hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'            hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7584            allow_undefined_flag="-z nodefs"            allow_undefined_flag="-z nodefs"
7585            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7586          else          else
7587           # Determine the default libpath from the value encoded in an empty executable.           # Determine the default libpath from the value encoded in an empty executable.
7588           cat >conftest.$ac_ext <<_ACEOF           cat >conftest.$ac_ext <<_ACEOF
# Line 7532  if test -z "$aix_libpath"; then aix_libp Line 7642  if test -z "$aix_libpath"; then aix_libp
7642            # -berok will link without error, but may produce a broken library.            # -berok will link without error, but may produce a broken library.
7643            no_undefined_flag=' ${wl}-bernotok'            no_undefined_flag=' ${wl}-bernotok'
7644            allow_undefined_flag=' ${wl}-berok'            allow_undefined_flag=' ${wl}-berok'
           # -bexpall does not export symbols beginning with underscore (_)  
           always_export_symbols=yes  
7645            # Exported symbols can be pulled into shared objects from archives            # Exported symbols can be pulled into shared objects from archives
7646            whole_archive_flag_spec=' '            whole_archive_flag_spec='$convenience'
7647            archive_cmds_need_lc=yes            archive_cmds_need_lc=yes
7648            # This is similar to how AIX traditionally builds its shared libraries.            # This is similar to how AIX traditionally builds its shared libraries.
7649            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7650          fi          fi
7651        fi        fi
7652        ;;        ;;
# Line 7679  if test -z "$aix_libpath"; then aix_libp Line 7787  if test -z "$aix_libpath"; then aix_libp
7787        export_dynamic_flag_spec='${wl}-E'        export_dynamic_flag_spec='${wl}-E'
7788        ;;        ;;
7789    
7790      hpux10* | hpux11*)      hpux10*)
7791          if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7792            archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7793          else
7794            archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7795          fi
7796          if test "$with_gnu_ld" = no; then
7797            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7798            hardcode_libdir_separator=:
7799    
7800            hardcode_direct=yes
7801            export_dynamic_flag_spec='${wl}-E'
7802    
7803            # hardcode_minus_L: Not really in the search PATH,
7804            # but as the default location of the library.
7805            hardcode_minus_L=yes
7806          fi
7807          ;;
7808    
7809        hpux11*)
7810        if test "$GCC" = yes -a "$with_gnu_ld" = no; then        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7811          case $host_cpu in          case $host_cpu in
7812          hppa*64*|ia64*)          hppa*64*)
7813            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'
7814            ;;            ;;
7815            ia64*)
7816              archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7817              ;;
7818          *)          *)
7819            archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'            archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7820            ;;            ;;
7821          esac          esac
7822        else        else
7823          case $host_cpu in          case $host_cpu in
7824          hppa*64*|ia64*)          hppa*64*)
7825            archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'            archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7826              ;;
7827            ia64*)
7828              archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7829            ;;            ;;
7830          *)          *)
7831            archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'            archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7832            ;;            ;;
7833          esac          esac
7834        fi        fi
7835        if test "$with_gnu_ld" = no; then        if test "$with_gnu_ld" = no; then
7836            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7837            hardcode_libdir_separator=:
7838    
7839          case $host_cpu in          case $host_cpu in
7840          hppa*64*)          hppa*64*|ia64*)
           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'  
7841            hardcode_libdir_flag_spec_ld='+b $libdir'            hardcode_libdir_flag_spec_ld='+b $libdir'
           hardcode_libdir_separator=:  
           hardcode_direct=no  
           hardcode_shlibpath_var=no  
           ;;  
         ia64*)  
           hardcode_libdir_flag_spec='-L$libdir'  
7842            hardcode_direct=no            hardcode_direct=no
7843            hardcode_shlibpath_var=no            hardcode_shlibpath_var=no
   
           # hardcode_minus_L: Not really in the search PATH,  
           # but as the default location of the library.  
           hardcode_minus_L=yes  
7844            ;;            ;;
7845          *)          *)
           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'  
           hardcode_libdir_separator=:  
7846            hardcode_direct=yes            hardcode_direct=yes
7847            export_dynamic_flag_spec='${wl}-E'            export_dynamic_flag_spec='${wl}-E'
7848    
# Line 7821  if test -z "$aix_libpath"; then aix_libp Line 7944  if test -z "$aix_libpath"; then aix_libp
7944        hardcode_libdir_separator=:        hardcode_libdir_separator=:
7945        ;;        ;;
7946    
     sco3.2v5*)  
       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
       hardcode_shlibpath_var=no  
       export_dynamic_flag_spec='${wl}-Bexport'  
       runpath_var=LD_RUN_PATH  
       hardcode_runpath_var=yes  
       ;;  
   
7947      solaris*)      solaris*)
7948        no_undefined_flag=' -z text'        no_undefined_flag=' -z text'
7949        if test "$GCC" = yes; then        if test "$GCC" = yes; then
# Line 7914  if test -z "$aix_libpath"; then aix_libp Line 8029  if test -z "$aix_libpath"; then aix_libp
8029        fi        fi
8030        ;;        ;;
8031    
8032      sysv4.2uw2*)      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8033        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'        no_undefined_flag='${wl}-z,text'
8034        hardcode_direct=yes        archive_cmds_need_lc=no
       hardcode_minus_L=no  
8035        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
8036        hardcode_runpath_var=yes        runpath_var='LD_RUN_PATH'
       runpath_var=LD_RUN_PATH  
       ;;  
8037    
    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)  
       no_undefined_flag='${wl}-z ${wl}text'  
8038        if test "$GCC" = yes; then        if test "$GCC" = yes; then
8039          archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8040            archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8041        else        else
8042          archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8043            archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8044        fi        fi
       runpath_var='LD_RUN_PATH'  
       hardcode_shlibpath_var=no  
8045        ;;        ;;
8046    
8047      sysv5*)      sysv5* | sco3.2v5* | sco5v6*)
8048        no_undefined_flag=' -z text'        # Note: We can NOT use -z defs as we might desire, because we do not
8049        # $CC -shared without GNU ld will not create a library from C++        # link with -lc, and that would cause any symbols used from libc to
8050        # object files and a static libstdc++, better avoid it by now        # always be unresolved, which means just about no library would
8051        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'        # ever link correctly.  If we're not using GNU ld we use -z text
8052        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~        # though, which does catch some bad symbols but isn't as heavy-handed
8053                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'        # as -z defs.
8054        hardcode_libdir_flag_spec=        no_undefined_flag='${wl}-z,text'
8055          allow_undefined_flag='${wl}-z,nodefs'
8056          archive_cmds_need_lc=no
8057        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
8058          hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8059          hardcode_libdir_separator=':'
8060          link_all_deplibs=yes
8061          export_dynamic_flag_spec='${wl}-Bexport'
8062        runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
8063    
8064          if test "$GCC" = yes; then
8065            archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8066            archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8067          else
8068            archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8069            archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8070          fi
8071        ;;        ;;
8072    
8073      uts4*)      uts4*)
# Line 7962  echo "$as_me:$LINENO: result: $ld_shlibs Line 8086  echo "$as_me:$LINENO: result: $ld_shlibs
8086  echo "${ECHO_T}$ld_shlibs" >&6  echo "${ECHO_T}$ld_shlibs" >&6
8087  test "$ld_shlibs" = no && can_build_shared=no  test "$ld_shlibs" = no && can_build_shared=no
8088    
 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  
 if test "$GCC" = yes; then  
   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"  
 fi  
   
8089  #  #
8090  # Do we need to explicitly link libc?  # Do we need to explicitly link libc?
8091  #  #
# Line 7999  echo $ECHO_N "checking whether -lc shoul Line 8118  echo $ECHO_N "checking whether -lc shoul
8118          libobjs=conftest.$ac_objext          libobjs=conftest.$ac_objext
8119          deplibs=          deplibs=
8120          wl=$lt_prog_compiler_wl          wl=$lt_prog_compiler_wl
8121            pic_flag=$lt_prog_compiler_pic
8122          compiler_flags=-v          compiler_flags=-v
8123          linker_flags=-v          linker_flags=-v
8124          verstring=          verstring=
# Line 8280  freebsd* | dragonfly*) Line 8400  freebsd* | dragonfly*)
8400      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
8401      hardcode_into_libs=yes      hardcode_into_libs=yes
8402      ;;      ;;
8403    *) # from 3.2 on    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8404      freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8405      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
8406      hardcode_into_libs=yes      hardcode_into_libs=yes
8407      ;;      ;;
8408      freebsd*) # from 4.6 on
8409        shlibpath_overrides_runpath=yes
8410        hardcode_into_libs=yes
8411        ;;
8412    esac    esac
8413    ;;    ;;
8414    
# Line 8343  hpux9* | hpux10* | hpux11*) Line 8468  hpux9* | hpux10* | hpux11*)
8468    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
8469    ;;    ;;
8470    
8471    interix3*)
8472      version_type=linux
8473      need_lib_prefix=no
8474      need_version=no
8475      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8476      soname_spec='${libname}${release}${shared_ext}$major'
8477      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8478      shlibpath_var=LD_LIBRARY_PATH
8479      shlibpath_overrides_runpath=no
8480      hardcode_into_libs=yes
8481      ;;
8482    
8483  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
8484    case $host_os in    case $host_os in
8485      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
# Line 8464  nto-qnx*) Line 8601  nto-qnx*)
8601    
8602  openbsd*)  openbsd*)
8603    version_type=sunos    version_type=sunos
8604      sys_lib_dlsearch_path_spec="/usr/lib"
8605    need_lib_prefix=no    need_lib_prefix=no
8606    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8607    case $host_os in    case $host_os in
# Line 8507  osf3* | osf4* | osf5*) Line 8645  osf3* | osf4* | osf5*)
8645    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8646    ;;    ;;
8647    
 sco3.2v5*)  
   version_type=osf  
   soname_spec='${libname}${release}${shared_ext}$major'  
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
8648  solaris*)  solaris*)
8649    version_type=linux    version_type=linux
8650    need_lib_prefix=no    need_lib_prefix=no
# Line 8539  sunos4*) Line 8670  sunos4*)
8670    need_version=yes    need_version=yes
8671    ;;    ;;
8672    
8673  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
8674    version_type=linux    version_type=linux
8675    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}'
8676    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
# Line 8572  sysv4*MP*) Line 8703  sysv4*MP*)
8703    fi    fi
8704    ;;    ;;
8705    
8706    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8707      version_type=freebsd-elf
8708      need_lib_prefix=no
8709      need_version=no
8710      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8711      soname_spec='${libname}${release}${shared_ext}$major'
8712      shlibpath_var=LD_LIBRARY_PATH
8713      hardcode_into_libs=yes
8714      if test "$with_gnu_ld" = yes; then
8715        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8716        shlibpath_overrides_runpath=no
8717      else
8718        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8719        shlibpath_overrides_runpath=yes
8720        case $host_os in
8721          sco3.2v5*)
8722            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8723            ;;
8724        esac
8725      fi
8726      sys_lib_dlsearch_path_spec='/usr/lib'
8727      ;;
8728    
8729  uts4*)  uts4*)
8730    version_type=linux    version_type=linux
8731    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 8587  echo "$as_me:$LINENO: result: $dynamic_l Line 8741  echo "$as_me:$LINENO: result: $dynamic_l
8741  echo "${ECHO_T}$dynamic_linker" >&6  echo "${ECHO_T}$dynamic_linker" >&6
8742  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
8743    
8744    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8745    if test "$GCC" = yes; then
8746      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8747    fi
8748    
8749  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8750  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
8751  hardcode_action=  hardcode_action=
# Line 9242  fi Line 9401  fi
9401      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9402    
9403      save_LDFLAGS="$LDFLAGS"      save_LDFLAGS="$LDFLAGS"
9404      eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9405    
9406      save_LIBS="$LIBS"      save_LIBS="$LIBS"
9407      LIBS="$lt_cv_dlopen_libs $LIBS"      LIBS="$lt_cv_dlopen_libs $LIBS"
# Line 9258  else Line 9417  else
9417    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9418    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
9419    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
9420  #line 9261 "configure"  #line 9420 "configure"
9421  #include "confdefs.h"  #include "confdefs.h"
9422    
9423  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 9315  int main () Line 9474  int main ()
9474        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9475        /* dlclose (self); */        /* dlclose (self); */
9476      }      }
9477      else
9478        puts (dlerror ());
9479    
9480      exit (status);      exit (status);
9481  }  }
# Line 9329  EOF Line 9490  EOF
9490      case x$lt_status in      case x$lt_status in
9491        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9492        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9493        x$lt_unknown|x*) lt_cv_dlopen_self=no ;;        x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9494      esac      esac
9495    else :    else :
9496      # compilation failed      # compilation failed
# Line 9344  echo "$as_me:$LINENO: result: $lt_cv_dlo Line 9505  echo "$as_me:$LINENO: result: $lt_cv_dlo
9505  echo "${ECHO_T}$lt_cv_dlopen_self" >&6  echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9506    
9507      if test "x$lt_cv_dlopen_self" = xyes; then      if test "x$lt_cv_dlopen_self" = xyes; then
9508        LDFLAGS="$LDFLAGS $link_static_flag"        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9509        echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5        echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9510  echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6  echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9511  if test "${lt_cv_dlopen_self_static+set}" = set; then  if test "${lt_cv_dlopen_self_static+set}" = set; then
# Line 9356  else Line 9517  else
9517    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9518    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
9519    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
9520  #line 9359 "configure"  #line 9520 "configure"
9521  #include "confdefs.h"  #include "confdefs.h"
9522    
9523  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 9413  int main () Line 9574  int main ()
9574        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9575        /* dlclose (self); */        /* dlclose (self); */
9576      }      }
9577      else
9578        puts (dlerror ());
9579    
9580      exit (status);      exit (status);
9581  }  }
# Line 9427  EOF Line 9590  EOF
9590      case x$lt_status in      case x$lt_status in
9591        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9592        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9593        x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;        x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9594      esac      esac
9595    else :    else :
9596      # compilation failed      # compilation failed
# Line 9460  echo "${ECHO_T}$lt_cv_dlopen_self_static Line 9623  echo "${ECHO_T}$lt_cv_dlopen_self_static
9623  fi  fi
9624    
9625    
9626  # Report which librarie types wil actually be built  # Report which library types will actually be built
9627  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9628  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9629  echo "$as_me:$LINENO: result: $can_build_shared" >&5  echo "$as_me:$LINENO: result: $can_build_shared" >&5
# Line 9510  if test -f "$ltmain"; then Line 9673  if test -f "$ltmain"; then
9673    # Now quote all the things that may contain metacharacters while being    # Now quote all the things that may contain metacharacters while being
9674    # careful not to overquote the AC_SUBSTed values.  We take copies of the    # careful not to overquote the AC_SUBSTed values.  We take copies of the
9675    # variables and quote the copies for generation of the libtool script.    # variables and quote the copies for generation of the libtool script.
9676    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9677      SED SHELL STRIP \      SED SHELL STRIP \
9678      libname_spec library_names_spec soname_spec extract_expsyms_cmds \      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9679      old_striplib striplib file_magic_cmd finish_cmds finish_eval \      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
# Line 9676  AR_FLAGS=$lt_AR_FLAGS Line 9839  AR_FLAGS=$lt_AR_FLAGS
9839  # A C compiler.  # A C compiler.
9840  LTCC=$lt_LTCC  LTCC=$lt_LTCC
9841    
9842    # LTCC compiler flags.
9843    LTCFLAGS=$lt_LTCFLAGS
9844    
9845  # A language-specific compiler.  # A language-specific compiler.
9846  CC=$lt_compiler  CC=$lt_compiler
9847    
# Line 10006  echo "$as_me: WARNING: output file \`$of Line 10172  echo "$as_me: WARNING: output file \`$of
10172  echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}  echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10173      fi      fi
10174    fi    fi
10175      if test -z "$LTCFLAGS"; then
10176        eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10177      fi
10178    
10179    # Extract list of available tagged configurations in $ofile.    # Extract list of available tagged configurations in $ofile.
10180    # Note that this assumes the entire list is on one line.    # Note that this assumes the entire list is on one line.
# Line 10058  hardcode_libdir_flag_spec_CXX= Line 10227  hardcode_libdir_flag_spec_CXX=
10227  hardcode_libdir_flag_spec_ld_CXX=  hardcode_libdir_flag_spec_ld_CXX=
10228  hardcode_libdir_separator_CXX=  hardcode_libdir_separator_CXX=
10229  hardcode_minus_L_CXX=no  hardcode_minus_L_CXX=no
10230    hardcode_shlibpath_var_CXX=unsupported
10231  hardcode_automatic_CXX=no  hardcode_automatic_CXX=no
10232  module_cmds_CXX=  module_cmds_CXX=
10233  module_expsym_cmds_CXX=  module_expsym_cmds_CXX=
# Line 10085  objext_CXX=$objext Line 10255  objext_CXX=$objext
10255  lt_simple_compile_test_code="int some_variable = 0;\n"  lt_simple_compile_test_code="int some_variable = 0;\n"
10256    
10257  # Code to be used in simple link tests  # Code to be used in simple link tests
10258  lt_simple_link_test_code='int main(int, char *) { return(0); }\n'  lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10259    
10260  # 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.
10261    
10262  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
10263  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
10264    
10265    # If no C compiler flags were specified, use CFLAGS.
10266    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10267    
10268  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
10269  compiler=$CC  compiler=$CC
10270    
# Line 10099  compiler=$CC Line 10272  compiler=$CC
10272  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
10273  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
10274  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10275  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10276  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
10277  $rm conftest*  $rm conftest*
10278    
10279  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
10280  printf "$lt_simple_link_test_code" >conftest.$ac_ext  printf "$lt_simple_link_test_code" >conftest.$ac_ext
10281  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10282  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
10283  $rm conftest*  $rm conftest*
10284    
# Line 10120  lt_save_path_LD=$lt_cv_path_LD Line 10293  lt_save_path_LD=$lt_cv_path_LD
10293  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10294    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10295  else  else
10296    unset lt_cv_prog_gnu_ld    $as_unset lt_cv_prog_gnu_ld
10297  fi  fi
10298  if test -n "${lt_cv_path_LDCXX+set}"; then  if test -n "${lt_cv_path_LDCXX+set}"; then
10299    lt_cv_path_LD=$lt_cv_path_LDCXX    lt_cv_path_LD=$lt_cv_path_LDCXX
10300  else  else
10301    unset lt_cv_path_LD    $as_unset lt_cv_path_LD
10302  fi  fi
10303  test -z "${LDCXX+set}" || LD=$LDCXX  test -z "${LDCXX+set}" || LD=$LDCXX
10304  CC=${CXX-"c++"}  CC=${CXX-"c++"}
# Line 10336  case $host_os in Line 10509  case $host_os in
10509              ;;              ;;
10510            esac            esac
10511          done          done
10512            ;;
10513        esac        esac
10514    
10515        exp_sym_flag='-bexport'        exp_sym_flag='-bexport'
# Line 10373  case $host_os in Line 10547  case $host_os in
10547            hardcode_libdir_flag_spec_CXX='-L$libdir'            hardcode_libdir_flag_spec_CXX='-L$libdir'
10548            hardcode_libdir_separator_CXX=            hardcode_libdir_separator_CXX=
10549          fi          fi
10550            ;;
10551        esac        esac
10552        shared_flag='-shared'        shared_flag='-shared'
10553        if test "$aix_use_runtimelinking" = yes; then        if test "$aix_use_runtimelinking" = yes; then
# Line 10455  if test -z "$aix_libpath"; then aix_libp Line 10630  if test -z "$aix_libpath"; then aix_libp
10630    
10631        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10632    
10633        archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"        archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10634       else       else
10635        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
10636          hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'          hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10637          allow_undefined_flag_CXX="-z nodefs"          allow_undefined_flag_CXX="-z nodefs"
10638          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10639        else        else
10640          # Determine the default libpath from the value encoded in an empty executable.          # Determine the default libpath from the value encoded in an empty executable.
10641          cat >conftest.$ac_ext <<_ACEOF          cat >conftest.$ac_ext <<_ACEOF
# Line 10520  if test -z "$aix_libpath"; then aix_libp Line 10695  if test -z "$aix_libpath"; then aix_libp
10695          # -berok will link without error, but may produce a broken library.          # -berok will link without error, but may produce a broken library.
10696          no_undefined_flag_CXX=' ${wl}-bernotok'          no_undefined_flag_CXX=' ${wl}-bernotok'
10697          allow_undefined_flag_CXX=' ${wl}-berok'          allow_undefined_flag_CXX=' ${wl}-berok'
         # -bexpall does not export symbols beginning with underscore (_)  
         always_export_symbols_CXX=yes  
10698          # Exported symbols can be pulled into shared objects from archives          # Exported symbols can be pulled into shared objects from archives
10699          whole_archive_flag_spec_CXX=' '          whole_archive_flag_spec_CXX='$convenience'
10700          archive_cmds_need_lc_CXX=yes          archive_cmds_need_lc_CXX=yes
10701          # This is similar to how AIX traditionally builds its shared libraries.          # This is similar to how AIX traditionally builds its shared libraries.
10702          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10703        fi        fi
10704      fi      fi
10705      ;;      ;;
10706    
10707      beos*)
10708        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10709          allow_undefined_flag_CXX=unsupported
10710          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10711          # support --undefined.  This deserves some investigation.  FIXME
10712          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10713        else
10714          ld_shlibs_CXX=no
10715        fi
10716        ;;
10717    
10718    chorus*)    chorus*)
10719      case $cc_basename in      case $cc_basename in
10720        *)        *)
# Line 10539  if test -z "$aix_libpath"; then aix_libp Line 10724  if test -z "$aix_libpath"; then aix_libp
10724      esac      esac
10725      ;;      ;;
10726    
   
10727    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
10728      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10729      # as there is no search path for DLLs.      # as there is no search path for DLLs.
# Line 10549  if test -z "$aix_libpath"; then aix_libp Line 10733  if test -z "$aix_libpath"; then aix_libp
10733      enable_shared_with_static_runtimes_CXX=yes      enable_shared_with_static_runtimes_CXX=yes
10734    
10735      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10736        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10737        # If the export-symbols file already is a .def file (1st line        # If the export-symbols file already is a .def file (1st line
10738        # is EXPORTS), use it as is; otherwise, prepend...        # is EXPORTS), use it as is; otherwise, prepend...
10739        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 10558  if test -z "$aix_libpath"; then aix_libp Line 10742  if test -z "$aix_libpath"; then aix_libp
10742          echo EXPORTS > $output_objdir/$soname.def;          echo EXPORTS > $output_objdir/$soname.def;
10743          cat $export_symbols >> $output_objdir/$soname.def;          cat $export_symbols >> $output_objdir/$soname.def;
10744        fi~        fi~
10745        $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'        $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10746      else      else
10747        ld_shlibs_CXX=no        ld_shlibs_CXX=no
10748      fi      fi
# Line 10695  if test -z "$aix_libpath"; then aix_libp Line 10879  if test -z "$aix_libpath"; then aix_libp
10879      ;;      ;;
10880    hpux10*|hpux11*)    hpux10*|hpux11*)
10881      if test $with_gnu_ld = no; then      if test $with_gnu_ld = no; then
10882          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10883          hardcode_libdir_separator_CXX=:
10884    
10885        case $host_cpu in        case $host_cpu in
10886        hppa*64*)        hppa*64*|ia64*)
         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'  
10887          hardcode_libdir_flag_spec_ld_CXX='+b $libdir'          hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
         hardcode_libdir_separator_CXX=:  
         ;;  
       ia64*)  
         hardcode_libdir_flag_spec_CXX='-L$libdir'  
10888          ;;          ;;
10889        *)        *)
         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'  
         hardcode_libdir_separator_CXX=:  
10890          export_dynamic_flag_spec_CXX='${wl}-E'          export_dynamic_flag_spec_CXX='${wl}-E'
10891          ;;          ;;
10892        esac        esac
10893      fi      fi
10894      case $host_cpu in      case $host_cpu in
10895      hppa*64*)      hppa*64*|ia64*)
10896        hardcode_direct_CXX=no        hardcode_direct_CXX=no
10897        hardcode_shlibpath_var_CXX=no        hardcode_shlibpath_var_CXX=no
10898        ;;        ;;
     ia64*)  
       hardcode_direct_CXX=no  
       hardcode_shlibpath_var_CXX=no  
       hardcode_minus_L_CXX=yes # Not in the search PATH,  
                                               # but as the default  
                                               # location of the library.  
       ;;  
10899      *)      *)
10900        hardcode_direct_CXX=yes        hardcode_direct_CXX=yes
10901        hardcode_minus_L_CXX=yes # Not in the search PATH,        hardcode_minus_L_CXX=yes # Not in the search PATH,
# Line 10738  if test -z "$aix_libpath"; then aix_libp Line 10911  if test -z "$aix_libpath"; then aix_libp
10911          ;;          ;;
10912        aCC*)        aCC*)
10913          case $host_cpu in          case $host_cpu in
10914          hppa*64*|ia64*)          hppa*64*)
10915            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10916              ;;
10917            ia64*)
10918              archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10919            ;;            ;;
10920          *)          *)
10921            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
# Line 10759  if test -z "$aix_libpath"; then aix_libp Line 10935  if test -z "$aix_libpath"; then aix_libp
10935          if test "$GXX" = yes; then          if test "$GXX" = yes; then
10936            if test $with_gnu_ld = no; then            if test $with_gnu_ld = no; then
10937              case $host_cpu in              case $host_cpu in
10938              ia64*|hppa*64*)              hppa*64*)
10939                archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'                archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10940                  ;;
10941                ia64*)
10942                  archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10943                ;;                ;;
10944              *)              *)
10945                archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'                archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
# Line 10774  if test -z "$aix_libpath"; then aix_libp Line 10953  if test -z "$aix_libpath"; then aix_libp
10953          ;;          ;;
10954      esac      esac
10955      ;;      ;;
10956      interix3*)
10957        hardcode_direct_CXX=no
10958        hardcode_shlibpath_var_CXX=no
10959        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10960        export_dynamic_flag_spec_CXX='${wl}-E'
10961        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10962        # Instead, shared libraries are loaded at an image base (0x10000000 by
10963        # default) and relocated if they conflict, which is a slow very memory
10964        # consuming and fragmenting process.  To avoid this, we pick a random,
10965        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10966        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10967        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10968        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10969        ;;
10970    irix5* | irix6*)    irix5* | irix6*)
10971      case $cc_basename in      case $cc_basename in
10972        CC*)        CC*)
# Line 11056  if test -z "$aix_libpath"; then aix_libp Line 11249  if test -z "$aix_libpath"; then aix_libp
11249      # FIXME: insert proper C++ library support      # FIXME: insert proper C++ library support
11250      ld_shlibs_CXX=no      ld_shlibs_CXX=no
11251      ;;      ;;
   sco*)  
     archive_cmds_need_lc_CXX=no  
     case $cc_basename in  
       CC*)  
         # FIXME: insert proper C++ library support  
         ld_shlibs_CXX=no  
         ;;  
       *)  
         # FIXME: insert proper C++ library support  
         ld_shlibs_CXX=no  
         ;;  
     esac  
     ;;  
11252    sunos4*)    sunos4*)
11253      case $cc_basename in      case $cc_basename in
11254        CC*)        CC*)
# Line 11161  if test -z "$aix_libpath"; then aix_libp Line 11341  if test -z "$aix_libpath"; then aix_libp
11341          ;;          ;;
11342      esac      esac
11343      ;;      ;;
11344    sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11345        no_undefined_flag_CXX='${wl}-z,text'
11346      archive_cmds_need_lc_CXX=no      archive_cmds_need_lc_CXX=no
11347        hardcode_shlibpath_var_CXX=no
11348        runpath_var='LD_RUN_PATH'
11349    
11350        case $cc_basename in
11351          CC*)
11352            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11353            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11354            ;;
11355          *)
11356            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11357            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11358            ;;
11359        esac
11360        ;;
11361      sysv5* | sco3.2v5* | sco5v6*)
11362        # Note: We can NOT use -z defs as we might desire, because we do not
11363        # link with -lc, and that would cause any symbols used from libc to
11364        # always be unresolved, which means just about no library would
11365        # ever link correctly.  If we're not using GNU ld we use -z text
11366        # though, which does catch some bad symbols but isn't as heavy-handed
11367        # as -z defs.
11368        # For security reasons, it is highly recommended that you always
11369        # use absolute paths for naming shared libraries, and exclude the
11370        # DT_RUNPATH tag from executables and libraries.  But doing so
11371        # requires that you compile everything twice, which is a pain.
11372        # So that behaviour is only enabled if SCOABSPATH is set to a
11373        # non-empty value in the environment.  Most likely only useful for
11374        # creating official distributions of packages.
11375        # This is a hack until libtool officially supports absolute path
11376        # names for shared libraries.
11377        no_undefined_flag_CXX='${wl}-z,text'
11378        allow_undefined_flag_CXX='${wl}-z,nodefs'
11379        archive_cmds_need_lc_CXX=no
11380        hardcode_shlibpath_var_CXX=no
11381        hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11382        hardcode_libdir_separator_CXX=':'
11383        link_all_deplibs_CXX=yes
11384        export_dynamic_flag_spec_CXX='${wl}-Bexport'
11385        runpath_var='LD_RUN_PATH'
11386    
11387        case $cc_basename in
11388          CC*)
11389            archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11390            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11391            ;;
11392          *)
11393            archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11394            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11395            ;;
11396        esac
11397      ;;      ;;
11398    tandem*)    tandem*)
11399      case $cc_basename in      case $cc_basename in
# Line 11301  $rm -f confest.$objext Line 11532  $rm -f confest.$objext
11532    
11533  # PORTME: override above test on systems where it is broken  # PORTME: override above test on systems where it is broken
11534  case $host_os in  case $host_os in
11535    interix3*)
11536      # Interix 3.5 installs completely hosed .la files for C++, so rather than
11537      # hack all around it, let's just trust "g++" to DTRT.
11538      predep_objects_CXX=
11539      postdep_objects_CXX=
11540      postdeps_CXX=
11541      ;;
11542    
11543  solaris*)  solaris*)
11544    case $cc_basename in    case $cc_basename in
11545    CC*)    CC*)
# Line 11310  solaris*) Line 11549  solaris*)
11549      postdeps_CXX='-lCstd -lCrun'      postdeps_CXX='-lCstd -lCrun'
11550      ;;      ;;
11551    esac    esac
11552      ;;
11553  esac  esac
11554    
11555    
# Line 11360  echo $ECHO_N "checking for $compiler opt Line 11600  echo $ECHO_N "checking for $compiler opt
11600        # DJGPP does not support shared libraries at all        # DJGPP does not support shared libraries at all
11601        lt_prog_compiler_pic_CXX=        lt_prog_compiler_pic_CXX=
11602        ;;        ;;
11603        interix3*)
11604          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11605          # Instead, we relocate shared libraries at runtime.
11606          ;;
11607      sysv4*MP*)      sysv4*MP*)
11608        if test -d /usr/nec; then        if test -d /usr/nec; then
11609          lt_prog_compiler_pic_CXX=-Kconform_pic          lt_prog_compiler_pic_CXX=-Kconform_pic
# Line 11429  echo $ECHO_N "checking for $compiler opt Line 11673  echo $ECHO_N "checking for $compiler opt
11673          case $cc_basename in          case $cc_basename in
11674            CC*)            CC*)
11675              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11676              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11677              if test "$host_cpu" != ia64; then              if test "$host_cpu" != ia64; then
11678                lt_prog_compiler_pic_CXX='+Z'                lt_prog_compiler_pic_CXX='+Z'
11679              fi              fi
11680              ;;              ;;
11681            aCC*)            aCC*)
11682              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11683              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11684              case $host_cpu in              case $host_cpu in
11685              hppa*64*|ia64*)              hppa*64*|ia64*)
11686                # +Z the default                # +Z the default
# Line 11450  echo $ECHO_N "checking for $compiler opt Line 11694  echo $ECHO_N "checking for $compiler opt
11694              ;;              ;;
11695          esac          esac
11696          ;;          ;;
11697          interix*)
11698            # This is c89, which is MS Visual C++ (no shared libs)
11699            # Anyone wants to do a port?
11700            ;;
11701        irix5* | irix6* | nonstopux*)        irix5* | irix6* | nonstopux*)
11702          case $cc_basename in          case $cc_basename in
11703            CC*)            CC*)
# Line 11529  echo $ECHO_N "checking for $compiler opt Line 11777  echo $ECHO_N "checking for $compiler opt
11777          ;;          ;;
11778        psos*)        psos*)
11779          ;;          ;;
       sco*)  
         case $cc_basename in  
           CC*)  
             lt_prog_compiler_pic_CXX='-fPIC'  
             ;;  
           *)  
             ;;  
         esac  
         ;;  
11780        solaris*)        solaris*)
11781          case $cc_basename in          case $cc_basename in
11782            CC*)            CC*)
# Line 11579  echo $ECHO_N "checking for $compiler opt Line 11818  echo $ECHO_N "checking for $compiler opt
11818              ;;              ;;
11819          esac          esac
11820          ;;          ;;
11821        unixware*)        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11822            case $cc_basename in
11823              CC*)
11824                lt_prog_compiler_wl_CXX='-Wl,'
11825                lt_prog_compiler_pic_CXX='-KPIC'
11826                lt_prog_compiler_static_CXX='-Bstatic'
11827                ;;
11828            esac
11829          ;;          ;;
11830        vxworks*)        vxworks*)
11831          ;;          ;;
# Line 11615  else Line 11861  else
11861     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11862     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11863     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
11864     (eval echo "\"\$as_me:11618: $lt_compile\"" >&5)     (eval echo "\"\$as_me:11864: $lt_compile\"" >&5)
11865     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
11866     ac_status=$?     ac_status=$?
11867     cat conftest.err >&5     cat conftest.err >&5
11868     echo "$as_me:11622: \$? = $ac_status" >&5     echo "$as_me:11868: \$? = $ac_status" >&5
11869     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
11870       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
11871       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
11872       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11873       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11874       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11875         lt_prog_compiler_pic_works_CXX=yes         lt_prog_compiler_pic_works_CXX=yes
11876       fi       fi
11877     fi     fi
# Line 11656  case $host_os in Line 11902  case $host_os in
11902      ;;      ;;
11903  esac  esac
11904    
11905    #
11906    # Check to make sure the static flag actually works.
11907    #
11908    wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11909    echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11910    echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11911    if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11912      echo $ECHO_N "(cached) $ECHO_C" >&6
11913    else
11914      lt_prog_compiler_static_works_CXX=no
11915       save_LDFLAGS="$LDFLAGS"
11916       LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11917       printf "$lt_simple_link_test_code" > conftest.$ac_ext
11918       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11919         # The linker can only warn and ignore the option if not recognized
11920         # So say no if there are warnings
11921         if test -s conftest.err; then
11922           # Append any errors to the config.log.
11923           cat conftest.err 1>&5
11924           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11925           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11926           if diff conftest.exp conftest.er2 >/dev/null; then
11927             lt_prog_compiler_static_works_CXX=yes
11928           fi
11929         else
11930           lt_prog_compiler_static_works_CXX=yes
11931         fi
11932       fi
11933       $rm conftest*
11934       LDFLAGS="$save_LDFLAGS"
11935    
11936    fi
11937    echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11938    echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11939    
11940    if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11941        :
11942    else
11943        lt_prog_compiler_static_CXX=
11944    fi
11945    
11946    
11947  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11948  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11949  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
# Line 11677  else Line 11965  else
11965     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11966     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11967     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
11968     (eval echo "\"\$as_me:11680: $lt_compile\"" >&5)     (eval echo "\"\$as_me:11968: $lt_compile\"" >&5)
11969     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
11970     ac_status=$?     ac_status=$?
11971     cat out/conftest.err >&5     cat out/conftest.err >&5
11972     echo "$as_me:11684: \$? = $ac_status" >&5     echo "$as_me:11972: \$? = $ac_status" >&5
11973     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
11974     then     then
11975       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
11976       # So say no if there are warnings       # So say no if there are warnings
11977       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11978       $SED '/^$/d' out/conftest.err >out/conftest.er2       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11979       if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11980         lt_cv_prog_compiler_c_o_CXX=yes         lt_cv_prog_compiler_c_o_CXX=yes
11981       fi       fi
11982     fi     fi
# Line 11758  echo "$as_me:$LINENO: result: $ld_shlibs Line 12046  echo "$as_me:$LINENO: result: $ld_shlibs
12046  echo "${ECHO_T}$ld_shlibs_CXX" >&6  echo "${ECHO_T}$ld_shlibs_CXX" >&6
12047  test "$ld_shlibs_CXX" = no && can_build_shared=no  test "$ld_shlibs_CXX" = no && can_build_shared=no
12048    
 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  
 if test "$GCC" = yes; then  
   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"  
 fi  
   
12049  #  #
12050  # Do we need to explicitly link libc?  # Do we need to explicitly link libc?
12051  #  #
# Line 11795  echo $ECHO_N "checking whether -lc shoul Line 12078  echo $ECHO_N "checking whether -lc shoul
12078          libobjs=conftest.$ac_objext          libobjs=conftest.$ac_objext
12079          deplibs=          deplibs=
12080          wl=$lt_prog_compiler_wl_CXX          wl=$lt_prog_compiler_wl_CXX
12081            pic_flag=$lt_prog_compiler_pic_CXX
12082          compiler_flags=-v          compiler_flags=-v
12083          linker_flags=-v          linker_flags=-v
12084          verstring=          verstring=
# Line 12076  freebsd* | dragonfly*) Line 12360  freebsd* | dragonfly*)
12360      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
12361      hardcode_into_libs=yes      hardcode_into_libs=yes
12362      ;;      ;;
12363    *) # from 3.2 on    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12364      freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12365      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
12366      hardcode_into_libs=yes      hardcode_into_libs=yes
12367      ;;      ;;
12368      freebsd*) # from 4.6 on
12369        shlibpath_overrides_runpath=yes
12370        hardcode_into_libs=yes
12371        ;;
12372    esac    esac
12373    ;;    ;;
12374    
# Line 12139  hpux9* | hpux10* | hpux11*) Line 12428  hpux9* | hpux10* | hpux11*)
12428    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
12429    ;;    ;;
12430    
12431    interix3*)
12432      version_type=linux
12433      need_lib_prefix=no
12434      need_version=no
12435      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12436      soname_spec='${libname}${release}${shared_ext}$major'
12437      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12438      shlibpath_var=LD_LIBRARY_PATH
12439      shlibpath_overrides_runpath=no
12440      hardcode_into_libs=yes
12441      ;;
12442    
12443  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
12444    case $host_os in    case $host_os in
12445      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
# Line 12260  nto-qnx*) Line 12561  nto-qnx*)
12561    
12562  openbsd*)  openbsd*)
12563    version_type=sunos    version_type=sunos
12564      sys_lib_dlsearch_path_spec="/usr/lib"
12565    need_lib_prefix=no    need_lib_prefix=no
12566    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12567    case $host_os in    case $host_os in
# Line 12303  osf3* | osf4* | osf5*) Line 12605  osf3* | osf4* | osf5*)
12605    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12606    ;;    ;;
12607    
 sco3.2v5*)  
   version_type=osf  
   soname_spec='${libname}${release}${shared_ext}$major'  
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
12608  solaris*)  solaris*)
12609    version_type=linux    version_type=linux
12610    need_lib_prefix=no    need_lib_prefix=no
# Line 12335  sunos4*) Line 12630  sunos4*)
12630    need_version=yes    need_version=yes
12631    ;;    ;;
12632    
12633  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
12634    version_type=linux    version_type=linux
12635    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}'
12636    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
# Line 12368  sysv4*MP*) Line 12663  sysv4*MP*)
12663    fi    fi
12664    ;;    ;;
12665    
12666    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12667      version_type=freebsd-elf
12668      need_lib_prefix=no
12669      need_version=no
12670      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12671      soname_spec='${libname}${release}${shared_ext}$major'
12672      shlibpath_var=LD_LIBRARY_PATH
12673      hardcode_into_libs=yes
12674      if test "$with_gnu_ld" = yes; then
12675        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12676        shlibpath_overrides_runpath=no
12677      else
12678        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12679        shlibpath_overrides_runpath=yes
12680        case $host_os in
12681          sco3.2v5*)
12682            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12683            ;;
12684        esac
12685      fi
12686      sys_lib_dlsearch_path_spec='/usr/lib'
12687      ;;
12688    
12689  uts4*)  uts4*)
12690    version_type=linux    version_type=linux
12691    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 12383  echo "$as_me:$LINENO: result: $dynamic_l Line 12701  echo "$as_me:$LINENO: result: $dynamic_l
12701  echo "${ECHO_T}$dynamic_linker" >&6  echo "${ECHO_T}$dynamic_linker" >&6
12702  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
12703    
12704    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12705    if test "$GCC" = yes; then
12706      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12707    fi
12708    
12709  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12710  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
12711  hardcode_action_CXX=  hardcode_action_CXX=
# Line 12420  elif test "$shlibpath_overrides_runpath" Line 12743  elif test "$shlibpath_overrides_runpath"
12743    enable_fast_install=needless    enable_fast_install=needless
12744  fi  fi
12745    
 striplib=  
 old_striplib=  
 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5  
 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6  
 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  
   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"  
   test -z "$striplib" && striplib="$STRIP --strip-unneeded"  
   echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
 else  
 # FIXME - insert some real tests, host_os isn't really good enough  
   case $host_os in  
    darwin*)  
        if test -n "$STRIP" ; then  
          striplib="$STRIP -x"  
          echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
        else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
        ;;  
    *)  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
     ;;  
   esac  
 fi  
   
 if test "x$enable_dlopen" != xyes; then  
   enable_dlopen=unknown  
   enable_dlopen_self=unknown  
   enable_dlopen_self_static=unknown  
 else  
   lt_cv_dlopen=no  
   lt_cv_dlopen_libs=  
   
   case $host_os in  
   beos*)  
     lt_cv_dlopen="load_add_on"  
     lt_cv_dlopen_libs=  
     lt_cv_dlopen_self=yes  
     ;;  
   
   mingw* | pw32*)  
     lt_cv_dlopen="LoadLibrary"  
     lt_cv_dlopen_libs=  
    ;;  
   
   cygwin*)  
     lt_cv_dlopen="dlopen"  
     lt_cv_dlopen_libs=  
    ;;  
   
   darwin*)  
   # if libdl is installed we need to link against it  
     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5  
 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  
 if test "${ac_cv_lib_dl_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldl  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dl_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dl_dlopen=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6  
 if test $ac_cv_lib_dl_dlopen = yes; then  
   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"  
 else  
   
     lt_cv_dlopen="dyld"  
     lt_cv_dlopen_libs=  
     lt_cv_dlopen_self=yes  
   
 fi  
   
    ;;  
   
   *)  
     echo "$as_me:$LINENO: checking for shl_load" >&5  
 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6  
 if test "${ac_cv_func_shl_load+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define shl_load innocuous_shl_load  
   
 /* System header to define __stub macros and hopefully few prototypes,  
     which can conflict with char shl_load (); below.  
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef shl_load  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char shl_load ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined (__stub_shl_load) || defined (__stub___shl_load)  
 choke me  
 #else  
 char (*f) () = shl_load;  
 #endif  
 #ifdef __cplusplus  
 }  
 #endif  
   
 int  
 main ()  
 {  
 return f != shl_load;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_shl_load=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_shl_load=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5  
 echo "${ECHO_T}$ac_cv_func_shl_load" >&6  
 if test $ac_cv_func_shl_load = yes; then  
   lt_cv_dlopen="shl_load"  
 else  
   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5  
 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6  
 if test "${ac_cv_lib_dld_shl_load+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldld  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char shl_load ();  
 int  
 main ()  
 {  
 shl_load ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dld_shl_load=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dld_shl_load=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5  
 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6  
 if test $ac_cv_lib_dld_shl_load = yes; then  
   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"  
 else  
   echo "$as_me:$LINENO: checking for dlopen" >&5  
 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6  
 if test "${ac_cv_func_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define dlopen innocuous_dlopen  
   
 /* System header to define __stub macros and hopefully few prototypes,  
     which can conflict with char dlopen (); below.  
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef dlopen  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined (__stub_dlopen) || defined (__stub___dlopen)  
 choke me  
 #else  
 char (*f) () = dlopen;  
 #endif  
 #ifdef __cplusplus  
 }  
 #endif  
   
 int  
 main ()  
 {  
 return f != dlopen;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_func_dlopen=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_func_dlopen" >&6  
 if test $ac_cv_func_dlopen = yes; then  
   lt_cv_dlopen="dlopen"  
 else  
   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5  
 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  
 if test "${ac_cv_lib_dl_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldl  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dl_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dl_dlopen=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6  
 if test $ac_cv_lib_dl_dlopen = yes; then  
   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"  
 else  
   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5  
 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6  
 if test "${ac_cv_lib_svld_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lsvld  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_svld_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_svld_dlopen=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6  
 if test $ac_cv_lib_svld_dlopen = yes; then  
   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"  
 else  
   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5  
 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6  
 if test "${ac_cv_lib_dld_dld_link+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldld  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dld_link ();  
 int  
 main ()  
 {  
 dld_link ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dld_dld_link=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dld_dld_link=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5  
 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6  
 if test $ac_cv_lib_dld_dld_link = yes; then  
   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"  
 fi  
   
   
 fi  
   
   
 fi  
   
   
 fi  
   
   
 fi  
   
   
 fi  
   
     ;;  
   esac  
   
   if test "x$lt_cv_dlopen" != xno; then  
     enable_dlopen=yes  
   else  
     enable_dlopen=no  
   fi  
   
   case $lt_cv_dlopen in  
   dlopen)  
     save_CPPFLAGS="$CPPFLAGS"  
     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"  
   
     save_LDFLAGS="$LDFLAGS"  
     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"  
   
     save_LIBS="$LIBS"  
     LIBS="$lt_cv_dlopen_libs $LIBS"  
   
     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5  
 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6  
 if test "${lt_cv_dlopen_self+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
           if test "$cross_compiling" = yes; then :  
   lt_cv_dlopen_self=cross  
 else  
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2  
   lt_status=$lt_dlunknown  
   cat > conftest.$ac_ext <<EOF  
 #line 13057 "configure"  
 #include "confdefs.h"  
   
 #if HAVE_DLFCN_H  
 #include <dlfcn.h>  
 #endif  
   
 #include <stdio.h>  
   
 #ifdef RTLD_GLOBAL  
 #  define LT_DLGLOBAL           RTLD_GLOBAL  
 #else  
 #  ifdef DL_GLOBAL  
 #    define LT_DLGLOBAL         DL_GLOBAL  
 #  else  
 #    define LT_DLGLOBAL         0  
 #  endif  
 #endif  
   
 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we  
    find out it does not work in some platform. */  
 #ifndef LT_DLLAZY_OR_NOW  
 #  ifdef RTLD_LAZY  
 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY  
 #  else  
 #    ifdef DL_LAZY  
 #      define LT_DLLAZY_OR_NOW          DL_LAZY  
 #    else  
 #      ifdef RTLD_NOW  
 #        define LT_DLLAZY_OR_NOW        RTLD_NOW  
 #      else  
 #        ifdef DL_NOW  
 #          define LT_DLLAZY_OR_NOW      DL_NOW  
 #        else  
 #          define LT_DLLAZY_OR_NOW      0  
 #        endif  
 #      endif  
 #    endif  
 #  endif  
 #endif  
   
 #ifdef __cplusplus  
 extern "C" void exit (int);  
 #endif  
   
 void fnord() { int i=42;}  
 int main ()  
 {  
   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);  
   int status = $lt_dlunknown;  
   
   if (self)  
     {  
       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;  
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;  
       /* dlclose (self); */  
     }  
   
     exit (status);  
 }  
 EOF  
   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then  
     (./conftest; exit; ) >&5 2>/dev/null  
     lt_status=$?  
     case x$lt_status in  
       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;  
       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;  
       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;  
     esac  
   else :  
     # compilation failed  
     lt_cv_dlopen_self=no  
   fi  
 fi  
 rm -fr conftest*  
   
   
 fi  
 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5  
 echo "${ECHO_T}$lt_cv_dlopen_self" >&6  
   
     if test "x$lt_cv_dlopen_self" = xyes; then  
       LDFLAGS="$LDFLAGS $link_static_flag"  
       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5  
 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6  
 if test "${lt_cv_dlopen_self_static+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
           if test "$cross_compiling" = yes; then :  
   lt_cv_dlopen_self_static=cross  
 else  
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2  
   lt_status=$lt_dlunknown  
   cat > conftest.$ac_ext <<EOF  
 #line 13155 "configure"  
 #include "confdefs.h"  
   
 #if HAVE_DLFCN_H  
 #include <dlfcn.h>  
 #endif  
   
 #include <stdio.h>  
   
 #ifdef RTLD_GLOBAL  
 #  define LT_DLGLOBAL           RTLD_GLOBAL  
 #else  
 #  ifdef DL_GLOBAL  
 #    define LT_DLGLOBAL         DL_GLOBAL  
 #  else  
 #    define LT_DLGLOBAL         0  
 #  endif  
 #endif  
   
 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we  
    find out it does not work in some platform. */  
 #ifndef LT_DLLAZY_OR_NOW  
 #  ifdef RTLD_LAZY  
 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY  
 #  else  
 #    ifdef DL_LAZY  
 #      define LT_DLLAZY_OR_NOW          DL_LAZY  
 #    else  
 #      ifdef RTLD_NOW  
 #        define LT_DLLAZY_OR_NOW        RTLD_NOW  
 #      else  
 #        ifdef DL_NOW  
 #          define LT_DLLAZY_OR_NOW      DL_NOW  
 #        else  
 #          define LT_DLLAZY_OR_NOW      0  
 #        endif  
 #      endif  
 #    endif  
 #  endif  
 #endif  
   
 #ifdef __cplusplus  
 extern "C" void exit (int);  
 #endif  
   
 void fnord() { int i=42;}  
 int main ()  
 {  
   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);  
   int status = $lt_dlunknown;  
   
   if (self)  
     {  
       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;  
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;  
       /* dlclose (self); */  
     }  
   
     exit (status);  
 }  
 EOF  
   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then  
     (./conftest; exit; ) >&5 2>/dev/null  
     lt_status=$?  
     case x$lt_status in  
       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;  
       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;  
       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;  
     esac  
   else :  
     # compilation failed  
     lt_cv_dlopen_self_static=no  
   fi  
 fi  
 rm -fr conftest*  
   
   
 fi  
 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5  
 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6  
     fi  
   
     CPPFLAGS="$save_CPPFLAGS"  
     LDFLAGS="$save_LDFLAGS"  
     LIBS="$save_LIBS"  
     ;;  
   esac  
   
   case $lt_cv_dlopen_self in  
   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;  
   *) enable_dlopen_self=unknown ;;  
   esac  
   
   case $lt_cv_dlopen_self_static in  
   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;  
   *) enable_dlopen_self_static=unknown ;;  
   esac  
 fi  
   
12746    
12747  # The else clause should only fire when bootstrapping the  # The else clause should only fire when bootstrapping the
12748  # libtool distribution, otherwise you forgot to ship ltmain.sh  # libtool distribution, otherwise you forgot to ship ltmain.sh
# Line 13269  if test -f "$ltmain"; then Line 12757  if test -f "$ltmain"; then
12757    # Now quote all the things that may contain metacharacters while being    # Now quote all the things that may contain metacharacters while being
12758    # careful not to overquote the AC_SUBSTed values.  We take copies of the    # careful not to overquote the AC_SUBSTed values.  We take copies of the
12759    # variables and quote the copies for generation of the libtool script.    # variables and quote the copies for generation of the libtool script.
12760    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12761      SED SHELL STRIP \      SED SHELL STRIP \
12762      libname_spec library_names_spec soname_spec extract_expsyms_cmds \      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12763      old_striplib striplib file_magic_cmd finish_cmds finish_eval \      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
# Line 13387  AR_FLAGS=$lt_AR_FLAGS Line 12875  AR_FLAGS=$lt_AR_FLAGS
12875  # A C compiler.  # A C compiler.
12876  LTCC=$lt_LTCC  LTCC=$lt_LTCC
12877    
12878    # LTCC compiler flags.
12879    LTCFLAGS=$lt_LTCFLAGS
12880    
12881  # A language-specific compiler.  # A language-specific compiler.
12882  CC=$lt_compiler_CXX  CC=$lt_compiler_CXX
12883    
# Line 13729  lt_simple_link_test_code="      program Line 13220  lt_simple_link_test_code="      program
13220  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
13221  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
13222    
13223    # If no C compiler flags were specified, use CFLAGS.
13224    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13225    
13226  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
13227  compiler=$CC  compiler=$CC
13228    
# Line 13736  compiler=$CC Line 13230  compiler=$CC
13230  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
13231  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
13232  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13233  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13234  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
13235  $rm conftest*  $rm conftest*
13236    
13237  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
13238  printf "$lt_simple_link_test_code" >conftest.$ac_ext  printf "$lt_simple_link_test_code" >conftest.$ac_ext
13239  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13240  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
13241  $rm conftest*  $rm conftest*
13242    
# Line 13798  test "$enable_shared" = yes || enable_st Line 13292  test "$enable_shared" = yes || enable_st
13292  echo "$as_me:$LINENO: result: $enable_static" >&5  echo "$as_me:$LINENO: result: $enable_static" >&5
13293  echo "${ECHO_T}$enable_static" >&6  echo "${ECHO_T}$enable_static" >&6
13294    
 test "$ld_shlibs_F77" = no && can_build_shared=no  
   
13295  GCC_F77="$G77"  GCC_F77="$G77"
13296  LD_F77="$LD"  LD_F77="$LD"
13297    
# Line 13846  echo $ECHO_N "checking for $compiler opt Line 13338  echo $ECHO_N "checking for $compiler opt
13338        lt_prog_compiler_pic_F77='-fno-common'        lt_prog_compiler_pic_F77='-fno-common'
13339        ;;        ;;
13340    
13341        interix3*)
13342          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13343          # Instead, we relocate shared libraries at runtime.
13344          ;;
13345    
13346      msdosdjgpp*)      msdosdjgpp*)
13347        # Just because we use GCC doesn't mean we suddenly get shared libraries        # Just because we use GCC doesn't mean we suddenly get shared libraries
13348        # on systems that don't support them.        # on systems that don't support them.
# Line 13954  echo $ECHO_N "checking for $compiler opt Line 13451  echo $ECHO_N "checking for $compiler opt
13451        esac        esac
13452        ;;        ;;
13453    
13454        freebsd*)
13455          case $cc_basename in
13456          icc* | ecc*)
13457            lt_prog_compiler_wl_F77='-Wl,'
13458            lt_prog_compiler_pic_F77='-KPIC'
13459            lt_prog_compiler_static_F77='-static'
13460            ;;
13461          ccc*)
13462            lt_prog_compiler_wl_F77='-Wl,'
13463            # All Alpha code is PIC.
13464            lt_prog_compiler_static_F77='-non_shared'
13465            ;;
13466          esac
13467          ;;
13468    
13469      osf3* | osf4* | osf5*)      osf3* | osf4* | osf5*)
13470        lt_prog_compiler_wl_F77='-Wl,'        lt_prog_compiler_wl_F77='-Wl,'
13471        # All OSF/1 code is PIC.        # All OSF/1 code is PIC.
13472        lt_prog_compiler_static_F77='-non_shared'        lt_prog_compiler_static_F77='-non_shared'
13473        ;;        ;;
13474    
     sco3.2v5*)  
       lt_prog_compiler_pic_F77='-Kpic'  
       lt_prog_compiler_static_F77='-dn'  
       ;;  
   
13475      solaris*)      solaris*)
13476        lt_prog_compiler_pic_F77='-KPIC'        lt_prog_compiler_pic_F77='-KPIC'
13477        lt_prog_compiler_static_F77='-Bstatic'        lt_prog_compiler_static_F77='-Bstatic'
# Line 13982  echo $ECHO_N "checking for $compiler opt Line 13489  echo $ECHO_N "checking for $compiler opt
13489        lt_prog_compiler_static_F77='-Bstatic'        lt_prog_compiler_static_F77='-Bstatic'
13490        ;;        ;;
13491    
13492      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      sysv4 | sysv4.2uw2* | sysv4.3*)
13493        lt_prog_compiler_wl_F77='-Wl,'        lt_prog_compiler_wl_F77='-Wl,'
13494        lt_prog_compiler_pic_F77='-KPIC'        lt_prog_compiler_pic_F77='-KPIC'
13495        lt_prog_compiler_static_F77='-Bstatic'        lt_prog_compiler_static_F77='-Bstatic'
# Line 13995  echo $ECHO_N "checking for $compiler opt Line 13502  echo $ECHO_N "checking for $compiler opt
13502        fi        fi
13503        ;;        ;;
13504    
13505        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13506          lt_prog_compiler_wl_F77='-Wl,'
13507          lt_prog_compiler_pic_F77='-KPIC'
13508          lt_prog_compiler_static_F77='-Bstatic'
13509          ;;
13510    
13511      unicos*)      unicos*)
13512        lt_prog_compiler_wl_F77='-Wl,'        lt_prog_compiler_wl_F77='-Wl,'
13513        lt_prog_compiler_can_build_shared_F77=no        lt_prog_compiler_can_build_shared_F77=no
# Line 14037  else Line 13550  else
13550     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13551     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13552     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
13553     (eval echo "\"\$as_me:14040: $lt_compile\"" >&5)     (eval echo "\"\$as_me:13553: $lt_compile\"" >&5)
13554     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
13555     ac_status=$?     ac_status=$?
13556     cat conftest.err >&5     cat conftest.err >&5
13557     echo "$as_me:14044: \$? = $ac_status" >&5     echo "$as_me:13557: \$? = $ac_status" >&5
13558     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
13559       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
13560       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
13561       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13562       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13563       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13564         lt_prog_compiler_pic_works_F77=yes         lt_prog_compiler_pic_works_F77=yes
13565       fi       fi
13566     fi     fi
# Line 14078  case $host_os in Line 13591  case $host_os in
13591      ;;      ;;
13592  esac  esac
13593    
13594    #
13595    # Check to make sure the static flag actually works.
13596    #
13597    wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13598    echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13599    echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13600    if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13601      echo $ECHO_N "(cached) $ECHO_C" >&6
13602    else
13603      lt_prog_compiler_static_works_F77=no
13604       save_LDFLAGS="$LDFLAGS"
13605       LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13606       printf "$lt_simple_link_test_code" > conftest.$ac_ext
13607       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13608         # The linker can only warn and ignore the option if not recognized
13609         # So say no if there are warnings
13610         if test -s conftest.err; then
13611           # Append any errors to the config.log.
13612           cat conftest.err 1>&5
13613           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13614           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13615           if diff conftest.exp conftest.er2 >/dev/null; then
13616             lt_prog_compiler_static_works_F77=yes
13617           fi
13618         else
13619           lt_prog_compiler_static_works_F77=yes
13620         fi
13621       fi
13622       $rm conftest*
13623       LDFLAGS="$save_LDFLAGS"
13624    
13625    fi
13626    echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13627    echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13628    
13629    if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13630        :
13631    else
13632        lt_prog_compiler_static_F77=
13633    fi
13634    
13635    
13636  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13637  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13638  if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then  if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
# Line 14099  else Line 13654  else
13654     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13655     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13656     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
13657     (eval echo "\"\$as_me:14102: $lt_compile\"" >&5)     (eval echo "\"\$as_me:13657: $lt_compile\"" >&5)
13658     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
13659     ac_status=$?     ac_status=$?
13660     cat out/conftest.err >&5     cat out/conftest.err >&5
13661     echo "$as_me:14106: \$? = $ac_status" >&5     echo "$as_me:13661: \$? = $ac_status" >&5
13662     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
13663     then     then
13664       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
13665       # So say no if there are warnings       # So say no if there are warnings
13666       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13667       $SED '/^$/d' out/conftest.err >out/conftest.er2       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13668       if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13669         lt_cv_prog_compiler_c_o_F77=yes         lt_cv_prog_compiler_c_o_F77=yes
13670       fi       fi
13671     fi     fi
# Line 14210  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 13765  cc_basename=`$echo "X$cc_temp" | $Xsed -
13765        with_gnu_ld=no        with_gnu_ld=no
13766      fi      fi
13767      ;;      ;;
13768      interix*)
13769        # we just hope/assume this is gcc and not c89 (= MSVC++)
13770        with_gnu_ld=yes
13771        ;;
13772    openbsd*)    openbsd*)
13773      with_gnu_ld=no      with_gnu_ld=no
13774      ;;      ;;
# Line 14294  EOF Line 13853  EOF
13853        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 '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13854    
13855        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13856          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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13857          # If the export-symbols file already is a .def file (1st line          # If the export-symbols file already is a .def file (1st line
13858          # is EXPORTS), use it as is; otherwise, prepend...          # is EXPORTS), use it as is; otherwise, prepend...
13859          archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then          archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 14303  EOF Line 13862  EOF
13862            echo EXPORTS > $output_objdir/$soname.def;            echo EXPORTS > $output_objdir/$soname.def;
13863            cat $export_symbols >> $output_objdir/$soname.def;            cat $export_symbols >> $output_objdir/$soname.def;
13864          fi~          fi~
13865          $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13866        else        else
13867          ld_shlibs_F77=no          ld_shlibs_F77=no
13868        fi        fi
13869        ;;        ;;
13870    
13871        interix3*)
13872          hardcode_direct_F77=no
13873          hardcode_shlibpath_var_F77=no
13874          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13875          export_dynamic_flag_spec_F77='${wl}-E'
13876          # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13877          # Instead, shared libraries are loaded at an image base (0x10000000 by
13878          # default) and relocated if they conflict, which is a slow very memory
13879          # consuming and fragmenting process.  To avoid this, we pick a random,
13880          # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13881          # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13882          archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13883          archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13884          ;;
13885    
13886      linux*)      linux*)
13887        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13888          tmp_addflag=          tmp_addflag=
# Line 14350  EOF Line 13924  EOF
13924        fi        fi
13925        ;;        ;;
13926    
13927      solaris* | sysv5*)      solaris*)
13928        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13929          ld_shlibs_F77=no          ld_shlibs_F77=no
13930          cat <<EOF 1>&2          cat <<EOF 1>&2
# Line 14371  EOF Line 13945  EOF
13945        fi        fi
13946        ;;        ;;
13947    
13948        sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13949          case `$LD -v 2>&1` in
13950            *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13951            ld_shlibs_F77=no
13952            cat <<_LT_EOF 1>&2
13953    
13954    *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13955    *** reliably create shared libraries on SCO systems.  Therefore, libtool
13956    *** is disabling shared libraries support.  We urge you to upgrade GNU
13957    *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13958    *** your PATH or compiler configuration so that the native linker is
13959    *** used, and then restart.
13960    
13961    _LT_EOF
13962            ;;
13963            *)
13964              if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13965                hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13966                archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13967                archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13968              else
13969                ld_shlibs_F77=no
13970              fi
13971            ;;
13972          esac
13973          ;;
13974    
13975      sunos4*)      sunos4*)
13976        archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'        archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13977        wlarc=        wlarc=
# Line 14404  EOF Line 14005  EOF
14005        # Note: this linker hardcodes the directories in LIBPATH if there        # Note: this linker hardcodes the directories in LIBPATH if there
14006        # are no directories specified by -L.        # are no directories specified by -L.
14007        hardcode_minus_L_F77=yes        hardcode_minus_L_F77=yes
14008        if test "$GCC" = yes && test -z "$link_static_flag"; then        if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14009          # Neither direct hardcoding nor static linking is supported with a          # Neither direct hardcoding nor static linking is supported with a
14010          # broken collect2.          # broken collect2.
14011          hardcode_direct_F77=unsupported          hardcode_direct_F77=unsupported
# Line 14438  EOF Line 14039  EOF
14039              break              break
14040            fi            fi
14041            done            done
14042              ;;
14043          esac          esac
14044    
14045          exp_sym_flag='-bexport'          exp_sym_flag='-bexport'
# Line 14475  EOF Line 14077  EOF
14077            hardcode_libdir_flag_spec_F77='-L$libdir'            hardcode_libdir_flag_spec_F77='-L$libdir'
14078            hardcode_libdir_separator_F77=            hardcode_libdir_separator_F77=
14079            fi            fi
14080              ;;
14081          esac          esac
14082          shared_flag='-shared'          shared_flag='-shared'
14083          if test "$aix_use_runtimelinking" = yes; then          if test "$aix_use_runtimelinking" = yes; then
# Line 14487  EOF Line 14090  EOF
14090          # chokes on -Wl,-G. The following line is correct:          # chokes on -Wl,-G. The following line is correct:
14091            shared_flag='-G'            shared_flag='-G'
14092          else          else
14093          if test "$aix_use_runtimelinking" = yes; then            if test "$aix_use_runtimelinking" = yes; then
14094              shared_flag='${wl}-G'              shared_flag='${wl}-G'
14095            else            else
14096              shared_flag='${wl}-bM:SRE'              shared_flag='${wl}-bM:SRE'
14097          fi            fi
14098          fi          fi
14099        fi        fi
14100    
# Line 14546  rm -f conftest.err conftest.$ac_objext \ Line 14149  rm -f conftest.err conftest.$ac_objext \
14149  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14150    
14151         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14152          archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"          archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14153         else         else
14154          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
14155            hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'            hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14156            allow_undefined_flag_F77="-z nodefs"            allow_undefined_flag_F77="-z nodefs"
14157            archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"            archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14158          else          else
14159           # Determine the default libpath from the value encoded in an empty executable.           # Determine the default libpath from the value encoded in an empty executable.
14160           cat >conftest.$ac_ext <<_ACEOF           cat >conftest.$ac_ext <<_ACEOF
# Line 14601  if test -z "$aix_libpath"; then aix_libp Line 14204  if test -z "$aix_libpath"; then aix_libp
14204            # -berok will link without error, but may produce a broken library.            # -berok will link without error, but may produce a broken library.
14205            no_undefined_flag_F77=' ${wl}-bernotok'            no_undefined_flag_F77=' ${wl}-bernotok'
14206            allow_undefined_flag_F77=' ${wl}-berok'            allow_undefined_flag_F77=' ${wl}-berok'
           # -bexpall does not export symbols beginning with underscore (_)  
           always_export_symbols_F77=yes  
14207            # Exported symbols can be pulled into shared objects from archives            # Exported symbols can be pulled into shared objects from archives
14208            whole_archive_flag_spec_F77=' '            whole_archive_flag_spec_F77='$convenience'
14209            archive_cmds_need_lc_F77=yes            archive_cmds_need_lc_F77=yes
14210            # This is similar to how AIX traditionally builds its shared libraries.            # This is similar to how AIX traditionally builds its shared libraries.
14211            archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'            archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14212          fi          fi
14213        fi        fi
14214        ;;        ;;
# Line 14748  if test -z "$aix_libpath"; then aix_libp Line 14349  if test -z "$aix_libpath"; then aix_libp
14349        export_dynamic_flag_spec_F77='${wl}-E'        export_dynamic_flag_spec_F77='${wl}-E'
14350        ;;        ;;
14351    
14352      hpux10* | hpux11*)      hpux10*)
14353          if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14354            archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14355          else
14356            archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14357          fi
14358          if test "$with_gnu_ld" = no; then
14359            hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14360            hardcode_libdir_separator_F77=:
14361    
14362            hardcode_direct_F77=yes
14363            export_dynamic_flag_spec_F77='${wl}-E'
14364    
14365            # hardcode_minus_L: Not really in the search PATH,
14366            # but as the default location of the library.
14367            hardcode_minus_L_F77=yes
14368          fi
14369          ;;
14370    
14371        hpux11*)
14372        if test "$GCC" = yes -a "$with_gnu_ld" = no; then        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14373          case $host_cpu in          case $host_cpu in
14374          hppa*64*|ia64*)          hppa*64*)
14375            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'
14376            ;;            ;;
14377            ia64*)
14378              archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14379              ;;
14380          *)          *)
14381            archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'            archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14382            ;;            ;;
14383          esac          esac
14384        else        else
14385          case $host_cpu in          case $host_cpu in
14386          hppa*64*|ia64*)          hppa*64*)
14387            archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'            archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14388              ;;
14389            ia64*)
14390              archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14391            ;;            ;;
14392          *)          *)
14393            archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'            archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14394            ;;            ;;
14395          esac          esac
14396        fi        fi
14397        if test "$with_gnu_ld" = no; then        if test "$with_gnu_ld" = no; then
14398            hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14399            hardcode_libdir_separator_F77=:
14400    
14401          case $host_cpu in          case $host_cpu in
14402          hppa*64*)          hppa*64*|ia64*)
           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'  
14403            hardcode_libdir_flag_spec_ld_F77='+b $libdir'            hardcode_libdir_flag_spec_ld_F77='+b $libdir'
           hardcode_libdir_separator_F77=:  
14404            hardcode_direct_F77=no            hardcode_direct_F77=no
14405            hardcode_shlibpath_var_F77=no            hardcode_shlibpath_var_F77=no
14406            ;;            ;;
         ia64*)  
           hardcode_libdir_flag_spec_F77='-L$libdir'  
           hardcode_direct_F77=no  
           hardcode_shlibpath_var_F77=no  
   
           # hardcode_minus_L: Not really in the search PATH,  
           # but as the default location of the library.  
           hardcode_minus_L_F77=yes  
           ;;  
14407          *)          *)
           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'  
           hardcode_libdir_separator_F77=:  
14408            hardcode_direct_F77=yes            hardcode_direct_F77=yes
14409            export_dynamic_flag_spec_F77='${wl}-E'            export_dynamic_flag_spec_F77='${wl}-E'
14410    
# Line 14890  if test -z "$aix_libpath"; then aix_libp Line 14506  if test -z "$aix_libpath"; then aix_libp
14506        hardcode_libdir_separator_F77=:        hardcode_libdir_separator_F77=:
14507        ;;        ;;
14508    
     sco3.2v5*)  
       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
       hardcode_shlibpath_var_F77=no  
       export_dynamic_flag_spec_F77='${wl}-Bexport'  
       runpath_var=LD_RUN_PATH  
       hardcode_runpath_var=yes  
       ;;  
   
14509      solaris*)      solaris*)
14510        no_undefined_flag_F77=' -z text'        no_undefined_flag_F77=' -z text'
14511        if test "$GCC" = yes; then        if test "$GCC" = yes; then
# Line 14983  if test -z "$aix_libpath"; then aix_libp Line 14591  if test -z "$aix_libpath"; then aix_libp
14591        fi        fi
14592        ;;        ;;
14593    
14594      sysv4.2uw2*)      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14595        archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'        no_undefined_flag_F77='${wl}-z,text'
14596        hardcode_direct_F77=yes        archive_cmds_need_lc_F77=no
       hardcode_minus_L_F77=no  
14597        hardcode_shlibpath_var_F77=no        hardcode_shlibpath_var_F77=no
14598        hardcode_runpath_var=yes        runpath_var='LD_RUN_PATH'
       runpath_var=LD_RUN_PATH  
       ;;  
14599    
    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)  
       no_undefined_flag_F77='${wl}-z ${wl}text'  
14600        if test "$GCC" = yes; then        if test "$GCC" = yes; then
14601          archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14602            archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14603        else        else
14604          archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14605            archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14606        fi        fi
       runpath_var='LD_RUN_PATH'  
       hardcode_shlibpath_var_F77=no  
14607        ;;        ;;
14608    
14609      sysv5*)      sysv5* | sco3.2v5* | sco5v6*)
14610        no_undefined_flag_F77=' -z text'        # Note: We can NOT use -z defs as we might desire, because we do not
14611        # $CC -shared without GNU ld will not create a library from C++        # link with -lc, and that would cause any symbols used from libc to
14612        # object files and a static libstdc++, better avoid it by now        # always be unresolved, which means just about no library would
14613        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'        # ever link correctly.  If we're not using GNU ld we use -z text
14614        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~        # though, which does catch some bad symbols but isn't as heavy-handed
14615                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'        # as -z defs.
14616        hardcode_libdir_flag_spec_F77=        no_undefined_flag_F77='${wl}-z,text'
14617          allow_undefined_flag_F77='${wl}-z,nodefs'
14618          archive_cmds_need_lc_F77=no
14619        hardcode_shlibpath_var_F77=no        hardcode_shlibpath_var_F77=no
14620          hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14621          hardcode_libdir_separator_F77=':'
14622          link_all_deplibs_F77=yes
14623          export_dynamic_flag_spec_F77='${wl}-Bexport'
14624        runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
14625    
14626          if test "$GCC" = yes; then
14627            archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14628            archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14629          else
14630            archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14631            archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14632          fi
14633        ;;        ;;
14634    
14635      uts4*)      uts4*)
# Line 15031  echo "$as_me:$LINENO: result: $ld_shlibs Line 14648  echo "$as_me:$LINENO: result: $ld_shlibs
14648  echo "${ECHO_T}$ld_shlibs_F77" >&6  echo "${ECHO_T}$ld_shlibs_F77" >&6
14649  test "$ld_shlibs_F77" = no && can_build_shared=no  test "$ld_shlibs_F77" = no && can_build_shared=no
14650    
 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  
 if test "$GCC" = yes; then  
   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"  
 fi  
   
14651  #  #
14652  # Do we need to explicitly link libc?  # Do we need to explicitly link libc?
14653  #  #
# Line 15068  echo $ECHO_N "checking whether -lc shoul Line 14680  echo $ECHO_N "checking whether -lc shoul
14680          libobjs=conftest.$ac_objext          libobjs=conftest.$ac_objext
14681          deplibs=          deplibs=
14682          wl=$lt_prog_compiler_wl_F77          wl=$lt_prog_compiler_wl_F77
14683            pic_flag=$lt_prog_compiler_pic_F77
14684          compiler_flags=-v          compiler_flags=-v
14685          linker_flags=-v          linker_flags=-v
14686          verstring=          verstring=
# Line 15349  freebsd* | dragonfly*) Line 14962  freebsd* | dragonfly*)
14962      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
14963      hardcode_into_libs=yes      hardcode_into_libs=yes
14964      ;;      ;;
14965    *) # from 3.2 on    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14966      freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14967      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
14968      hardcode_into_libs=yes      hardcode_into_libs=yes
14969      ;;      ;;
14970      freebsd*) # from 4.6 on
14971        shlibpath_overrides_runpath=yes
14972        hardcode_into_libs=yes
14973        ;;
14974    esac    esac
14975    ;;    ;;
14976    
# Line 15412  hpux9* | hpux10* | hpux11*) Line 15030  hpux9* | hpux10* | hpux11*)
15030    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
15031    ;;    ;;
15032    
15033    interix3*)
15034      version_type=linux
15035      need_lib_prefix=no
15036      need_version=no
15037      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15038      soname_spec='${libname}${release}${shared_ext}$major'
15039      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15040      shlibpath_var=LD_LIBRARY_PATH
15041      shlibpath_overrides_runpath=no
15042      hardcode_into_libs=yes
15043      ;;
15044    
15045  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
15046    case $host_os in    case $host_os in
15047      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
# Line 15533  nto-qnx*) Line 15163  nto-qnx*)
15163    
15164  openbsd*)  openbsd*)
15165    version_type=sunos    version_type=sunos
15166      sys_lib_dlsearch_path_spec="/usr/lib"
15167    need_lib_prefix=no    need_lib_prefix=no
15168    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15169    case $host_os in    case $host_os in
# Line 15576  osf3* | osf4* | osf5*) Line 15207  osf3* | osf4* | osf5*)
15207    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15208    ;;    ;;
15209    
 sco3.2v5*)  
   version_type=osf  
   soname_spec='${libname}${release}${shared_ext}$major'  
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
15210  solaris*)  solaris*)
15211    version_type=linux    version_type=linux
15212    need_lib_prefix=no    need_lib_prefix=no
# Line 15608  sunos4*) Line 15232  sunos4*)
15232    need_version=yes    need_version=yes
15233    ;;    ;;
15234    
15235  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
15236    version_type=linux    version_type=linux
15237    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}'
15238    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
# Line 15641  sysv4*MP*) Line 15265  sysv4*MP*)
15265    fi    fi
15266    ;;    ;;
15267    
15268    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15269      version_type=freebsd-elf
15270      need_lib_prefix=no
15271      need_version=no
15272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15273      soname_spec='${libname}${release}${shared_ext}$major'
15274      shlibpath_var=LD_LIBRARY_PATH
15275      hardcode_into_libs=yes
15276      if test "$with_gnu_ld" = yes; then
15277        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15278        shlibpath_overrides_runpath=no
15279      else
15280        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15281        shlibpath_overrides_runpath=yes
15282        case $host_os in
15283          sco3.2v5*)
15284            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15285            ;;
15286        esac
15287      fi
15288      sys_lib_dlsearch_path_spec='/usr/lib'
15289      ;;
15290    
15291  uts4*)  uts4*)
15292    version_type=linux    version_type=linux
15293    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 15656  echo "$as_me:$LINENO: result: $dynamic_l Line 15303  echo "$as_me:$LINENO: result: $dynamic_l
15303  echo "${ECHO_T}$dynamic_linker" >&6  echo "${ECHO_T}$dynamic_linker" >&6
15304  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
15305    
15306    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15307    if test "$GCC" = yes; then
15308      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15309    fi
15310    
15311  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15312  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
15313  hardcode_action_F77=  hardcode_action_F77=
# Line 15693  elif test "$shlibpath_overrides_runpath" Line 15345  elif test "$shlibpath_overrides_runpath"
15345    enable_fast_install=needless    enable_fast_install=needless
15346  fi  fi
15347    
 striplib=  
 old_striplib=  
 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5  
 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6  
 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  
   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"  
   test -z "$striplib" && striplib="$STRIP --strip-unneeded"  
   echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
 else  
 # FIXME - insert some real tests, host_os isn't really good enough  
   case $host_os in  
    darwin*)  
        if test -n "$STRIP" ; then  
          striplib="$STRIP -x"  
          echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
        else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
        ;;  
    *)  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
     ;;  
   esac  
 fi  
   
   
15348    
15349  # The else clause should only fire when bootstrapping the  # The else clause should only fire when bootstrapping the
15350  # libtool distribution, otherwise you forgot to ship ltmain.sh  # libtool distribution, otherwise you forgot to ship ltmain.sh
# Line 15737  if test -f "$ltmain"; then Line 15359  if test -f "$ltmain"; then
15359    # Now quote all the things that may contain metacharacters while being    # Now quote all the things that may contain metacharacters while being
15360    # careful not to overquote the AC_SUBSTed values.  We take copies of the    # careful not to overquote the AC_SUBSTed values.  We take copies of the
15361    # variables and quote the copies for generation of the libtool script.    # variables and quote the copies for generation of the libtool script.
15362    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15363      SED SHELL STRIP \      SED SHELL STRIP \
15364      libname_spec library_names_spec soname_spec extract_expsyms_cmds \      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15365      old_striplib striplib file_magic_cmd finish_cmds finish_eval \      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
# Line 15855  AR_FLAGS=$lt_AR_FLAGS Line 15477  AR_FLAGS=$lt_AR_FLAGS
15477  # A C compiler.  # A C compiler.
15478  LTCC=$lt_LTCC  LTCC=$lt_LTCC
15479    
15480    # LTCC compiler flags.
15481    LTCFLAGS=$lt_LTCFLAGS
15482    
15483  # A language-specific compiler.  # A language-specific compiler.
15484  CC=$lt_compiler_F77  CC=$lt_compiler_F77
15485    
# Line 16165  lt_simple_link_test_code='public class c Line 15790  lt_simple_link_test_code='public class c
15790  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
15791  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
15792    
15793    # If no C compiler flags were specified, use CFLAGS.
15794    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15795    
15796  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
15797  compiler=$CC  compiler=$CC
15798    
# Line 16172  compiler=$CC Line 15800  compiler=$CC
15800  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
15801  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
15802  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15803  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15804  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
15805  $rm conftest*  $rm conftest*
15806    
15807  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
15808  printf "$lt_simple_link_test_code" >conftest.$ac_ext  printf "$lt_simple_link_test_code" >conftest.$ac_ext
15809  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15810  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
15811  $rm conftest*  $rm conftest*
15812    
# Line 16233  else Line 15861  else
15861     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15862     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15863     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
15864     (eval echo "\"\$as_me:16236: $lt_compile\"" >&5)     (eval echo "\"\$as_me:15864: $lt_compile\"" >&5)
15865     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
15866     ac_status=$?     ac_status=$?
15867     cat conftest.err >&5     cat conftest.err >&5
15868     echo "$as_me:16240: \$? = $ac_status" >&5     echo "$as_me:15868: \$? = $ac_status" >&5
15869     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
15870       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
15871       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
15872       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15873       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15875         lt_cv_prog_compiler_rtti_exceptions=yes         lt_cv_prog_compiler_rtti_exceptions=yes
15876       fi       fi
15877     fi     fi
# Line 16304  echo $ECHO_N "checking for $compiler opt Line 15932  echo $ECHO_N "checking for $compiler opt
15932        lt_prog_compiler_pic_GCJ='-fno-common'        lt_prog_compiler_pic_GCJ='-fno-common'
15933        ;;        ;;
15934    
15935        interix3*)
15936          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15937          # Instead, we relocate shared libraries at runtime.
15938          ;;
15939    
15940      msdosdjgpp*)      msdosdjgpp*)
15941        # Just because we use GCC doesn't mean we suddenly get shared libraries        # Just because we use GCC doesn't mean we suddenly get shared libraries
15942        # on systems that don't support them.        # on systems that don't support them.
# Line 16412  echo $ECHO_N "checking for $compiler opt Line 16045  echo $ECHO_N "checking for $compiler opt
16045        esac        esac
16046        ;;        ;;
16047    
16048        freebsd*)
16049          case $cc_basename in
16050          icc* | ecc*)
16051            lt_prog_compiler_wl_GCJ='-Wl,'
16052            lt_prog_compiler_pic_GCJ='-KPIC'
16053            lt_prog_compiler_static_GCJ='-static'
16054            ;;
16055          ccc*)
16056            lt_prog_compiler_wl_GCJ='-Wl,'
16057            # All Alpha code is PIC.
16058            lt_prog_compiler_static_GCJ='-non_shared'
16059            ;;
16060          esac
16061          ;;
16062    
16063      osf3* | osf4* | osf5*)      osf3* | osf4* | osf5*)
16064        lt_prog_compiler_wl_GCJ='-Wl,'        lt_prog_compiler_wl_GCJ='-Wl,'
16065        # All OSF/1 code is PIC.        # All OSF/1 code is PIC.
16066        lt_prog_compiler_static_GCJ='-non_shared'        lt_prog_compiler_static_GCJ='-non_shared'
16067        ;;        ;;
16068    
     sco3.2v5*)  
       lt_prog_compiler_pic_GCJ='-Kpic'  
       lt_prog_compiler_static_GCJ='-dn'  
       ;;  
   
16069      solaris*)      solaris*)
16070        lt_prog_compiler_pic_GCJ='-KPIC'        lt_prog_compiler_pic_GCJ='-KPIC'
16071        lt_prog_compiler_static_GCJ='-Bstatic'        lt_prog_compiler_static_GCJ='-Bstatic'
# Line 16440  echo $ECHO_N "checking for $compiler opt Line 16083  echo $ECHO_N "checking for $compiler opt
16083        lt_prog_compiler_static_GCJ='-Bstatic'        lt_prog_compiler_static_GCJ='-Bstatic'
16084        ;;        ;;
16085    
16086      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      sysv4 | sysv4.2uw2* | sysv4.3*)
16087        lt_prog_compiler_wl_GCJ='-Wl,'        lt_prog_compiler_wl_GCJ='-Wl,'
16088        lt_prog_compiler_pic_GCJ='-KPIC'        lt_prog_compiler_pic_GCJ='-KPIC'
16089        lt_prog_compiler_static_GCJ='-Bstatic'        lt_prog_compiler_static_GCJ='-Bstatic'
# Line 16453  echo $ECHO_N "checking for $compiler opt Line 16096  echo $ECHO_N "checking for $compiler opt
16096        fi        fi
16097        ;;        ;;
16098    
16099        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16100          lt_prog_compiler_wl_GCJ='-Wl,'
16101          lt_prog_compiler_pic_GCJ='-KPIC'
16102          lt_prog_compiler_static_GCJ='-Bstatic'
16103          ;;
16104    
16105      unicos*)      unicos*)
16106        lt_prog_compiler_wl_GCJ='-Wl,'        lt_prog_compiler_wl_GCJ='-Wl,'
16107        lt_prog_compiler_can_build_shared_GCJ=no        lt_prog_compiler_can_build_shared_GCJ=no
# Line 16495  else Line 16144  else
16144     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16145     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16146     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
16147     (eval echo "\"\$as_me:16498: $lt_compile\"" >&5)     (eval echo "\"\$as_me:16147: $lt_compile\"" >&5)
16148     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
16149     ac_status=$?     ac_status=$?
16150     cat conftest.err >&5     cat conftest.err >&5
16151     echo "$as_me:16502: \$? = $ac_status" >&5     echo "$as_me:16151: \$? = $ac_status" >&5
16152     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
16153       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
16154       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
16155       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16156       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16157       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16158         lt_prog_compiler_pic_works_GCJ=yes         lt_prog_compiler_pic_works_GCJ=yes
16159       fi       fi
16160     fi     fi
# Line 16536  case $host_os in Line 16185  case $host_os in
16185      ;;      ;;
16186  esac  esac
16187    
16188    #
16189    # Check to make sure the static flag actually works.
16190    #
16191    wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16192    echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16193    echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16194    if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16195      echo $ECHO_N "(cached) $ECHO_C" >&6
16196    else
16197      lt_prog_compiler_static_works_GCJ=no
16198       save_LDFLAGS="$LDFLAGS"
16199       LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16200       printf "$lt_simple_link_test_code" > conftest.$ac_ext
16201       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16202         # The linker can only warn and ignore the option if not recognized
16203         # So say no if there are warnings
16204         if test -s conftest.err; then
16205           # Append any errors to the config.log.
16206           cat conftest.err 1>&5
16207           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16208           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16209           if diff conftest.exp conftest.er2 >/dev/null; then
16210             lt_prog_compiler_static_works_GCJ=yes
16211           fi
16212         else
16213           lt_prog_compiler_static_works_GCJ=yes
16214         fi
16215       fi
16216       $rm conftest*
16217       LDFLAGS="$save_LDFLAGS"
16218    
16219    fi
16220    echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16221    echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16222    
16223    if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16224        :
16225    else
16226        lt_prog_compiler_static_GCJ=
16227    fi
16228    
16229    
16230  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16231  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16232  if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then  if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
# Line 16557  else Line 16248  else
16248     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16249     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16250     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
16251     (eval echo "\"\$as_me:16560: $lt_compile\"" >&5)     (eval echo "\"\$as_me:16251: $lt_compile\"" >&5)
16252     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
16253     ac_status=$?     ac_status=$?
16254     cat out/conftest.err >&5     cat out/conftest.err >&5
16255     echo "$as_me:16564: \$? = $ac_status" >&5     echo "$as_me:16255: \$? = $ac_status" >&5
16256     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
16257     then     then
16258       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
16259       # So say no if there are warnings       # So say no if there are warnings
16260       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16261       $SED '/^$/d' out/conftest.err >out/conftest.er2       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16262       if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16263         lt_cv_prog_compiler_c_o_GCJ=yes         lt_cv_prog_compiler_c_o_GCJ=yes
16264       fi       fi
16265     fi     fi
# Line 16668  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 16359  cc_basename=`$echo "X$cc_temp" | $Xsed -
16359        with_gnu_ld=no        with_gnu_ld=no
16360      fi      fi
16361      ;;      ;;
16362      interix*)
16363        # we just hope/assume this is gcc and not c89 (= MSVC++)
16364        with_gnu_ld=yes
16365        ;;
16366    openbsd*)    openbsd*)
16367      with_gnu_ld=no      with_gnu_ld=no
16368      ;;      ;;
# Line 16752  EOF Line 16447  EOF
16447        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 '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16448    
16449        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16450          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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16451          # If the export-symbols file already is a .def file (1st line          # If the export-symbols file already is a .def file (1st line
16452          # is EXPORTS), use it as is; otherwise, prepend...          # is EXPORTS), use it as is; otherwise, prepend...
16453          archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then          archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 16761  EOF Line 16456  EOF
16456            echo EXPORTS > $output_objdir/$soname.def;            echo EXPORTS > $output_objdir/$soname.def;
16457            cat $export_symbols >> $output_objdir/$soname.def;            cat $export_symbols >> $output_objdir/$soname.def;
16458          fi~          fi~
16459          $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}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16460        else        else
16461          ld_shlibs_GCJ=no          ld_shlibs_GCJ=no
16462        fi        fi
16463        ;;        ;;
16464    
16465        interix3*)
16466          hardcode_direct_GCJ=no
16467          hardcode_shlibpath_var_GCJ=no
16468          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16469          export_dynamic_flag_spec_GCJ='${wl}-E'
16470          # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16471          # Instead, shared libraries are loaded at an image base (0x10000000 by
16472          # default) and relocated if they conflict, which is a slow very memory
16473          # consuming and fragmenting process.  To avoid this, we pick a random,
16474          # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16475          # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16476          archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16477          archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16478          ;;
16479    
16480      linux*)      linux*)
16481        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16482          tmp_addflag=          tmp_addflag=
# Line 16808  EOF Line 16518  EOF
16518        fi        fi
16519        ;;        ;;
16520    
16521      solaris* | sysv5*)      solaris*)
16522        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16523          ld_shlibs_GCJ=no          ld_shlibs_GCJ=no
16524          cat <<EOF 1>&2          cat <<EOF 1>&2
# Line 16829  EOF Line 16539  EOF
16539        fi        fi
16540        ;;        ;;
16541    
16542        sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16543          case `$LD -v 2>&1` in
16544            *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16545            ld_shlibs_GCJ=no
16546            cat <<_LT_EOF 1>&2
16547    
16548    *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16549    *** reliably create shared libraries on SCO systems.  Therefore, libtool
16550    *** is disabling shared libraries support.  We urge you to upgrade GNU
16551    *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16552    *** your PATH or compiler configuration so that the native linker is
16553    *** used, and then restart.
16554    
16555    _LT_EOF
16556            ;;
16557            *)
16558              if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16559                hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16560                archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16561                archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16562              else
16563                ld_shlibs_GCJ=no
16564              fi
16565            ;;
16566          esac
16567          ;;
16568    
16569      sunos4*)      sunos4*)
16570        archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'        archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16571        wlarc=        wlarc=
# Line 16862  EOF Line 16599  EOF
16599        # Note: this linker hardcodes the directories in LIBPATH if there        # Note: this linker hardcodes the directories in LIBPATH if there
16600        # are no directories specified by -L.        # are no directories specified by -L.
16601        hardcode_minus_L_GCJ=yes        hardcode_minus_L_GCJ=yes
16602        if test "$GCC" = yes && test -z "$link_static_flag"; then        if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16603          # Neither direct hardcoding nor static linking is supported with a          # Neither direct hardcoding nor static linking is supported with a
16604          # broken collect2.          # broken collect2.
16605          hardcode_direct_GCJ=unsupported          hardcode_direct_GCJ=unsupported
# Line 16896  EOF Line 16633  EOF
16633              break              break
16634            fi            fi
16635            done            done
16636              ;;
16637          esac          esac
16638    
16639          exp_sym_flag='-bexport'          exp_sym_flag='-bexport'
# Line 16933  EOF Line 16671  EOF
16671            hardcode_libdir_flag_spec_GCJ='-L$libdir'            hardcode_libdir_flag_spec_GCJ='-L$libdir'
16672            hardcode_libdir_separator_GCJ=            hardcode_libdir_separator_GCJ=
16673            fi            fi
16674              ;;
16675          esac          esac
16676          shared_flag='-shared'          shared_flag='-shared'
16677          if test "$aix_use_runtimelinking" = yes; then          if test "$aix_use_runtimelinking" = yes; then
# Line 16945  EOF Line 16684  EOF
16684          # chokes on -Wl,-G. The following line is correct:          # chokes on -Wl,-G. The following line is correct:
16685            shared_flag='-G'            shared_flag='-G'
16686          else          else
16687          if test "$aix_use_runtimelinking" = yes; then            if test "$aix_use_runtimelinking" = yes; then
16688              shared_flag='${wl}-G'              shared_flag='${wl}-G'
16689            else            else
16690              shared_flag='${wl}-bM:SRE'              shared_flag='${wl}-bM:SRE'
16691          fi            fi
16692          fi          fi
16693        fi        fi
16694    
# Line 17014  rm -f conftest.err conftest.$ac_objext \ Line 16753  rm -f conftest.err conftest.$ac_objext \
16753  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16754    
16755         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16756          archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"          archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16757         else         else
16758          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
16759            hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'            hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16760            allow_undefined_flag_GCJ="-z nodefs"            allow_undefined_flag_GCJ="-z nodefs"
16761            archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"            archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16762          else          else
16763           # Determine the default libpath from the value encoded in an empty executable.           # Determine the default libpath from the value encoded in an empty executable.
16764           cat >conftest.$ac_ext <<_ACEOF           cat >conftest.$ac_ext <<_ACEOF
# Line 17079  if test -z "$aix_libpath"; then aix_libp Line 16818  if test -z "$aix_libpath"; then aix_libp
16818            # -berok will link without error, but may produce a broken library.            # -berok will link without error, but may produce a broken library.
16819            no_undefined_flag_GCJ=' ${wl}-bernotok'            no_undefined_flag_GCJ=' ${wl}-bernotok'
16820            allow_undefined_flag_GCJ=' ${wl}-berok'            allow_undefined_flag_GCJ=' ${wl}-berok'
           # -bexpall does not export symbols beginning with underscore (_)  
           always_export_symbols_GCJ=yes  
16821            # Exported symbols can be pulled into shared objects from archives            # Exported symbols can be pulled into shared objects from archives
16822            whole_archive_flag_spec_GCJ=' '            whole_archive_flag_spec_GCJ='$convenience'
16823            archive_cmds_need_lc_GCJ=yes            archive_cmds_need_lc_GCJ=yes
16824            # This is similar to how AIX traditionally builds its shared libraries.            # This is similar to how AIX traditionally builds its shared libraries.
16825            archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'            archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16826          fi          fi
16827        fi        fi
16828        ;;        ;;
# Line 17226  if test -z "$aix_libpath"; then aix_libp Line 16963  if test -z "$aix_libpath"; then aix_libp
16963        export_dynamic_flag_spec_GCJ='${wl}-E'        export_dynamic_flag_spec_GCJ='${wl}-E'
16964        ;;        ;;
16965    
16966      hpux10* | hpux11*)      hpux10*)
16967          if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16968            archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16969          else
16970            archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16971          fi
16972          if test "$with_gnu_ld" = no; then
16973            hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16974            hardcode_libdir_separator_GCJ=:
16975    
16976            hardcode_direct_GCJ=yes
16977            export_dynamic_flag_spec_GCJ='${wl}-E'
16978    
16979            # hardcode_minus_L: Not really in the search PATH,
16980            # but as the default location of the library.
16981            hardcode_minus_L_GCJ=yes
16982          fi
16983          ;;
16984    
16985        hpux11*)
16986        if test "$GCC" = yes -a "$with_gnu_ld" = no; then        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16987          case $host_cpu in          case $host_cpu in
16988          hppa*64*|ia64*)          hppa*64*)
16989            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'
16990            ;;            ;;
16991            ia64*)
16992              archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16993              ;;
16994          *)          *)
16995            archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'            archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16996            ;;            ;;
16997          esac          esac
16998        else        else
16999          case $host_cpu in          case $host_cpu in
17000          hppa*64*|ia64*)          hppa*64*)
17001            archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'            archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17002              ;;
17003            ia64*)
17004              archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17005            ;;            ;;
17006          *)          *)
17007            archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'            archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17008            ;;            ;;
17009          esac          esac
17010        fi        fi
17011        if test "$with_gnu_ld" = no; then        if test "$with_gnu_ld" = no; then
17012            hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17013            hardcode_libdir_separator_GCJ=:
17014    
17015          case $host_cpu in          case $host_cpu in
17016          hppa*64*)          hppa*64*|ia64*)
           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'  
17017            hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'            hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
           hardcode_libdir_separator_GCJ=:  
17018            hardcode_direct_GCJ=no            hardcode_direct_GCJ=no
17019            hardcode_shlibpath_var_GCJ=no            hardcode_shlibpath_var_GCJ=no
17020            ;;            ;;
         ia64*)  
           hardcode_libdir_flag_spec_GCJ='-L$libdir'  
           hardcode_direct_GCJ=no  
           hardcode_shlibpath_var_GCJ=no  
   
           # hardcode_minus_L: Not really in the search PATH,  
           # but as the default location of the library.  
           hardcode_minus_L_GCJ=yes  
           ;;  
17021          *)          *)
           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'  
           hardcode_libdir_separator_GCJ=:  
17022            hardcode_direct_GCJ=yes            hardcode_direct_GCJ=yes
17023            export_dynamic_flag_spec_GCJ='${wl}-E'            export_dynamic_flag_spec_GCJ='${wl}-E'
17024    
# Line 17368  if test -z "$aix_libpath"; then aix_libp Line 17120  if test -z "$aix_libpath"; then aix_libp
17120        hardcode_libdir_separator_GCJ=:        hardcode_libdir_separator_GCJ=:
17121        ;;        ;;
17122    
     sco3.2v5*)  
       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
       hardcode_shlibpath_var_GCJ=no  
       export_dynamic_flag_spec_GCJ='${wl}-Bexport'  
       runpath_var=LD_RUN_PATH  
       hardcode_runpath_var=yes  
       ;;  
   
17123      solaris*)      solaris*)
17124        no_undefined_flag_GCJ=' -z text'        no_undefined_flag_GCJ=' -z text'
17125        if test "$GCC" = yes; then        if test "$GCC" = yes; then
# Line 17461  if test -z "$aix_libpath"; then aix_libp Line 17205  if test -z "$aix_libpath"; then aix_libp
17205        fi        fi
17206        ;;        ;;
17207    
17208      sysv4.2uw2*)      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17209        archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'        no_undefined_flag_GCJ='${wl}-z,text'
17210        hardcode_direct_GCJ=yes        archive_cmds_need_lc_GCJ=no
       hardcode_minus_L_GCJ=no  
17211        hardcode_shlibpath_var_GCJ=no        hardcode_shlibpath_var_GCJ=no
17212        hardcode_runpath_var=yes        runpath_var='LD_RUN_PATH'
       runpath_var=LD_RUN_PATH  
       ;;  
17213    
    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)  
       no_undefined_flag_GCJ='${wl}-z ${wl}text'  
17214        if test "$GCC" = yes; then        if test "$GCC" = yes; then
17215          archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17216            archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17217        else        else
17218          archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17219            archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17220        fi        fi
       runpath_var='LD_RUN_PATH'  
       hardcode_shlibpath_var_GCJ=no  
17221        ;;        ;;
17222    
17223      sysv5*)      sysv5* | sco3.2v5* | sco5v6*)
17224        no_undefined_flag_GCJ=' -z text'        # Note: We can NOT use -z defs as we might desire, because we do not
17225        # $CC -shared without GNU ld will not create a library from C++        # link with -lc, and that would cause any symbols used from libc to
17226        # object files and a static libstdc++, better avoid it by now        # always be unresolved, which means just about no library would
17227        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'        # ever link correctly.  If we're not using GNU ld we use -z text
17228        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~        # though, which does catch some bad symbols but isn't as heavy-handed
17229                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'        # as -z defs.
17230        hardcode_libdir_flag_spec_GCJ=        no_undefined_flag_GCJ='${wl}-z,text'
17231          allow_undefined_flag_GCJ='${wl}-z,nodefs'
17232          archive_cmds_need_lc_GCJ=no
17233        hardcode_shlibpath_var_GCJ=no        hardcode_shlibpath_var_GCJ=no
17234          hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17235          hardcode_libdir_separator_GCJ=':'
17236          link_all_deplibs_GCJ=yes
17237          export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17238        runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
17239    
17240          if test "$GCC" = yes; then
17241            archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17242            archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17243          else
17244            archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17245            archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17246          fi
17247        ;;        ;;
17248    
17249      uts4*)      uts4*)
# Line 17509  echo "$as_me:$LINENO: result: $ld_shlibs Line 17262  echo "$as_me:$LINENO: result: $ld_shlibs
17262  echo "${ECHO_T}$ld_shlibs_GCJ" >&6  echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17263  test "$ld_shlibs_GCJ" = no && can_build_shared=no  test "$ld_shlibs_GCJ" = no && can_build_shared=no
17264    
 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  
 if test "$GCC" = yes; then  
   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"  
 fi  
   
17265  #  #
17266  # Do we need to explicitly link libc?  # Do we need to explicitly link libc?
17267  #  #
# Line 17546  echo $ECHO_N "checking whether -lc shoul Line 17294  echo $ECHO_N "checking whether -lc shoul
17294          libobjs=conftest.$ac_objext          libobjs=conftest.$ac_objext
17295          deplibs=          deplibs=
17296          wl=$lt_prog_compiler_wl_GCJ          wl=$lt_prog_compiler_wl_GCJ
17297            pic_flag=$lt_prog_compiler_pic_GCJ
17298          compiler_flags=-v          compiler_flags=-v
17299          linker_flags=-v          linker_flags=-v
17300          verstring=          verstring=
# Line 17827  freebsd* | dragonfly*) Line 17576  freebsd* | dragonfly*)
17576      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
17577      hardcode_into_libs=yes      hardcode_into_libs=yes
17578      ;;      ;;
17579    *) # from 3.2 on    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17580      freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17581      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
17582      hardcode_into_libs=yes      hardcode_into_libs=yes
17583      ;;      ;;
17584      freebsd*) # from 4.6 on
17585        shlibpath_overrides_runpath=yes
17586        hardcode_into_libs=yes
17587        ;;
17588    esac    esac
17589    ;;    ;;
17590    
# Line 17890  hpux9* | hpux10* | hpux11*) Line 17644  hpux9* | hpux10* | hpux11*)
17644    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
17645    ;;    ;;
17646    
17647    interix3*)
17648      version_type=linux
17649      need_lib_prefix=no
17650      need_version=no
17651      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17652      soname_spec='${libname}${release}${shared_ext}$major'
17653      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17654      shlibpath_var=LD_LIBRARY_PATH
17655      shlibpath_overrides_runpath=no
17656      hardcode_into_libs=yes
17657      ;;
17658    
17659  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
17660    case $host_os in    case $host_os in
17661      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
# Line 18011  nto-qnx*) Line 17777  nto-qnx*)
17777    
17778  openbsd*)  openbsd*)
17779    version_type=sunos    version_type=sunos
17780      sys_lib_dlsearch_path_spec="/usr/lib"
17781    need_lib_prefix=no    need_lib_prefix=no
17782    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17783    case $host_os in    case $host_os in
# Line 18054  osf3* | osf4* | osf5*) Line 17821  osf3* | osf4* | osf5*)
17821    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17822    ;;    ;;
17823    
 sco3.2v5*)  
   version_type=osf  
   soname_spec='${libname}${release}${shared_ext}$major'  
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
17824  solaris*)  solaris*)
17825    version_type=linux    version_type=linux
17826    need_lib_prefix=no    need_lib_prefix=no
# Line 18086  sunos4*) Line 17846  sunos4*)
17846    need_version=yes    need_version=yes
17847    ;;    ;;
17848    
17849  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
17850    version_type=linux    version_type=linux
17851    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}'
17852    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
# Line 18119  sysv4*MP*) Line 17879  sysv4*MP*)
17879    fi    fi
17880    ;;    ;;
17881    
17882    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17883      version_type=freebsd-elf
17884      need_lib_prefix=no
17885      need_version=no
17886      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17887      soname_spec='${libname}${release}${shared_ext}$major'
17888      shlibpath_var=LD_LIBRARY_PATH
17889      hardcode_into_libs=yes
17890      if test "$with_gnu_ld" = yes; then
17891        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17892        shlibpath_overrides_runpath=no
17893      else
17894        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17895        shlibpath_overrides_runpath=yes
17896        case $host_os in
17897          sco3.2v5*)
17898            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17899            ;;
17900        esac
17901      fi
17902      sys_lib_dlsearch_path_spec='/usr/lib'
17903      ;;
17904    
17905  uts4*)  uts4*)
17906    version_type=linux    version_type=linux
17907    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 18134  echo "$as_me:$LINENO: result: $dynamic_l Line 17917  echo "$as_me:$LINENO: result: $dynamic_l
17917  echo "${ECHO_T}$dynamic_linker" >&6  echo "${ECHO_T}$dynamic_linker" >&6
17918  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
17919    
17920    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17921    if test "$GCC" = yes; then
17922      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17923    fi
17924    
17925  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17926  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
17927  hardcode_action_GCJ=  hardcode_action_GCJ=
# Line 18171  elif test "$shlibpath_overrides_runpath" Line 17959  elif test "$shlibpath_overrides_runpath"
17959    enable_fast_install=needless    enable_fast_install=needless
17960  fi  fi
17961    
 striplib=  
 old_striplib=  
 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5  
 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6  
 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  
   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"  
   test -z "$striplib" && striplib="$STRIP --strip-unneeded"  
   echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
 else  
 # FIXME - insert some real tests, host_os isn't really good enough  
   case $host_os in  
    darwin*)  
        if test -n "$STRIP" ; then  
          striplib="$STRIP -x"  
          echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
        else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
        ;;  
    *)  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
     ;;  
   esac  
 fi  
   
 if test "x$enable_dlopen" != xyes; then  
   enable_dlopen=unknown  
   enable_dlopen_self=unknown  
   enable_dlopen_self_static=unknown  
 else  
   lt_cv_dlopen=no  
   lt_cv_dlopen_libs=  
   
   case $host_os in  
   beos*)  
     lt_cv_dlopen="load_add_on"  
     lt_cv_dlopen_libs=  
     lt_cv_dlopen_self=yes  
     ;;  
   
   mingw* | pw32*)  
     lt_cv_dlopen="LoadLibrary"  
     lt_cv_dlopen_libs=  
    ;;  
   
   cygwin*)  
     lt_cv_dlopen="dlopen"  
     lt_cv_dlopen_libs=  
    ;;  
   
   darwin*)  
   # if libdl is installed we need to link against it  
     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5  
 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  
 if test "${ac_cv_lib_dl_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldl  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dl_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 ac_cv_lib_dl_dlopen=no  
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6  
 if test $ac_cv_lib_dl_dlopen = yes; then  
   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"  
 else  
   
     lt_cv_dlopen="dyld"  
     lt_cv_dlopen_libs=  
     lt_cv_dlopen_self=yes  
   
 fi  
   
    ;;  
   
   *)  
     echo "$as_me:$LINENO: checking for shl_load" >&5  
 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6  
 if test "${ac_cv_func_shl_load+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define shl_load innocuous_shl_load  
   
 /* System header to define __stub macros and hopefully few prototypes,  
     which can conflict with char shl_load (); below.  
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
   
 #ifdef __STDC__  
 # include <limits.h>  
 #else  
 # include <assert.h>  
 #endif  
   
 #undef shl_load  
   
 /* Override any gcc2 internal prototype to avoid an error.  */  
 #ifdef __cplusplus  
 extern "C"  
 {  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char shl_load ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined (__stub_shl_load) || defined (__stub___shl_load)  
 choke me  
 #else  
 char (*f) () = shl_load;  
 #endif  
 #ifd