/[debian]/mimetic/trunk/configure
ViewVC logotype

Diff of /mimetic/trunk/configure

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

revision 1730 by gregoa, Wed Oct 8 16:20:52 2008 UTC revision 1731 by gregoa, Fri May 15 15:35:42 2009 UTC
# Line 855  AMDEPBACKSLASH Line 855  AMDEPBACKSLASH
855  CCDEPMODE  CCDEPMODE
856  am__fastdepCC_TRUE  am__fastdepCC_TRUE
857  am__fastdepCC_FALSE  am__fastdepCC_FALSE
858    SED
859  GREP  GREP
860  EGREP  EGREP
861  LN_S  LN_S
862  ECHO  ECHO
863  AR  AR
864  RANLIB  RANLIB
865    DSYMUTIL
866    NMEDIT
867  CPP  CPP
868  CXX  CXX
869  CXXFLAGS  CXXFLAGS
# Line 2393  fi Line 2396  fi
2396    
2397  # Define the identity of the package.  # Define the identity of the package.
2398   PACKAGE=mimetic   PACKAGE=mimetic
2399   VERSION=0.9.5   VERSION=0.9.6
2400    
2401    
2402  cat >>confdefs.h <<_ACEOF  cat >>confdefs.h <<_ACEOF
# Line 3747  do Line 3750  do
3750    test -z "$as_dir" && as_dir=.    test -z "$as_dir" && as_dir=.
3751    for lt_ac_prog in sed gsed; do    for lt_ac_prog in sed gsed; do
3752      for ac_exec_ext in '' $ac_executable_extensions; do      for ac_exec_ext in '' $ac_executable_extensions; do
3753        if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then        if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3754          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3755        fi        fi
3756      done      done
3757    done    done
3758  done  done
3759    IFS=$as_save_IFS
3760  lt_ac_max=0  lt_ac_max=0
3761  lt_ac_count=0  lt_ac_count=0
3762  # Add /usr/xpg4/bin/sed as it is typically found on Solaris  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
# Line 3787  done Line 3791  done
3791  fi  fi
3792    
3793  SED=$lt_cv_path_SED  SED=$lt_cv_path_SED
3794    
3795  { echo "$as_me:$LINENO: result: $SED" >&5  { echo "$as_me:$LINENO: result: $SED" >&5
3796  echo "${ECHO_T}$SED" >&6; }  echo "${ECHO_T}$SED" >&6; }
3797    
# Line 4148  else Line 4153  else
4153  echo "${ECHO_T}no, using $LN_S" >&6; }  echo "${ECHO_T}no, using $LN_S" >&6; }
4154  fi  fi
4155    
4156  { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5  { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4157  echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }  echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4158  if test "${lt_cv_deplibs_check_method+set}" = set; then  if test "${lt_cv_deplibs_check_method+set}" = set; then
4159    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4160  else  else
# Line 4168  lt_cv_deplibs_check_method='unknown' Line 4173  lt_cv_deplibs_check_method='unknown'
4173  # whether `pass_all' will *always* work, you probably want this one.  # whether `pass_all' will *always* work, you probably want this one.
4174    
4175  case $host_os in  case $host_os in
4176  aix4* | aix5*)  aix[4-9]*)
4177    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4178    ;;    ;;
4179    
# Line 4190  cygwin*) Line 4195  cygwin*)
4195    
4196  mingw* | pw32*)  mingw* | pw32*)
4197    # Base MSYS/MinGW do not provide the 'file' command needed by    # Base MSYS/MinGW do not provide the 'file' command needed by
4198    # func_win32_libid shell function, so use a weaker test based on 'objdump'.    # func_win32_libid shell function, so use a weaker test based on 'objdump',
4199    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'    # unless we find 'file', for example because we are cross-compiling.
4200    lt_cv_file_magic_cmd='$OBJDUMP -f'    if ( file / ) >/dev/null 2>&1; then
4201        lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4202        lt_cv_file_magic_cmd='func_win32_libid'
4203      else
4204        lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4205        lt_cv_file_magic_cmd='$OBJDUMP -f'
4206      fi
4207    ;;    ;;
4208    
4209  darwin* | rhapsody*)  darwin* | rhapsody*)
# Line 4237  hpux10.20* | hpux11*) Line 4248  hpux10.20* | hpux11*)
4248    esac    esac
4249    ;;    ;;
4250    
4251  interix3*)  interix[3-9]*)
4252    # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here    # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4253    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4254    ;;    ;;
# Line 4287  osf3* | osf4* | osf5*) Line 4298  osf3* | osf4* | osf5*)
4298    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4299    ;;    ;;
4300    
4301    rdos*)
4302      lt_cv_deplibs_check_method=pass_all
4303      ;;
4304    
4305  solaris*)  solaris*)
4306    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4307    ;;    ;;
# Line 4374  ia64-*-hpux*) Line 4389  ia64-*-hpux*)
4389    ;;    ;;
4390  *-*-irix6*)  *-*-irix6*)
4391    # Find out which ABI we are using.    # Find out which ABI we are using.
4392    echo '#line 4377 "configure"' > conftest.$ac_ext    echo '#line 4392 "configure"' > conftest.$ac_ext
4393    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4395    ac_status=$?    ac_status=$?
# Line 4409  ia64-*-hpux*) Line 4424  ia64-*-hpux*)
4424    rm -rf conftest*    rm -rf conftest*
4425    ;;    ;;
4426    
4427  x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)  x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4428    s390*-*linux*|sparc*-*linux*)
4429    # Find out which ABI we are using.    # Find out which ABI we are using.
4430    echo 'int i;' > conftest.$ac_ext    echo 'int i;' > conftest.$ac_ext
4431    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 4420  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 4436  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
4436      case `/usr/bin/file conftest.o` in      case `/usr/bin/file conftest.o` in
4437      *32-bit*)      *32-bit*)
4438        case $host in        case $host in
4439            x86_64-*kfreebsd*-gnu)
4440              LD="${LD-ld} -m elf_i386_fbsd"
4441              ;;
4442          x86_64-*linux*)          x86_64-*linux*)
4443            LD="${LD-ld} -m elf_i386"            LD="${LD-ld} -m elf_i386"
4444            ;;            ;;
# Line 4436  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 4455  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
4455        ;;        ;;
4456      *64-bit*)      *64-bit*)
4457        case $host in        case $host in
4458            x86_64-*kfreebsd*-gnu)
4459              LD="${LD-ld} -m elf_x86_64_fbsd"
4460              ;;
4461          x86_64-*linux*)          x86_64-*linux*)
4462            LD="${LD-ld} -m elf_x86_64"            LD="${LD-ld} -m elf_x86_64"
4463            ;;            ;;
# Line 4539  sparc*-*solaris*) Line 4561  sparc*-*solaris*)
4561      *64-bit*)      *64-bit*)
4562        case $lt_cv_prog_gnu_ld in        case $lt_cv_prog_gnu_ld in
4563        yes*) LD="${LD-ld} -m elf64_sparc" ;;        yes*) LD="${LD-ld} -m elf64_sparc" ;;
4564        *)    LD="${LD-ld} -64" ;;        *)
4565            if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4566              LD="${LD-ld} -64"
4567            fi
4568            ;;
4569        esac        esac
4570        ;;        ;;
4571      esac      esac
# Line 6136  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 6162  ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162    
6163    
6164  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!  # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
   
6165  # find the maximum length of command line arguments  # find the maximum length of command line arguments
6166  { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5  { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6167  echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }  echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
# Line 6223  else Line 6248  else
6248      fi      fi
6249      ;;      ;;
6250    *)    *)
6251      # If test is not a shell built-in, we'll probably end up computing a      lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6252      # maximum length that is only half of the actual maximum length, but      if test -n "$lt_cv_sys_max_cmd_len"; then
6253      # we can't tell.        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6254      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6255      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \      else
6256          SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6257          while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6258                 = "XX$teststring") >/dev/null 2>&1 &&                 = "XX$teststring") >/dev/null 2>&1 &&
6259              new_result=`expr "X$teststring" : ".*" 2>&1` &&                new_result=`expr "X$teststring" : ".*" 2>&1` &&
6260              lt_cv_sys_max_cmd_len=$new_result &&                lt_cv_sys_max_cmd_len=$new_result &&
6261              test $i != 17 # 1/2 MB should be enough                test $i != 17 # 1/2 MB should be enough
6262      do        do
6263        i=`expr $i + 1`          i=`expr $i + 1`
6264        teststring=$teststring$teststring          teststring=$teststring$teststring
6265      done        done
6266      teststring=        teststring=
6267      # Add a significant safety factor because C++ compilers can tack on massive        # Add a significant safety factor because C++ compilers can tack on massive
6268      # amounts of additional arguments before passing them to the linker.        # amounts of additional arguments before passing them to the linker.
6269      # It appears as though 1/2 is a usable value.        # It appears as though 1/2 is a usable value.
6270      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271        fi
6272      ;;      ;;
6273    esac    esac
6274    
# Line 6257  fi Line 6285  fi
6285    
6286    
6287    
6288    
6289  # Check for command to grab the raw symbol name followed by C symbol from nm.  # Check for command to grab the raw symbol name followed by C symbol from nm.
6290  { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5  { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6291  echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }  echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
# Line 6447  EOF Line 6476  EOF
6476      echo "$progname: failed program was:" >&5      echo "$progname: failed program was:" >&5
6477      cat conftest.$ac_ext >&5      cat conftest.$ac_ext >&5
6478    fi    fi
6479    rm -f conftest* conftst*    rm -rf conftest* conftst*
6480    
6481    # Do not use the global_symbol_pipe unless it works.    # Do not use the global_symbol_pipe unless it works.
6482    if test "$pipe_works" = yes; then    if test "$pipe_works" = yes; then
# Line 6845  test -z "$STRIP" && STRIP=: Line 6874  test -z "$STRIP" && STRIP=:
6874  test -z "$ac_objext" && ac_objext=o  test -z "$ac_objext" && ac_objext=o
6875    
6876  # Determine commands to create old-style static archives.  # Determine commands to create old-style static archives.
6877  old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'  old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6878  old_postinstall_cmds='chmod 644 $oldlib'  old_postinstall_cmds='chmod 644 $oldlib'
6879  old_postuninstall_cmds=  old_postuninstall_cmds=
6880    
# Line 7007  fi Line 7036  fi
7036    ;;    ;;
7037  esac  esac
7038    
7039    
7040      case $host_os in
7041        rhapsody* | darwin*)
7042        if test -n "$ac_tool_prefix"; then
7043      # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7044    set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7045    { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047    if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7048      echo $ECHO_N "(cached) $ECHO_C" >&6
7049    else
7050      if test -n "$DSYMUTIL"; then
7051      ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7052    else
7053    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054    for as_dir in $PATH
7055    do
7056      IFS=$as_save_IFS
7057      test -z "$as_dir" && as_dir=.
7058      for ac_exec_ext in '' $ac_executable_extensions; do
7059      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060        ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7061        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7062        break 2
7063      fi
7064    done
7065    done
7066    IFS=$as_save_IFS
7067    
7068    fi
7069    fi
7070    DSYMUTIL=$ac_cv_prog_DSYMUTIL
7071    if test -n "$DSYMUTIL"; then
7072      { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7073    echo "${ECHO_T}$DSYMUTIL" >&6; }
7074    else
7075      { echo "$as_me:$LINENO: result: no" >&5
7076    echo "${ECHO_T}no" >&6; }
7077    fi
7078    
7079    
7080    fi
7081    if test -z "$ac_cv_prog_DSYMUTIL"; then
7082      ac_ct_DSYMUTIL=$DSYMUTIL
7083      # Extract the first word of "dsymutil", so it can be a program name with args.
7084    set dummy dsymutil; ac_word=$2
7085    { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087    if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7088      echo $ECHO_N "(cached) $ECHO_C" >&6
7089    else
7090      if test -n "$ac_ct_DSYMUTIL"; then
7091      ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7092    else
7093    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094    for as_dir in $PATH
7095    do
7096      IFS=$as_save_IFS
7097      test -z "$as_dir" && as_dir=.
7098      for ac_exec_ext in '' $ac_executable_extensions; do
7099      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100        ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7101        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102        break 2
7103      fi
7104    done
7105    done
7106    IFS=$as_save_IFS
7107    
7108    fi
7109    fi
7110    ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7111    if test -n "$ac_ct_DSYMUTIL"; then
7112      { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7113    echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7114    else
7115      { echo "$as_me:$LINENO: result: no" >&5
7116    echo "${ECHO_T}no" >&6; }
7117    fi
7118    
7119      if test "x$ac_ct_DSYMUTIL" = x; then
7120        DSYMUTIL=":"
7121      else
7122        case $cross_compiling:$ac_tool_warned in
7123    yes:)
7124    { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7125    whose name does not start with the host triplet.  If you think this
7126    configuration is useful to you, please write to autoconf@gnu.org." >&5
7127    echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7128    whose name does not start with the host triplet.  If you think this
7129    configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7130    ac_tool_warned=yes ;;
7131    esac
7132        DSYMUTIL=$ac_ct_DSYMUTIL
7133      fi
7134    else
7135      DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7136    fi
7137    
7138        if test -n "$ac_tool_prefix"; then
7139      # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7140    set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7141    { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143    if test "${ac_cv_prog_NMEDIT+set}" = set; then
7144      echo $ECHO_N "(cached) $ECHO_C" >&6
7145    else
7146      if test -n "$NMEDIT"; then
7147      ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7148    else
7149    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150    for as_dir in $PATH
7151    do
7152      IFS=$as_save_IFS
7153      test -z "$as_dir" && as_dir=.
7154      for ac_exec_ext in '' $ac_executable_extensions; do
7155      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7156        ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7157        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158        break 2
7159      fi
7160    done
7161    done
7162    IFS=$as_save_IFS
7163    
7164    fi
7165    fi
7166    NMEDIT=$ac_cv_prog_NMEDIT
7167    if test -n "$NMEDIT"; then
7168      { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7169    echo "${ECHO_T}$NMEDIT" >&6; }
7170    else
7171      { echo "$as_me:$LINENO: result: no" >&5
7172    echo "${ECHO_T}no" >&6; }
7173    fi
7174    
7175    
7176    fi
7177    if test -z "$ac_cv_prog_NMEDIT"; then
7178      ac_ct_NMEDIT=$NMEDIT
7179      # Extract the first word of "nmedit", so it can be a program name with args.
7180    set dummy nmedit; ac_word=$2
7181    { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183    if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7184      echo $ECHO_N "(cached) $ECHO_C" >&6
7185    else
7186      if test -n "$ac_ct_NMEDIT"; then
7187      ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7188    else
7189    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190    for as_dir in $PATH
7191    do
7192      IFS=$as_save_IFS
7193      test -z "$as_dir" && as_dir=.
7194      for ac_exec_ext in '' $ac_executable_extensions; do
7195      if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7196        ac_cv_prog_ac_ct_NMEDIT="nmedit"
7197        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198        break 2
7199      fi
7200    done
7201    done
7202    IFS=$as_save_IFS
7203    
7204    fi
7205    fi
7206    ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7207    if test -n "$ac_ct_NMEDIT"; then
7208      { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7209    echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7210    else
7211      { echo "$as_me:$LINENO: result: no" >&5
7212    echo "${ECHO_T}no" >&6; }
7213    fi
7214    
7215      if test "x$ac_ct_NMEDIT" = x; then
7216        NMEDIT=":"
7217      else
7218        case $cross_compiling:$ac_tool_warned in
7219    yes:)
7220    { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7221    whose name does not start with the host triplet.  If you think this
7222    configuration is useful to you, please write to autoconf@gnu.org." >&5
7223    echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7224    whose name does not start with the host triplet.  If you think this
7225    configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7226    ac_tool_warned=yes ;;
7227    esac
7228        NMEDIT=$ac_ct_NMEDIT
7229      fi
7230    else
7231      NMEDIT="$ac_cv_prog_NMEDIT"
7232    fi
7233    
7234    
7235        { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7236    echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7237    if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7238      echo $ECHO_N "(cached) $ECHO_C" >&6
7239    else
7240      lt_cv_apple_cc_single_mod=no
7241          if test -z "${LT_MULTI_MODULE}"; then
7242       # By default we will add the -single_module flag. You can override
7243       # by either setting the environment variable LT_MULTI_MODULE
7244       # non-empty at configure time, or by adding -multi_module to the
7245       # link flags.
7246       echo "int foo(void){return 1;}" > conftest.c
7247       $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7248         -dynamiclib ${wl}-single_module conftest.c
7249       if test -f libconftest.dylib; then
7250         lt_cv_apple_cc_single_mod=yes
7251         rm -rf libconftest.dylib*
7252       fi
7253       rm conftest.c
7254          fi
7255    fi
7256    { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7257    echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7258        { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7259    echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7260    if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7261      echo $ECHO_N "(cached) $ECHO_C" >&6
7262    else
7263      lt_cv_ld_exported_symbols_list=no
7264          save_LDFLAGS=$LDFLAGS
7265          echo "_main" > conftest.sym
7266          LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7267          cat >conftest.$ac_ext <<_ACEOF
7268    /* confdefs.h.  */
7269    _ACEOF
7270    cat confdefs.h >>conftest.$ac_ext
7271    cat >>conftest.$ac_ext <<_ACEOF
7272    /* end confdefs.h.  */
7273    
7274    int
7275    main ()
7276    {
7277    
7278      ;
7279      return 0;
7280    }
7281    _ACEOF
7282    rm -f conftest.$ac_objext conftest$ac_exeext
7283    if { (ac_try="$ac_link"
7284    case "(($ac_try" in
7285      *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286      *) ac_try_echo=$ac_try;;
7287    esac
7288    eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289      (eval "$ac_link") 2>conftest.er1
7290      ac_status=$?
7291      grep -v '^ *+' conftest.er1 >conftest.err
7292      rm -f conftest.er1
7293      cat conftest.err >&5
7294      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295      (exit $ac_status); } && {
7296             test -z "$ac_c_werror_flag" ||
7297             test ! -s conftest.err
7298           } && test -s conftest$ac_exeext &&
7299           $as_test_x conftest$ac_exeext; then
7300      lt_cv_ld_exported_symbols_list=yes
7301    else
7302      echo "$as_me: failed program was:" >&5
7303    sed 's/^/| /' conftest.$ac_ext >&5
7304    
7305            lt_cv_ld_exported_symbols_list=no
7306    fi
7307    
7308    rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7309          conftest$ac_exeext conftest.$ac_ext
7310       LDFLAGS="$save_LDFLAGS"
7311    
7312    fi
7313    { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7314    echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7315        case $host_os in
7316        rhapsody* | darwin1.[0123])
7317          _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7318        darwin1.*)
7319         _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320        darwin*)
7321          # if running on 10.5 or later, the deployment target defaults
7322          # to the OS version, if on x86, and 10.4, the deployment
7323          # target defaults to 10.4. Don't you love it?
7324          case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325       10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7327       10.[012]*)
7328         _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7329       10.*)
7330         _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7331          esac
7332        ;;
7333      esac
7334        if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335          _lt_dar_single_mod='$single_module'
7336        fi
7337        if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338          _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7339        else
7340          _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7341        fi
7342        if test "$DSYMUTIL" != ":"; then
7343          _lt_dsymutil="~$DSYMUTIL \$lib || :"
7344        else
7345          _lt_dsymutil=
7346        fi
7347        ;;
7348      esac
7349    
7350    
7351  enable_dlopen=no  enable_dlopen=no
7352  enable_win32_dll=no  enable_win32_dll=no
7353    
# Line 7045  objext=o Line 7386  objext=o
7386  objext=$objext  objext=$objext
7387    
7388  # Code to be used in simple compile tests  # Code to be used in simple compile tests
7389  lt_simple_compile_test_code="int some_variable = 0;\n"  lt_simple_compile_test_code="int some_variable = 0;"
7390    
7391  # Code to be used in simple link tests  # Code to be used in simple link tests
7392  lt_simple_link_test_code='int main(){return(0);}\n'  lt_simple_link_test_code='int main(){return(0);}'
7393    
7394    
7395  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
# Line 7063  compiler=$CC Line 7404  compiler=$CC
7404    
7405  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
7406  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
7407  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7408  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7409  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
7410  $rm conftest*  $rm conftest*
7411    
7412  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
7413  printf "$lt_simple_link_test_code" >conftest.$ac_ext  echo "$lt_simple_link_test_code" >conftest.$ac_ext
7414  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7415  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
7416  $rm conftest*  $rm -r conftest*
7417    
7418    
7419    
# Line 7089  if test "${lt_cv_prog_compiler_rtti_exce Line 7430  if test "${lt_cv_prog_compiler_rtti_exce
7430  else  else
7431    lt_cv_prog_compiler_rtti_exceptions=no    lt_cv_prog_compiler_rtti_exceptions=no
7432    ac_outfile=conftest.$ac_objext    ac_outfile=conftest.$ac_objext
7433     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7434     lt_compiler_flag="-fno-rtti -fno-exceptions"     lt_compiler_flag="-fno-rtti -fno-exceptions"
7435     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
7436     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 7100  else Line 7441  else
7441     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7442     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7443     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
7444     (eval echo "\"\$as_me:7103: $lt_compile\"" >&5)     (eval echo "\"\$as_me:7444: $lt_compile\"" >&5)
7445     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
7446     ac_status=$?     ac_status=$?
7447     cat conftest.err >&5     cat conftest.err >&5
7448     echo "$as_me:7107: \$? = $ac_status" >&5     echo "$as_me:7448: \$? = $ac_status" >&5
7449     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
7450       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
7451       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
# Line 7155  echo $ECHO_N "checking for $compiler opt Line 7496  echo $ECHO_N "checking for $compiler opt
7496        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'        lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7497        ;;        ;;
7498    
7499      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7500        # PIC is the default for these OSes.        # PIC is the default for these OSes.
7501        ;;        ;;
7502    
7503      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
7504        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
7505        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
7506          # Although the cygwin gcc ignores -fPIC, still need this for old-style
7507          # (--disable-auto-import) libraries
7508        lt_prog_compiler_pic='-DDLL_EXPORT'        lt_prog_compiler_pic='-DDLL_EXPORT'
7509        ;;        ;;
7510    
# Line 7171  echo $ECHO_N "checking for $compiler opt Line 7514  echo $ECHO_N "checking for $compiler opt
7514        lt_prog_compiler_pic='-fno-common'        lt_prog_compiler_pic='-fno-common'
7515        ;;        ;;
7516    
7517      interix3*)      interix[3-9]*)
7518        # Interix 3.x gcc -fpic/-fPIC options generate broken code.        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7519        # Instead, we relocate shared libraries at runtime.        # Instead, we relocate shared libraries at runtime.
7520        ;;        ;;
# Line 7229  echo $ECHO_N "checking for $compiler opt Line 7572  echo $ECHO_N "checking for $compiler opt
7572         esac         esac
7573         ;;         ;;
7574    
7575      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
7576        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
7577        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
7578        lt_prog_compiler_pic='-DDLL_EXPORT'        lt_prog_compiler_pic='-DDLL_EXPORT'
# Line 7281  echo $ECHO_N "checking for $compiler opt Line 7624  echo $ECHO_N "checking for $compiler opt
7624          # All Alpha code is PIC.          # All Alpha code is PIC.
7625          lt_prog_compiler_static='-non_shared'          lt_prog_compiler_static='-non_shared'
7626          ;;          ;;
7627          *)
7628            case `$CC -V 2>&1 | sed 5q` in
7629            *Sun\ C*)
7630              # Sun C 5.9
7631              lt_prog_compiler_pic='-KPIC'
7632              lt_prog_compiler_static='-Bstatic'
7633              lt_prog_compiler_wl='-Wl,'
7634              ;;
7635            *Sun\ F*)
7636              # Sun Fortran 8.3 passes all unrecognized flags to the linker
7637              lt_prog_compiler_pic='-KPIC'
7638              lt_prog_compiler_static='-Bstatic'
7639              lt_prog_compiler_wl=''
7640              ;;
7641            esac
7642            ;;
7643        esac        esac
7644        ;;        ;;
7645    
# Line 7290  echo $ECHO_N "checking for $compiler opt Line 7649  echo $ECHO_N "checking for $compiler opt
7649        lt_prog_compiler_static='-non_shared'        lt_prog_compiler_static='-non_shared'
7650        ;;        ;;
7651    
7652        rdos*)
7653          lt_prog_compiler_static='-non_shared'
7654          ;;
7655    
7656      solaris*)      solaris*)
7657        lt_prog_compiler_pic='-KPIC'        lt_prog_compiler_pic='-KPIC'
7658        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
# Line 7352  if test -n "$lt_prog_compiler_pic"; then Line 7715  if test -n "$lt_prog_compiler_pic"; then
7715    
7716  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7717  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7718  if test "${lt_prog_compiler_pic_works+set}" = set; then  if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7719    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7720  else  else
7721    lt_prog_compiler_pic_works=no    lt_cv_prog_compiler_pic_works=no
7722    ac_outfile=conftest.$ac_objext    ac_outfile=conftest.$ac_objext
7723     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7724     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7725     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
7726     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 7368  else Line 7731  else
7731     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
7734     (eval echo "\"\$as_me:7371: $lt_compile\"" >&5)     (eval echo "\"\$as_me:7734: $lt_compile\"" >&5)
7735     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
7736     ac_status=$?     ac_status=$?
7737     cat conftest.err >&5     cat conftest.err >&5
7738     echo "$as_me:7375: \$? = $ac_status" >&5     echo "$as_me:7738: \$? = $ac_status" >&5
7739     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
7740       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
7741       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
7742       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7743       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7745         lt_prog_compiler_pic_works=yes         lt_cv_prog_compiler_pic_works=yes
7746       fi       fi
7747     fi     fi
7748     $rm conftest*     $rm conftest*
7749    
7750  fi  fi
7751  { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7752  echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7753    
7754  if test x"$lt_prog_compiler_pic_works" = xyes; then  if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7755      case $lt_prog_compiler_pic in      case $lt_prog_compiler_pic in
7756       "" | " "*) ;;       "" | " "*) ;;
7757       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;       *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
# Line 7415  esac Line 7778  esac
7778  wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"  wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7779  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7780  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7781  if test "${lt_prog_compiler_static_works+set}" = set; then  if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7782    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
7783  else  else
7784    lt_prog_compiler_static_works=no    lt_cv_prog_compiler_static_works=no
7785     save_LDFLAGS="$LDFLAGS"     save_LDFLAGS="$LDFLAGS"
7786     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7787     printf "$lt_simple_link_test_code" > conftest.$ac_ext     echo "$lt_simple_link_test_code" > conftest.$ac_ext
7788     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7789       # The linker can only warn and ignore the option if not recognized       # The linker can only warn and ignore the option if not recognized
7790       # So say no if there are warnings       # So say no if there are warnings
# Line 7431  else Line 7794  else
7794         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7795         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7796         if diff conftest.exp conftest.er2 >/dev/null; then         if diff conftest.exp conftest.er2 >/dev/null; then
7797           lt_prog_compiler_static_works=yes           lt_cv_prog_compiler_static_works=yes
7798         fi         fi
7799       else       else
7800         lt_prog_compiler_static_works=yes         lt_cv_prog_compiler_static_works=yes
7801       fi       fi
7802     fi     fi
7803     $rm conftest*     $rm -r conftest*
7804     LDFLAGS="$save_LDFLAGS"     LDFLAGS="$save_LDFLAGS"
7805    
7806  fi  fi
7807  { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7808  echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7809    
7810  if test x"$lt_prog_compiler_static_works" = xyes; then  if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7811      :      :
7812  else  else
7813      lt_prog_compiler_static=      lt_prog_compiler_static=
# Line 7461  else Line 7824  else
7824     mkdir conftest     mkdir conftest
7825     cd conftest     cd conftest
7826     mkdir out     mkdir out
7827     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7828    
7829     lt_compiler_flag="-o out/conftest2.$ac_objext"     lt_compiler_flag="-o out/conftest2.$ac_objext"
7830     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
# Line 7472  else Line 7835  else
7835     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7836     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7837     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
7838     (eval echo "\"\$as_me:7475: $lt_compile\"" >&5)     (eval echo "\"\$as_me:7838: $lt_compile\"" >&5)
7839     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
7840     ac_status=$?     ac_status=$?
7841     cat out/conftest.err >&5     cat out/conftest.err >&5
7842     echo "$as_me:7479: \$? = $ac_status" >&5     echo "$as_me:7842: \$? = $ac_status" >&5
7843     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
7844     then     then
7845       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 7556  echo $ECHO_N "checking whether the $comp Line 7919  echo $ECHO_N "checking whether the $comp
7919    # it will be wrapped by ` (' and `)$', so one must not match beginning or    # it will be wrapped by ` (' and `)$', so one must not match beginning or
7920    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7921    # as well as any symbol that contains `d'.    # as well as any symbol that contains `d'.
7922    exclude_expsyms="_GLOBAL_OFFSET_TABLE_"    exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7923    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7924    # platforms (ab)use it in PIC code, but their linkers get confused if    # platforms (ab)use it in PIC code, but their linkers get confused if
7925    # the symbol is explicitly referenced.  Since portable code cannot    # the symbol is explicitly referenced.  Since portable code cannot
7926    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
7927    # preloaded symbol tables.    # preloaded symbol tables.
7928      # Exclude shared library initialization/finalization symbols.
7929    extract_expsyms_cmds=    extract_expsyms_cmds=
7930    # Just being paranoid about ensuring that cc_basename is set.    # Just being paranoid about ensuring that cc_basename is set.
7931    for cc_temp in $compiler""; do    for cc_temp in $compiler""; do
# Line 7620  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 7984  cc_basename=`$echo "X$cc_temp" | $Xsed -
7984    
7985      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
7986      case $host_os in      case $host_os in
7987      aix3* | aix4* | aix5*)      aix[3-9]*)
7988        # On AIX/PPC, the GNU linker is very broken        # On AIX/PPC, the GNU linker is very broken
7989        if test "$host_cpu" != ia64; then        if test "$host_cpu" != ia64; then
7990          ld_shlibs=no          ld_shlibs=no
# Line 7668  EOF Line 8032  EOF
8032        allow_undefined_flag=unsupported        allow_undefined_flag=unsupported
8033        always_export_symbols=no        always_export_symbols=no
8034        enable_shared_with_static_runtimes=yes        enable_shared_with_static_runtimes=yes
8035        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/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8036    
8037        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8038          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
# Line 7686  EOF Line 8050  EOF
8050        fi        fi
8051        ;;        ;;
8052    
8053      interix3*)      interix[3-9]*)
8054        hardcode_direct=no        hardcode_direct=no
8055        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
8056        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
# Line 7701  EOF Line 8065  EOF
8065        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'        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'
8066        ;;        ;;
8067    
8068      linux* | k*bsd*-gnu)      gnu* | linux* | k*bsd*-gnu)
8069        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8070          tmp_addflag=          tmp_addflag=
8071          case $cc_basename,$host_cpu in          case $cc_basename,$host_cpu in
# Line 7719  EOF Line 8083  EOF
8083          ifc* | ifort*)                  # Intel Fortran compiler          ifc* | ifort*)                  # Intel Fortran compiler
8084            tmp_addflag=' -nofor_main' ;;            tmp_addflag=' -nofor_main' ;;
8085          esac          esac
8086          archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          case `$CC -V 2>&1 | sed 5q` in
8087            *Sun\ C*)                       # Sun C 5.9
8088              whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8089              tmp_sharedflag='-G' ;;
8090            *Sun\ F*)                       # Sun Fortran 8.3
8091              tmp_sharedflag='-G' ;;
8092            *)
8093              tmp_sharedflag='-shared' ;;
8094            esac
8095            archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096    
8097          if test $supports_anon_versioning = yes; then          if test $supports_anon_versioning = yes; then
8098            archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~            archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8099    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8100    $echo "local: *; };" >> $output_objdir/$libname.ver~    $echo "local: *; };" >> $output_objdir/$libname.ver~
8101            $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8102          fi          fi
8103          link_all_deplibs=no          link_all_deplibs=no
8104        else        else
# Line 7831  _LT_EOF Line 8204  _LT_EOF
8204        fi        fi
8205        ;;        ;;
8206    
8207      aix4* | aix5*)      aix[4-9]*)
8208        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
8209          # On IA64, the linker does run time linking by default, so we don't          # On IA64, the linker does run time linking by default, so we don't
8210          # have to do anything special.          # have to do anything special.
# Line 7851  _LT_EOF Line 8224  _LT_EOF
8224          # Test if we are trying to use run time linking or normal          # Test if we are trying to use run time linking or normal
8225          # AIX style linking. If -brtl is somewhere in LDFLAGS, we          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8226          # need to do runtime linking.          # need to do runtime linking.
8227          case $host_os in aix4.[23]|aix4.[23].*|aix5*)          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8228            for ld_flag in $LDFLAGS; do            for ld_flag in $LDFLAGS; do
8229            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8230              aix_use_runtimelinking=yes              aix_use_runtimelinking=yes
# Line 7885  _LT_EOF Line 8258  _LT_EOF
8258             strings "$collect2name" | grep resolve_lib_name >/dev/null             strings "$collect2name" | grep resolve_lib_name >/dev/null
8259            then            then
8260            # We have reworked collect2            # We have reworked collect2
8261            hardcode_direct=yes            :
8262            else            else
8263            # We have old collect2            # We have old collect2
8264            hardcode_direct=unsupported            hardcode_direct=unsupported
# Line 7959  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 8332  eval "echo \"\$as_me:$LINENO: $ac_try_ec
8332         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
8333         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
8334    
8335  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
8336  }'`      /Import File Strings/,/^$/ {
8337            /^0/ {
8338                s/^0  *\(.*\)$/\1/
8339                p
8340            }
8341        }'
8342    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8343  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
8344  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
8345  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8346    fi
8347  else  else
8348    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8349  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 8018  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 8398  eval "echo \"\$as_me:$LINENO: $ac_try_ec
8398         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
8399         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
8400    
8401  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
8402  }'`      /Import File Strings/,/^$/ {
8403            /^0/ {
8404                s/^0  *\(.*\)$/\1/
8405                p
8406            }
8407        }'
8408    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8409  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
8410  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
8411  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8412    fi
8413  else  else
8414    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
8415  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 8076  if test -z "$aix_libpath"; then aix_libp Line 8463  if test -z "$aix_libpath"; then aix_libp
8463        # The linker will automatically build a .lib file if we build a DLL.        # The linker will automatically build a .lib file if we build a DLL.
8464        old_archive_From_new_cmds='true'        old_archive_From_new_cmds='true'
8465        # FIXME: Should let the user specify the lib program.        # FIXME: Should let the user specify the lib program.
8466        old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'        old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8467        fix_srcfile_path='`cygpath -w "$srcfile"`'        fix_srcfile_path='`cygpath -w "$srcfile"`'
8468        enable_shared_with_static_runtimes=yes        enable_shared_with_static_runtimes=yes
8469        ;;        ;;
# Line 8109  if test -z "$aix_libpath"; then aix_libp Line 8496  if test -z "$aix_libpath"; then aix_libp
8496        link_all_deplibs=yes        link_all_deplibs=yes
8497      if test "$GCC" = yes ; then      if test "$GCC" = yes ; then
8498          output_verbose_link_cmd='echo'          output_verbose_link_cmd='echo'
8499          archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'          archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8500        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'          module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8501        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds          archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8502        archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'          module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
8503      else      else
8504        case $cc_basename in        case $cc_basename in
8505          xlc*)          xlc*)
8506           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
8507           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8508           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8509            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8510           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8511            module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8512            ;;            ;;
8513         *)         *)
# Line 8283  if test -z "$aix_libpath"; then aix_libp Line 8669  if test -z "$aix_libpath"; then aix_libp
8669        ;;        ;;
8670    
8671      openbsd*)      openbsd*)
8672        hardcode_direct=yes        if test -f /usr/libexec/ld.so; then
8673        hardcode_shlibpath_var=no          hardcode_direct=yes
8674        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then          hardcode_shlibpath_var=no
8675          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8676          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'            archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8678          export_dynamic_flag_spec='${wl}-E'            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679              export_dynamic_flag_spec='${wl}-E'
8680            else
8681              case $host_os in
8682               openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8683                 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684                 hardcode_libdir_flag_spec='-R$libdir'
8685                 ;;
8686               *)
8687                 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8688                 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8689                 ;;
8690              esac
8691            fi
8692        else        else
8693         case $host_os in          ld_shlibs=no
          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)  
            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
            hardcode_libdir_flag_spec='-R$libdir'  
            ;;  
          *)  
            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'  
            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'  
            ;;  
        esac  
8694        fi        fi
8695        ;;        ;;
8696    
# Line 8359  if test -z "$aix_libpath"; then aix_libp Line 8749  if test -z "$aix_libpath"; then aix_libp
8749        case $host_os in        case $host_os in
8750        solaris2.[0-5] | solaris2.[0-5].*) ;;        solaris2.[0-5] | solaris2.[0-5].*) ;;
8751        *)        *)
8752          # The compiler driver will combine linker options so we          # The compiler driver will combine and reorder linker options,
8753          # cannot just pass the convience library names through          # but understands `-z linker_flag'.  GCC discards it without `$wl',
8754          # without $wl, iff we do not link with $LD.          # but is careful enough not to reorder.
         # Luckily, gcc supports the same syntax we need for Sun Studio.  
8755          # Supported since Solaris 2.6 (maybe 2.5.1?)          # Supported since Solaris 2.6 (maybe 2.5.1?)
8756          case $wlarc in          if test "$GCC" = yes; then
8757          '')            whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8758            whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;          else
8759          *)            whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8760            whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;          fi
8761          esac ;;          ;;
8762        esac        esac
8763        link_all_deplibs=yes        link_all_deplibs=yes
8764        ;;        ;;
# Line 8426  if test -z "$aix_libpath"; then aix_libp Line 8815  if test -z "$aix_libpath"; then aix_libp
8815        fi        fi
8816        ;;        ;;
8817    
8818      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8819        no_undefined_flag='${wl}-z,text'        no_undefined_flag='${wl}-z,text'
8820        archive_cmds_need_lc=no        archive_cmds_need_lc=no
8821        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
# Line 8503  x|xyes) Line 8892  x|xyes)
8892        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8893  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8894        $rm conftest*        $rm conftest*
8895        printf "$lt_simple_compile_test_code" > conftest.$ac_ext        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8896    
8897        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8898    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
# Line 8561  shlibpath_overrides_runpath=unknown Line 8950  shlibpath_overrides_runpath=unknown
8950  version_type=none  version_type=none
8951  dynamic_linker="$host_os ld.so"  dynamic_linker="$host_os ld.so"
8952  sys_lib_dlsearch_path_spec="/lib /usr/lib"  sys_lib_dlsearch_path_spec="/lib /usr/lib"
8953    
8954  if test "$GCC" = yes; then  if test "$GCC" = yes; then
8955    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`    case $host_os in
8956    if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then      darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8957        *) lt_awk_arg="/^libraries:/" ;;
8958      esac
8959      lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8960      if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8961      # if the path contains ";" then we assume it to be the separator      # if the path contains ";" then we assume it to be the separator
8962      # otherwise default to the standard path separator (i.e. ":") - it is      # otherwise default to the standard path separator (i.e. ":") - it is
8963      # assumed that no part of a normal pathname contains ";" but that should      # assumed that no part of a normal pathname contains ";" but that should
8964      # okay in the real world where ";" in dirpaths is itself problematic.      # okay in the real world where ";" in dirpaths is itself problematic.
8965      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`      lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8966    else    else
8967      sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`      lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8968    fi    fi
8969      # Ok, now we have the path, separated by spaces, we can step through it
8970      # and add multilib dir if necessary.
8971      lt_tmp_lt_search_path_spec=
8972      lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8973      for lt_sys_path in $lt_search_path_spec; do
8974        if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8975          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8976        else
8977          test -d "$lt_sys_path" && \
8978            lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8979        fi
8980      done
8981      lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8982    BEGIN {RS=" "; FS="/|\n";} {
8983      lt_foo="";
8984      lt_count=0;
8985      for (lt_i = NF; lt_i > 0; lt_i--) {
8986        if ($lt_i != "" && $lt_i != ".") {
8987          if ($lt_i == "..") {
8988            lt_count++;
8989          } else {
8990            if (lt_count == 0) {
8991              lt_foo="/" $lt_i lt_foo;
8992            } else {
8993              lt_count--;
8994            }
8995          }
8996        }
8997      }
8998      if (lt_foo != "") { lt_freq[lt_foo]++; }
8999      if (lt_freq[lt_foo] == 1) { print lt_foo; }
9000    }'`
9001      sys_lib_search_path_spec=`echo $lt_search_path_spec`
9002  else  else
9003    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9004  fi  fi
# Line 8592  aix3*) Line 9019  aix3*)
9019    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
9020    ;;    ;;
9021    
9022  aix4* | aix5*)  aix[4-9]*)
9023    version_type=linux    version_type=linux
9024    need_lib_prefix=no    need_lib_prefix=no
9025    need_version=no    need_version=no
# Line 8731  darwin* | rhapsody*) Line 9158  darwin* | rhapsody*)
9158    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
9159    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
9160    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9161    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.  
9162    if test "$GCC" = yes; then    sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`  
   else  
     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'  
   fi  
9163    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9164    ;;    ;;
9165    
# Line 8790  freebsd* | dragonfly*) Line 9213  freebsd* | dragonfly*)
9213      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
9214      hardcode_into_libs=yes      hardcode_into_libs=yes
9215      ;;      ;;
9216    freebsd*) # from 4.6 on    *) # from 4.6 on, and DragonFly
9217      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
9218      hardcode_into_libs=yes      hardcode_into_libs=yes
9219      ;;      ;;
# Line 8853  hpux9* | hpux10* | hpux11*) Line 9276  hpux9* | hpux10* | hpux11*)
9276    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
9277    ;;    ;;
9278    
9279  interix3*)  interix[3-9]*)
9280    version_type=linux    version_type=linux
9281    need_lib_prefix=no    need_lib_prefix=no
9282    need_version=no    need_version=no
# Line 8924  linux* | k*bsd*-gnu) Line 9347  linux* | k*bsd*-gnu)
9347    
9348    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
9349    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
9350      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9351      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9352    fi    fi
9353    
# Line 9030  osf3* | osf4* | osf5*) Line 9453  osf3* | osf4* | osf5*)
9453    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9454    ;;    ;;
9455    
9456    rdos*)
9457      dynamic_linker=no
9458      ;;
9459    
9460  solaris*)  solaris*)
9461    version_type=linux    version_type=linux
9462    need_lib_prefix=no    need_lib_prefix=no
# Line 9126  esac Line 9553  esac
9553  echo "${ECHO_T}$dynamic_linker" >&6; }  echo "${ECHO_T}$dynamic_linker" >&6; }
9554  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
9555    
9556    if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9557      echo $ECHO_N "(cached) $ECHO_C" >&6
9558    else
9559      lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9560    fi
9561    
9562    sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9563    if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9564      echo $ECHO_N "(cached) $ECHO_C" >&6
9565    else
9566      lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9567    fi
9568    
9569    sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9570    
9571  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9572  if test "$GCC" = yes; then  if test "$GCC" = yes; then
9573    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
# Line 9183  else Line 9625  else
9625     darwin*)     darwin*)
9626         if test -n "$STRIP" ; then         if test -n "$STRIP" ; then
9627           striplib="$STRIP -x"           striplib="$STRIP -x"
9628             old_striplib="$STRIP -S"
9629           { echo "$as_me:$LINENO: result: yes" >&5           { echo "$as_me:$LINENO: result: yes" >&5
9630  echo "${ECHO_T}yes" >&6; }  echo "${ECHO_T}yes" >&6; }
9631         else         else
# Line 9444  fi Line 9887  fi
9887  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9888  echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }  echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9889  if test $ac_cv_lib_dld_shl_load = yes; then  if test $ac_cv_lib_dld_shl_load = yes; then
9890    lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"    lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9891  else  else
9892    { echo "$as_me:$LINENO: checking for dlopen" >&5    { echo "$as_me:$LINENO: checking for dlopen" >&5
9893  echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }  echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
# Line 9720  fi Line 10163  fi
10163  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5  { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10164  echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }  echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10165  if test $ac_cv_lib_dld_dld_link = yes; then  if test $ac_cv_lib_dld_dld_link = yes; then
10166    lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"    lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10167  fi  fi
10168    
10169    
# Line 9769  else Line 10212  else
10212    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10213    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
10214    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
10215  #line 9772 "configure"  #line 10215 "configure"
10216  #include "confdefs.h"  #include "confdefs.h"
10217    
10218  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 9869  else Line 10312  else
10312    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
10314    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
10315  #line 9872 "configure"  #line 10315 "configure"
10316  #include "confdefs.h"  #include "confdefs.h"
10317    
10318  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 9996  aix3*) Line 10439  aix3*)
10439    fi    fi
10440    ;;    ;;
10441    
10442  aix4* | aix5*)  aix[4-9]*)
10443    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10444      test "$enable_shared" = yes && enable_static=no      test "$enable_shared" = yes && enable_static=no
10445    fi    fi
# Line 10052  if test -f "$ltmain"; then Line 10495  if test -f "$ltmain"; then
10495      predeps \      predeps \
10496      postdeps \      postdeps \
10497      compiler_lib_search_path \      compiler_lib_search_path \
10498        compiler_lib_search_dirs \
10499      archive_cmds \      archive_cmds \
10500      archive_expsym_cmds \      archive_expsym_cmds \
10501      postinstall_cmds \      postinstall_cmds \
# Line 10067  if test -f "$ltmain"; then Line 10511  if test -f "$ltmain"; then
10511      module_cmds \      module_cmds \
10512      module_expsym_cmds \      module_expsym_cmds \
10513      lt_cv_prog_compiler_c_o \      lt_cv_prog_compiler_c_o \
10514        fix_srcfile_path \
10515      exclude_expsyms \      exclude_expsyms \
10516      include_expsyms; do      include_expsyms; do
10517    
# Line 10111  echo "$as_me: creating $ofile" >&6;} Line 10556  echo "$as_me: creating $ofile" >&6;}
10556  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10557  # NOTE: Changes made to this file will be lost: look at ltmain.sh.  # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10558  #  #
10559  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10560  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
10561  #  #
10562  # This file is part of GNU Libtool:  # This file is part of GNU Libtool:
# Line 10347  predeps=$lt_predeps Line 10792  predeps=$lt_predeps
10792  # shared library.  # shared library.
10793  postdeps=$lt_postdeps  postdeps=$lt_postdeps
10794    
10795    # The directories searched by this compiler when creating a shared
10796    # library
10797    compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10798    
10799  # The library search path used internally by the compiler when linking  # The library search path used internally by the compiler when linking
10800  # a shared library.  # a shared library.
10801  compiler_lib_search_path=$lt_compiler_lib_search_path  compiler_lib_search_path=$lt_compiler_lib_search_path
# Line 10435  sys_lib_search_path_spec=$lt_sys_lib_sea Line 10884  sys_lib_search_path_spec=$lt_sys_lib_sea
10884  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10885    
10886  # Fix the shell variable \$srcfile for the compiler.  # Fix the shell variable \$srcfile for the compiler.
10887  fix_srcfile_path="$fix_srcfile_path"  fix_srcfile_path=$lt_fix_srcfile_path
10888    
10889  # Set to yes if exported symbols are required.  # Set to yes if exported symbols are required.
10890  always_export_symbols=$always_export_symbols  always_export_symbols=$always_export_symbols
# Line 10595  postdep_objects_CXX= Line 11044  postdep_objects_CXX=
11044  predeps_CXX=  predeps_CXX=
11045  postdeps_CXX=  postdeps_CXX=
11046  compiler_lib_search_path_CXX=  compiler_lib_search_path_CXX=
11047    compiler_lib_search_dirs_CXX=
11048    
11049  # Source file extension for C++ test sources.  # Source file extension for C++ test sources.
11050  ac_ext=cpp  ac_ext=cpp
# Line 10604  objext=o Line 11054  objext=o
11054  objext_CXX=$objext  objext_CXX=$objext
11055    
11056  # Code to be used in simple compile tests  # Code to be used in simple compile tests
11057  lt_simple_compile_test_code="int some_variable = 0;\n"  lt_simple_compile_test_code="int some_variable = 0;"
11058    
11059  # Code to be used in simple link tests  # Code to be used in simple link tests
11060  lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11061    
11062  # 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.
11063    
# Line 10623  compiler=$CC Line 11073  compiler=$CC
11073    
11074  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
11075  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
11076  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11077  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11078  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
11079  $rm conftest*  $rm conftest*
11080    
11081  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
11082  printf "$lt_simple_link_test_code" >conftest.$ac_ext  echo "$lt_simple_link_test_code" >conftest.$ac_ext
11083  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11084  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
11085  $rm conftest*  $rm -r conftest*
11086    
11087    
11088  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
# Line 10839  case $host_os in Line 11289  case $host_os in
11289      # FIXME: insert proper C++ library support      # FIXME: insert proper C++ library support
11290      ld_shlibs_CXX=no      ld_shlibs_CXX=no
11291      ;;      ;;
11292    aix4* | aix5*)    aix[4-9]*)
11293      if test "$host_cpu" = ia64; then      if test "$host_cpu" = ia64; then
11294        # On IA64, the linker does run time linking by default, so we don't        # On IA64, the linker does run time linking by default, so we don't
11295        # have to do anything special.        # have to do anything special.
# Line 10852  case $host_os in Line 11302  case $host_os in
11302        # Test if we are trying to use run time linking or normal        # Test if we are trying to use run time linking or normal
11303        # AIX style linking. If -brtl is somewhere in LDFLAGS, we        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11304        # need to do runtime linking.        # need to do runtime linking.
11305        case $host_os in aix4.[23]|aix4.[23].*|aix5*)        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11306          for ld_flag in $LDFLAGS; do          for ld_flag in $LDFLAGS; do
11307            case $ld_flag in            case $ld_flag in
11308            *-brtl*)            *-brtl*)
# Line 10888  case $host_os in Line 11338  case $host_os in
11338             strings "$collect2name" | grep resolve_lib_name >/dev/null             strings "$collect2name" | grep resolve_lib_name >/dev/null
11339          then          then
11340            # We have reworked collect2            # We have reworked collect2
11341            hardcode_direct_CXX=yes            :
11342          else          else
11343            # We have old collect2            # We have old collect2
11344            hardcode_direct_CXX=unsupported            hardcode_direct_CXX=unsupported
# Line 10962  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 11412  eval "echo \"\$as_me:$LINENO: $ac_try_ec
11412         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
11413         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
11414    
11415  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
11416  }'`      /Import File Strings/,/^$/ {
11417            /^0/ {
11418                s/^0  *\(.*\)$/\1/
11419                p
11420            }
11421        }'
11422    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11423  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
11424  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
11425  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11426    fi
11427  else  else
11428    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11429  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 11022  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 11479  eval "echo \"\$as_me:$LINENO: $ac_try_ec
11479         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
11480         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
11481    
11482  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
11483  }'`      /Import File Strings/,/^$/ {
11484            /^0/ {
11485                s/^0  *\(.*\)$/\1/
11486                p
11487            }
11488        }'
11489    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11490  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
11491  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
11492  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11493    fi
11494  else  else
11495    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
11496  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 11096  if test -z "$aix_libpath"; then aix_libp Line 11560  if test -z "$aix_libpath"; then aix_libp
11560      fi      fi
11561    ;;    ;;
11562        darwin* | rhapsody*)        darwin* | rhapsody*)
         case $host_os in  
         rhapsody* | darwin1.[012])  
          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'  
          ;;  
        *) # Darwin 1.3 on  
          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then  
            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'  
          else  
            case ${MACOSX_DEPLOYMENT_TARGET} in  
              10.[012])  
                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'  
                ;;  
              10.*)  
                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'  
                ;;  
            esac  
          fi  
          ;;  
         esac  
11563        archive_cmds_need_lc_CXX=no        archive_cmds_need_lc_CXX=no
11564        hardcode_direct_CXX=no        hardcode_direct_CXX=no
11565        hardcode_automatic_CXX=yes        hardcode_automatic_CXX=yes
11566        hardcode_shlibpath_var_CXX=unsupported        hardcode_shlibpath_var_CXX=unsupported
11567        whole_archive_flag_spec_CXX=''        whole_archive_flag_spec_CXX=''
11568        link_all_deplibs_CXX=yes        link_all_deplibs_CXX=yes
11569          allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11570      if test "$GXX" = yes ; then        if test "$GXX" = yes ; then
       lt_int_apple_cc_single_mod=no  
11571        output_verbose_link_cmd='echo'        output_verbose_link_cmd='echo'
11572        if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then        archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11573         lt_int_apple_cc_single_mod=yes        module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11574          archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11575          module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11576          if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11577            archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11578            archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11579        fi        fi
       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then  
        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'  
       else  
           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'  
         fi  
         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'  
         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds  
           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then  
             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           else  
             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
           fi  
             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
11580        else        else
11581        case $cc_basename in        case $cc_basename in
11582          xlc*)          xlc*)
11583           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
11584            archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'            archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11585            module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'            module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11586            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11587            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11588            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11589            ;;            ;;
11590         *)         *)
# Line 11231  if test -z "$aix_libpath"; then aix_libp Line 11667  if test -z "$aix_libpath"; then aix_libp
11667        hardcode_libdir_separator_CXX=:        hardcode_libdir_separator_CXX=:
11668    
11669        case $host_cpu in        case $host_cpu in
11670        hppa*64*|ia64*)        hppa*64*|ia64*) ;;
         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'  
         ;;  
11671        *)        *)
11672          export_dynamic_flag_spec_CXX='${wl}-E'          export_dynamic_flag_spec_CXX='${wl}-E'
11673          ;;          ;;
# Line 11301  if test -z "$aix_libpath"; then aix_libp Line 11735  if test -z "$aix_libpath"; then aix_libp
11735          ;;          ;;
11736      esac      esac
11737      ;;      ;;
11738    interix3*)    interix[3-9]*)
11739      hardcode_direct_CXX=no      hardcode_direct_CXX=no
11740      hardcode_shlibpath_var_CXX=no      hardcode_shlibpath_var_CXX=no
11741      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
# Line 11393  if test -z "$aix_libpath"; then aix_libp Line 11827  if test -z "$aix_libpath"; then aix_libp
11827          export_dynamic_flag_spec_CXX='${wl}--export-dynamic'          export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11828          whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'          whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11829          ;;          ;;
11830        pgCC*)        pgCC* | pgcpp*)
11831          # Portland Group C++ compiler          # Portland Group C++ compiler
11832          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11833          archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'          archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
# Line 11421  if test -z "$aix_libpath"; then aix_libp Line 11855  if test -z "$aix_libpath"; then aix_libp
11855          # dependencies.          # dependencies.
11856          output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'          output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11857          ;;          ;;
11858          *)
11859            case `$CC -V 2>&1 | sed 5q` in
11860            *Sun\ C*)
11861              # Sun C++ 5.9
11862              no_undefined_flag_CXX=' -zdefs'
11863              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11864              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11865              hardcode_libdir_flag_spec_CXX='-R$libdir'
11866              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11867    
11868              # Not sure whether something based on
11869              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11870              # would be better.
11871              output_verbose_link_cmd='echo'
11872    
11873              # Archives containing C++ object files must be created using
11874              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11875              # necessary to make sure instantiated templates are included
11876              # in the archive.
11877              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11878              ;;
11879            esac
11880            ;;
11881      esac      esac
11882      ;;      ;;
11883    lynxos*)    lynxos*)
# Line 11459  if test -z "$aix_libpath"; then aix_libp Line 11916  if test -z "$aix_libpath"; then aix_libp
11916      ld_shlibs_CXX=no      ld_shlibs_CXX=no
11917      ;;      ;;
11918    openbsd*)    openbsd*)
11919      hardcode_direct_CXX=yes      if test -f /usr/libexec/ld.so; then
11920      hardcode_shlibpath_var_CXX=no        hardcode_direct_CXX=yes
11921      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'        hardcode_shlibpath_var_CXX=no
11922      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11923      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11924        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11925        export_dynamic_flag_spec_CXX='${wl}-E'          archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11926        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'          export_dynamic_flag_spec_CXX='${wl}-E'
11927            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11928          fi
11929          output_verbose_link_cmd='echo'
11930        else
11931          ld_shlibs_CXX=no
11932      fi      fi
     output_verbose_link_cmd='echo'  
11933      ;;      ;;
11934    osf3*)    osf3*)
11935      case $cc_basename in      case $cc_basename in
# Line 11630  if test -z "$aix_libpath"; then aix_libp Line 12091  if test -z "$aix_libpath"; then aix_libp
12091          case $host_os in          case $host_os in
12092            solaris2.[0-5] | solaris2.[0-5].*) ;;            solaris2.[0-5] | solaris2.[0-5].*) ;;
12093            *)            *)
12094              # The C++ compiler is used as linker so we must use $wl              # The compiler driver will combine and reorder linker options,
12095              # flag to pass the commands to the underlying system              # but understands `-z linker_flag'.
             # linker. We must also pass each convience library through  
             # to the system linker between allextract/defaultextract.  
             # The C++ compiler will combine linker options so we  
             # cannot just pass the convience library names through  
             # without $wl.  
12096              # Supported since Solaris 2.6 (maybe 2.5.1?)              # Supported since Solaris 2.6 (maybe 2.5.1?)
12097              whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'              whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12098              ;;              ;;
12099          esac          esac
12100          link_all_deplibs_CXX=yes          link_all_deplibs_CXX=yes
# Line 11685  if test -z "$aix_libpath"; then aix_libp Line 12141  if test -z "$aix_libpath"; then aix_libp
12141            fi            fi
12142    
12143            hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'            hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12144              case $host_os in
12145              solaris2.[0-5] | solaris2.[0-5].*) ;;
12146              *)
12147                whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12148                ;;
12149              esac
12150          fi          fi
12151          ;;          ;;
12152      esac      esac
# Line 11772  test "$ld_shlibs_CXX" = no && can_build_ Line 12234  test "$ld_shlibs_CXX" = no && can_build_
12234  GCC_CXX="$GXX"  GCC_CXX="$GXX"
12235  LD_CXX="$LD"  LD_CXX="$LD"
12236    
   
12237  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
12238  class Foo  class Foo
12239  {  {
# Line 11874  fi Line 12335  fi
12335    
12336  $rm -f confest.$objext  $rm -f confest.$objext
12337    
12338    compiler_lib_search_dirs_CXX=
12339    if test -n "$compiler_lib_search_path_CXX"; then
12340      compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12341    fi
12342    
12343  # PORTME: override above test on systems where it is broken  # PORTME: override above test on systems where it is broken
12344  case $host_os in  case $host_os in
12345  interix3*)  interix[3-9]*)
12346    # Interix 3.5 installs completely hosed .la files for C++, so rather than    # Interix 3.5 installs completely hosed .la files for C++, so rather than
12347    # hack all around it, let's just trust "g++" to DTRT.    # hack all around it, let's just trust "g++" to DTRT.
12348    predep_objects_CXX=    predep_objects_CXX=
# Line 11884  interix3*) Line 12350  interix3*)
12350    postdeps_CXX=    postdeps_CXX=
12351    ;;    ;;
12352    
12353    linux*)
12354      case `$CC -V 2>&1 | sed 5q` in
12355      *Sun\ C*)
12356        # Sun C++ 5.9
12357        #
12358        # The more standards-conforming stlport4 library is
12359        # incompatible with the Cstd library. Avoid specifying
12360        # it if it's in CXXFLAGS. Ignore libCrun as
12361        # -library=stlport4 depends on it.
12362        case " $CXX $CXXFLAGS " in
12363        *" -library=stlport4 "*)
12364          solaris_use_stlport4=yes
12365          ;;
12366        esac
12367        if test "$solaris_use_stlport4" != yes; then
12368          postdeps_CXX='-library=Cstd -library=Crun'
12369        fi
12370        ;;
12371      esac
12372      ;;
12373    
12374  solaris*)  solaris*)
12375    case $cc_basename in    case $cc_basename in
12376    CC*)    CC*)
12377        # The more standards-conforming stlport4 library is
12378        # incompatible with the Cstd library. Avoid specifying
12379        # it if it's in CXXFLAGS. Ignore libCrun as
12380        # -library=stlport4 depends on it.
12381        case " $CXX $CXXFLAGS " in
12382        *" -library=stlport4 "*)
12383          solaris_use_stlport4=yes
12384          ;;
12385        esac
12386    
12387      # Adding this requires a known-good setup of shared libraries for      # Adding this requires a known-good setup of shared libraries for
12388      # Sun compiler versions before 5.6, else PIC objects from an old      # Sun compiler versions before 5.6, else PIC objects from an old
12389      # archive will be linked into the output, leading to subtle bugs.      # archive will be linked into the output, leading to subtle bugs.
12390      postdeps_CXX='-lCstd -lCrun'      if test "$solaris_use_stlport4" != yes; then
12391          postdeps_CXX='-library=Cstd -library=Crun'
12392        fi
12393      ;;      ;;
12394    esac    esac
12395    ;;    ;;
12396  esac  esac
12397    
   
12398  case " $postdeps_CXX " in  case " $postdeps_CXX " in
12399  *" -lc "*) archive_cmds_need_lc_CXX=no ;;  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12400  esac  esac
# Line 11927  echo $ECHO_N "checking for $compiler opt Line 12425  echo $ECHO_N "checking for $compiler opt
12425        # like `-m68040'.        # like `-m68040'.
12426        lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'        lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12427        ;;        ;;
12428      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12429        # PIC is the default for these OSes.        # PIC is the default for these OSes.
12430        ;;        ;;
12431      mingw* | os2* | pw32*)      mingw* | cygwin* | os2* | pw32*)
12432        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
12433        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
12434          # Although the cygwin gcc ignores -fPIC, still need this for old-style
12435          # (--disable-auto-import) libraries
12436        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'        lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12437        ;;        ;;
12438      darwin* | rhapsody*)      darwin* | rhapsody*)
# Line 11944  echo $ECHO_N "checking for $compiler opt Line 12444  echo $ECHO_N "checking for $compiler opt
12444        # DJGPP does not support shared libraries at all        # DJGPP does not support shared libraries at all
12445        lt_prog_compiler_pic_CXX=        lt_prog_compiler_pic_CXX=
12446        ;;        ;;
12447      interix3*)      interix[3-9]*)
12448        # Interix 3.x gcc -fpic/-fPIC options generate broken code.        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12449        # Instead, we relocate shared libraries at runtime.        # Instead, we relocate shared libraries at runtime.
12450        ;;        ;;
# Line 11970  echo $ECHO_N "checking for $compiler opt Line 12470  echo $ECHO_N "checking for $compiler opt
12470      esac      esac
12471    else    else
12472      case $host_os in      case $host_os in
12473        aix4* | aix5*)        aix[4-9]*)
12474          # All AIX code is PIC.          # All AIX code is PIC.
12475          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
12476            # AIX 5 now supports IA64 processor            # AIX 5 now supports IA64 processor
# Line 12066  echo $ECHO_N "checking for $compiler opt Line 12566  echo $ECHO_N "checking for $compiler opt
12566              lt_prog_compiler_pic_CXX='-KPIC'              lt_prog_compiler_pic_CXX='-KPIC'
12567              lt_prog_compiler_static_CXX='-static'              lt_prog_compiler_static_CXX='-static'
12568              ;;              ;;
12569            pgCC*)            pgCC* | pgcpp*)
12570              # Portland Group C++ compiler.              # Portland Group C++ compiler.
12571              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
12572              lt_prog_compiler_pic_CXX='-fpic'              lt_prog_compiler_pic_CXX='-fpic'
# Line 12080  echo $ECHO_N "checking for $compiler opt Line 12580  echo $ECHO_N "checking for $compiler opt
12580              lt_prog_compiler_static_CXX='-non_shared'              lt_prog_compiler_static_CXX='-non_shared'
12581              ;;              ;;
12582            *)            *)
12583                case `$CC -V 2>&1 | sed 5q` in
12584                *Sun\ C*)
12585                  # Sun C++ 5.9
12586                  lt_prog_compiler_pic_CXX='-KPIC'
12587                  lt_prog_compiler_static_CXX='-Bstatic'
12588                  lt_prog_compiler_wl_CXX='-Qoption ld '
12589                  ;;
12590                esac
12591              ;;              ;;
12592          esac          esac
12593          ;;          ;;
# Line 12189  if test -n "$lt_prog_compiler_pic_CXX"; Line 12697  if test -n "$lt_prog_compiler_pic_CXX";
12697    
12698  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12699  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12700  if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then  if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12701    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
12702  else  else
12703    lt_prog_compiler_pic_works_CXX=no    lt_cv_prog_compiler_pic_works_CXX=no
12704    ac_outfile=conftest.$ac_objext    ac_outfile=conftest.$ac_objext
12705     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12706     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"     lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12707     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
12708     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 12205  else Line 12713  else
12713     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12714     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12715     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
12716     (eval echo "\"\$as_me:12208: $lt_compile\"" >&5)     (eval echo "\"\$as_me:12716: $lt_compile\"" >&5)
12717     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
12718     ac_status=$?     ac_status=$?
12719     cat conftest.err >&5     cat conftest.err >&5
12720     echo "$as_me:12212: \$? = $ac_status" >&5     echo "$as_me:12720: \$? = $ac_status" >&5
12721     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
12722       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
12723       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
12724       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12725       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12726       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12727         lt_prog_compiler_pic_works_CXX=yes         lt_cv_prog_compiler_pic_works_CXX=yes
12728       fi       fi
12729     fi     fi
12730     $rm conftest*     $rm conftest*
12731    
12732  fi  fi
12733  { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12734  echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12735    
12736  if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then  if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12737      case $lt_prog_compiler_pic_CXX in      case $lt_prog_compiler_pic_CXX in
12738       "" | " "*) ;;       "" | " "*) ;;
12739       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;       *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
# Line 12252  esac Line 12760  esac
12760  wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"  wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12761  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12762  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12763  if test "${lt_prog_compiler_static_works_CXX+set}" = set; then  if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12764    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
12765  else  else
12766    lt_prog_compiler_static_works_CXX=no    lt_cv_prog_compiler_static_works_CXX=no
12767     save_LDFLAGS="$LDFLAGS"     save_LDFLAGS="$LDFLAGS"
12768     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12769     printf "$lt_simple_link_test_code" > conftest.$ac_ext     echo "$lt_simple_link_test_code" > conftest.$ac_ext
12770     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12771       # The linker can only warn and ignore the option if not recognized       # The linker can only warn and ignore the option if not recognized
12772       # So say no if there are warnings       # So say no if there are warnings
# Line 12268  else Line 12776  else
12776         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12777         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12778         if diff conftest.exp conftest.er2 >/dev/null; then         if diff conftest.exp conftest.er2 >/dev/null; then
12779           lt_prog_compiler_static_works_CXX=yes           lt_cv_prog_compiler_static_works_CXX=yes
12780         fi         fi
12781       else       else
12782         lt_prog_compiler_static_works_CXX=yes         lt_cv_prog_compiler_static_works_CXX=yes
12783       fi       fi
12784     fi     fi
12785     $rm conftest*     $rm -r conftest*
12786     LDFLAGS="$save_LDFLAGS"     LDFLAGS="$save_LDFLAGS"
12787    
12788  fi  fi
12789  { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12790  echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12791    
12792  if test x"$lt_prog_compiler_static_works_CXX" = xyes; then  if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12793      :      :
12794  else  else
12795      lt_prog_compiler_static_CXX=      lt_prog_compiler_static_CXX=
# Line 12298  else Line 12806  else
12806     mkdir conftest     mkdir conftest
12807     cd conftest     cd conftest
12808     mkdir out     mkdir out
12809     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12810    
12811     lt_compiler_flag="-o out/conftest2.$ac_objext"     lt_compiler_flag="-o out/conftest2.$ac_objext"
12812     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
# Line 12309  else Line 12817  else
12817     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12818     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12819     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
12820     (eval echo "\"\$as_me:12312: $lt_compile\"" >&5)     (eval echo "\"\$as_me:12820: $lt_compile\"" >&5)
12821     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
12822     ac_status=$?     ac_status=$?
12823     cat out/conftest.err >&5     cat out/conftest.err >&5
12824     echo "$as_me:12316: \$? = $ac_status" >&5     echo "$as_me:12824: \$? = $ac_status" >&5
12825     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
12826     then     then
12827       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 12366  echo $ECHO_N "checking whether the $comp Line 12874  echo $ECHO_N "checking whether the $comp
12874    
12875    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12876    case $host_os in    case $host_os in
12877    aix4* | aix5*)    aix[4-9]*)
12878      # If we're using GNU nm, then we don't want the "-C" option.      # If we're using GNU nm, then we don't want the "-C" option.
12879      # -C means demangle to AIX nm, but means don't demangle with GNU nm      # -C means demangle to AIX nm, but means don't demangle with GNU nm
12880      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then      if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
# Line 12379  echo $ECHO_N "checking whether the $comp Line 12887  echo $ECHO_N "checking whether the $comp
12887      export_symbols_cmds_CXX="$ltdll_cmds"      export_symbols_cmds_CXX="$ltdll_cmds"
12888    ;;    ;;
12889    cygwin* | mingw*)    cygwin* | mingw*)
12890      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12891    ;;    ;;
12892    linux* | k*bsd*-gnu)    linux* | k*bsd*-gnu)
12893      link_all_deplibs_CXX=no      link_all_deplibs_CXX=no
# Line 12388  echo $ECHO_N "checking whether the $comp Line 12896  echo $ECHO_N "checking whether the $comp
12896      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12897    ;;    ;;
12898    esac    esac
12899      exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12900    
12901  { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5  { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12902  echo "${ECHO_T}$ld_shlibs_CXX" >&6; }  echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
# Line 12413  x|xyes) Line 12922  x|xyes)
12922        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12923  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12924        $rm conftest*        $rm conftest*
12925        printf "$lt_simple_compile_test_code" > conftest.$ac_ext        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12926    
12927        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12928    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
# Line 12471  shlibpath_overrides_runpath=unknown Line 12980  shlibpath_overrides_runpath=unknown
12980  version_type=none  version_type=none
12981  dynamic_linker="$host_os ld.so"  dynamic_linker="$host_os ld.so"
12982  sys_lib_dlsearch_path_spec="/lib /usr/lib"  sys_lib_dlsearch_path_spec="/lib /usr/lib"
12983  if test "$GCC" = yes; then  
   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`  
   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then  
     # if the path contains ";" then we assume it to be the separator  
     # otherwise default to the standard path separator (i.e. ":") - it is  
     # assumed that no part of a normal pathname contains ";" but that should  
     # okay in the real world where ";" in dirpaths is itself problematic.  
     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`  
   else  
     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`  
   fi  
 else  
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"  
 fi  
12984  need_lib_prefix=unknown  need_lib_prefix=unknown
12985  hardcode_into_libs=no  hardcode_into_libs=no
12986    
# Line 12502  aix3*) Line 12998  aix3*)
12998    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
12999    ;;    ;;
13000    
13001  aix4* | aix5*)  aix[4-9]*)
13002    version_type=linux    version_type=linux
13003    need_lib_prefix=no    need_lib_prefix=no
13004    need_version=no    need_version=no
# Line 12641  darwin* | rhapsody*) Line 13137  darwin* | rhapsody*)
13137    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
13138    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
13139    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13140    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.  
   if test "$GCC" = yes; then  
     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`  
   else  
     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'  
   fi  
13141    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13142    ;;    ;;
13143    
# Line 12700  freebsd* | dragonfly*) Line 13191  freebsd* | dragonfly*)
13191      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
13192      hardcode_into_libs=yes      hardcode_into_libs=yes
13193      ;;      ;;
13194    freebsd*) # from 4.6 on    *) # from 4.6 on, and DragonFly
13195      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
13196      hardcode_into_libs=yes      hardcode_into_libs=yes
13197      ;;      ;;
# Line 12763  hpux9* | hpux10* | hpux11*) Line 13254  hpux9* | hpux10* | hpux11*)
13254    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
13255    ;;    ;;
13256    
13257  interix3*)  interix[3-9]*)
13258    version_type=linux    version_type=linux
13259    need_lib_prefix=no    need_lib_prefix=no
13260    need_version=no    need_version=no
# Line 12834  linux* | k*bsd*-gnu) Line 13325  linux* | k*bsd*-gnu)
13325    
13326    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
13327    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
13328      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13329      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13330    fi    fi
13331    
# Line 12940  osf3* | osf4* | osf5*) Line 13431  osf3* | osf4* | osf5*)
13431    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13432    ;;    ;;
13433    
13434    rdos*)
13435      dynamic_linker=no
13436      ;;
13437    
13438  solaris*)  solaris*)
13439    version_type=linux    version_type=linux
13440    need_lib_prefix=no    need_lib_prefix=no
# Line 13036  esac Line 13531  esac
13531  echo "${ECHO_T}$dynamic_linker" >&6; }  echo "${ECHO_T}$dynamic_linker" >&6; }
13532  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
13533    
13534    if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13535      echo $ECHO_N "(cached) $ECHO_C" >&6
13536    else
13537      lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13538    fi
13539    
13540    sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13541    if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13542      echo $ECHO_N "(cached) $ECHO_C" >&6
13543    else
13544      lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13545    fi
13546    
13547    sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13548    
13549  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13550  if test "$GCC" = yes; then  if test "$GCC" = yes; then
13551    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
# Line 13119  if test -f "$ltmain"; then Line 13629  if test -f "$ltmain"; then
13629      predeps_CXX \      predeps_CXX \
13630      postdeps_CXX \      postdeps_CXX \
13631      compiler_lib_search_path_CXX \      compiler_lib_search_path_CXX \
13632        compiler_lib_search_dirs_CXX \
13633      archive_cmds_CXX \      archive_cmds_CXX \
13634      archive_expsym_cmds_CXX \      archive_expsym_cmds_CXX \
13635      postinstall_cmds_CXX \      postinstall_cmds_CXX \
# Line 13134  if test -f "$ltmain"; then Line 13645  if test -f "$ltmain"; then
13645      module_cmds_CXX \      module_cmds_CXX \
13646      module_expsym_cmds_CXX \      module_expsym_cmds_CXX \
13647      lt_cv_prog_compiler_c_o_CXX \      lt_cv_prog_compiler_c_o_CXX \
13648        fix_srcfile_path_CXX \
13649      exclude_expsyms_CXX \      exclude_expsyms_CXX \
13650      include_expsyms_CXX; do      include_expsyms_CXX; do
13651    
# Line 13366  predeps=$lt_predeps_CXX Line 13878  predeps=$lt_predeps_CXX
13878  # shared library.  # shared library.
13879  postdeps=$lt_postdeps_CXX  postdeps=$lt_postdeps_CXX
13880    
13881    # The directories searched by this compiler when creating a shared
13882    # library
13883    compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13884    
13885  # The library search path used internally by the compiler when linking  # The library search path used internally by the compiler when linking
13886  # a shared library.  # a shared library.
13887  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
# Line 13454  sys_lib_search_path_spec=$lt_sys_lib_sea Line 13970  sys_lib_search_path_spec=$lt_sys_lib_sea
13970  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13971    
13972  # Fix the shell variable \$srcfile for the compiler.  # Fix the shell variable \$srcfile for the compiler.
13973  fix_srcfile_path="$fix_srcfile_path_CXX"  fix_srcfile_path=$lt_fix_srcfile_path
13974    
13975  # Set to yes if exported symbols are required.  # Set to yes if exported symbols are required.
13976  always_export_symbols=$always_export_symbols_CXX  always_export_symbols=$always_export_symbols_CXX
# Line 13545  objext=o Line 14061  objext=o
14061  objext_F77=$objext  objext_F77=$objext
14062    
14063  # Code to be used in simple compile tests  # Code to be used in simple compile tests
14064  lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"  lt_simple_compile_test_code="\
14065          subroutine t
14066          return
14067          end
14068    "
14069    
14070  # Code to be used in simple link tests  # Code to be used in simple link tests
14071  lt_simple_link_test_code="      program t\n      end\n"  lt_simple_link_test_code="\
14072          program t
14073          end
14074    "
14075    
14076  # 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.
14077    
# Line 13564  compiler=$CC Line 14087  compiler=$CC
14087    
14088  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
14089  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
14090  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14091  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14092  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
14093  $rm conftest*  $rm conftest*
14094    
14095  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
14096  printf "$lt_simple_link_test_code" >conftest.$ac_ext  echo "$lt_simple_link_test_code" >conftest.$ac_ext
14097  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14098  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
14099  $rm conftest*  $rm -r conftest*
14100    
14101    
14102  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
# Line 13611  aix3*) Line 14134  aix3*)
14134      postinstall_cmds='$RANLIB $lib'      postinstall_cmds='$RANLIB $lib'
14135    fi    fi
14136    ;;    ;;
14137  aix4* | aix5*)  aix[4-9]*)
14138    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14139      test "$enable_shared" = yes && enable_static=no      test "$enable_shared" = yes && enable_static=no
14140    fi    fi
# Line 13657  echo $ECHO_N "checking for $compiler opt Line 14180  echo $ECHO_N "checking for $compiler opt
14180        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14181        ;;        ;;
14182    
14183      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14184        # PIC is the default for these OSes.        # PIC is the default for these OSes.
14185        ;;        ;;
14186    
14187      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
14188        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
14189        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
14190          # Although the cygwin gcc ignores -fPIC, still need this for old-style
14191          # (--disable-auto-import) libraries
14192        lt_prog_compiler_pic_F77='-DDLL_EXPORT'        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14193        ;;        ;;
14194    
# Line 13673  echo $ECHO_N "checking for $compiler opt Line 14198  echo $ECHO_N "checking for $compiler opt
14198        lt_prog_compiler_pic_F77='-fno-common'        lt_prog_compiler_pic_F77='-fno-common'
14199        ;;        ;;
14200    
14201      interix3*)      interix[3-9]*)
14202        # Interix 3.x gcc -fpic/-fPIC options generate broken code.        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14203        # Instead, we relocate shared libraries at runtime.        # Instead, we relocate shared libraries at runtime.
14204        ;;        ;;
# Line 13731  echo $ECHO_N "checking for $compiler opt Line 14256  echo $ECHO_N "checking for $compiler opt
14256         esac         esac
14257         ;;         ;;
14258    
14259      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
14260        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
14261        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
14262        lt_prog_compiler_pic_F77='-DDLL_EXPORT'        lt_prog_compiler_pic_F77='-DDLL_EXPORT'
# Line 13783  echo $ECHO_N "checking for $compiler opt Line 14308  echo $ECHO_N "checking for $compiler opt
14308          # All Alpha code is PIC.          # All Alpha code is PIC.
14309          lt_prog_compiler_static_F77='-non_shared'          lt_prog_compiler_static_F77='-non_shared'
14310          ;;          ;;
14311          *)
14312            case `$CC -V 2>&1 | sed 5q` in
14313            *Sun\ C*)
14314              # Sun C 5.9
14315              lt_prog_compiler_pic_F77='-KPIC'
14316              lt_prog_compiler_static_F77='-Bstatic'
14317              lt_prog_compiler_wl_F77='-Wl,'
14318              ;;
14319            *Sun\ F*)
14320              # Sun Fortran 8.3 passes all unrecognized flags to the linker
14321              lt_prog_compiler_pic_F77='-KPIC'
14322              lt_prog_compiler_static_F77='-Bstatic'
14323              lt_prog_compiler_wl_F77=''
14324              ;;
14325            esac
14326            ;;
14327        esac        esac
14328        ;;        ;;
14329    
# Line 13792  echo $ECHO_N "checking for $compiler opt Line 14333  echo $ECHO_N "checking for $compiler opt
14333        lt_prog_compiler_static_F77='-non_shared'        lt_prog_compiler_static_F77='-non_shared'
14334        ;;        ;;
14335    
14336        rdos*)
14337          lt_prog_compiler_static_F77='-non_shared'
14338          ;;
14339    
14340      solaris*)      solaris*)
14341        lt_prog_compiler_pic_F77='-KPIC'        lt_prog_compiler_pic_F77='-KPIC'
14342        lt_prog_compiler_static_F77='-Bstatic'        lt_prog_compiler_static_F77='-Bstatic'
# Line 13854  if test -n "$lt_prog_compiler_pic_F77"; Line 14399  if test -n "$lt_prog_compiler_pic_F77";
14399    
14400  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14401  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14402  if test "${lt_prog_compiler_pic_works_F77+set}" = set; then  if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14403    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
14404  else  else
14405    lt_prog_compiler_pic_works_F77=no    lt_cv_prog_compiler_pic_works_F77=no
14406    ac_outfile=conftest.$ac_objext    ac_outfile=conftest.$ac_objext
14407     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14408     lt_compiler_flag="$lt_prog_compiler_pic_F77"     lt_compiler_flag="$lt_prog_compiler_pic_F77"
14409     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
14410     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 13870  else Line 14415  else
14415     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14416     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14417     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
14418     (eval echo "\"\$as_me:13873: $lt_compile\"" >&5)     (eval echo "\"\$as_me:14418: $lt_compile\"" >&5)
14419     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
14420     ac_status=$?     ac_status=$?
14421     cat conftest.err >&5     cat conftest.err >&5
14422     echo "$as_me:13877: \$? = $ac_status" >&5     echo "$as_me:14422: \$? = $ac_status" >&5
14423     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
14424       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
14425       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
14426       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14427       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14428       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14429         lt_prog_compiler_pic_works_F77=yes         lt_cv_prog_compiler_pic_works_F77=yes
14430       fi       fi
14431     fi     fi
14432     $rm conftest*     $rm conftest*
14433    
14434  fi  fi
14435  { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14436  echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14437    
14438  if test x"$lt_prog_compiler_pic_works_F77" = xyes; then  if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14439      case $lt_prog_compiler_pic_F77 in      case $lt_prog_compiler_pic_F77 in
14440       "" | " "*) ;;       "" | " "*) ;;
14441       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;       *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
# Line 13917  esac Line 14462  esac
14462  wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"  wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14463  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14464  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14465  if test "${lt_prog_compiler_static_works_F77+set}" = set; then  if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14466    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
14467  else  else
14468    lt_prog_compiler_static_works_F77=no    lt_cv_prog_compiler_static_works_F77=no
14469     save_LDFLAGS="$LDFLAGS"     save_LDFLAGS="$LDFLAGS"
14470     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14471     printf "$lt_simple_link_test_code" > conftest.$ac_ext     echo "$lt_simple_link_test_code" > conftest.$ac_ext
14472     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14473       # The linker can only warn and ignore the option if not recognized       # The linker can only warn and ignore the option if not recognized
14474       # So say no if there are warnings       # So say no if there are warnings
# Line 13933  else Line 14478  else
14478         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14479         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14480         if diff conftest.exp conftest.er2 >/dev/null; then         if diff conftest.exp conftest.er2 >/dev/null; then
14481           lt_prog_compiler_static_works_F77=yes           lt_cv_prog_compiler_static_works_F77=yes
14482         fi         fi
14483       else       else
14484         lt_prog_compiler_static_works_F77=yes         lt_cv_prog_compiler_static_works_F77=yes
14485       fi       fi
14486     fi     fi
14487     $rm conftest*     $rm -r conftest*
14488     LDFLAGS="$save_LDFLAGS"     LDFLAGS="$save_LDFLAGS"
14489    
14490  fi  fi
14491  { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14492  echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14493    
14494  if test x"$lt_prog_compiler_static_works_F77" = xyes; then  if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14495      :      :
14496  else  else
14497      lt_prog_compiler_static_F77=      lt_prog_compiler_static_F77=
# Line 13963  else Line 14508  else
14508     mkdir conftest     mkdir conftest
14509     cd conftest     cd conftest
14510     mkdir out     mkdir out
14511     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14512    
14513     lt_compiler_flag="-o out/conftest2.$ac_objext"     lt_compiler_flag="-o out/conftest2.$ac_objext"
14514     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
# Line 13974  else Line 14519  else
14519     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14520     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14521     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
14522     (eval echo "\"\$as_me:13977: $lt_compile\"" >&5)     (eval echo "\"\$as_me:14522: $lt_compile\"" >&5)
14523     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
14524     ac_status=$?     ac_status=$?
14525     cat out/conftest.err >&5     cat out/conftest.err >&5
14526     echo "$as_me:13981: \$? = $ac_status" >&5     echo "$as_me:14526: \$? = $ac_status" >&5
14527     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
14528     then     then
14529       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 14058  echo $ECHO_N "checking whether the $comp Line 14603  echo $ECHO_N "checking whether the $comp
14603    # it will be wrapped by ` (' and `)$', so one must not match beginning or    # it will be wrapped by ` (' and `)$', so one must not match beginning or
14604    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14605    # as well as any symbol that contains `d'.    # as well as any symbol that contains `d'.
14606    exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"    exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14607    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14608    # platforms (ab)use it in PIC code, but their linkers get confused if    # platforms (ab)use it in PIC code, but their linkers get confused if
14609    # the symbol is explicitly referenced.  Since portable code cannot    # the symbol is explicitly referenced.  Since portable code cannot
14610    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
14611    # preloaded symbol tables.    # preloaded symbol tables.
14612      # Exclude shared library initialization/finalization symbols.
14613    extract_expsyms_cmds=    extract_expsyms_cmds=
14614    # Just being paranoid about ensuring that cc_basename is set.    # Just being paranoid about ensuring that cc_basename is set.
14615    for cc_temp in $compiler""; do    for cc_temp in $compiler""; do
# Line 14122  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 14668  cc_basename=`$echo "X$cc_temp" | $Xsed -
14668    
14669      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
14670      case $host_os in      case $host_os in
14671      aix3* | aix4* | aix5*)      aix[3-9]*)
14672        # On AIX/PPC, the GNU linker is very broken        # On AIX/PPC, the GNU linker is very broken
14673        if test "$host_cpu" != ia64; then        if test "$host_cpu" != ia64; then
14674          ld_shlibs_F77=no          ld_shlibs_F77=no
# Line 14170  EOF Line 14716  EOF
14716        allow_undefined_flag_F77=unsupported        allow_undefined_flag_F77=unsupported
14717        always_export_symbols_F77=no        always_export_symbols_F77=no
14718        enable_shared_with_static_runtimes_F77=yes        enable_shared_with_static_runtimes_F77=yes
14719        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/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14720    
14721        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14722          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'          archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
# Line 14188  EOF Line 14734  EOF
14734        fi        fi
14735        ;;        ;;
14736    
14737      interix3*)      interix[3-9]*)
14738        hardcode_direct_F77=no        hardcode_direct_F77=no
14739        hardcode_shlibpath_var_F77=no        hardcode_shlibpath_var_F77=no
14740        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
# Line 14203  EOF Line 14749  EOF
14749        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'        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'
14750        ;;        ;;
14751    
14752      linux* | k*bsd*-gnu)      gnu* | linux* | k*bsd*-gnu)
14753        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14754          tmp_addflag=          tmp_addflag=
14755          case $cc_basename,$host_cpu in          case $cc_basename,$host_cpu in
# Line 14221  EOF Line 14767  EOF
14767          ifc* | ifort*)                  # Intel Fortran compiler          ifc* | ifort*)                  # Intel Fortran compiler
14768            tmp_addflag=' -nofor_main' ;;            tmp_addflag=' -nofor_main' ;;
14769          esac          esac
14770          archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          case `$CC -V 2>&1 | sed 5q` in
14771            *Sun\ C*)                       # Sun C 5.9
14772              whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14773              tmp_sharedflag='-G' ;;
14774            *Sun\ F*)                       # Sun Fortran 8.3
14775              tmp_sharedflag='-G' ;;
14776            *)
14777              tmp_sharedflag='-shared' ;;
14778            esac
14779            archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14780    
14781          if test $supports_anon_versioning = yes; then          if test $supports_anon_versioning = yes; then
14782            archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~            archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14783    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14784    $echo "local: *; };" >> $output_objdir/$libname.ver~    $echo "local: *; };" >> $output_objdir/$libname.ver~
14785            $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14786          fi          fi
14787          link_all_deplibs_F77=no          link_all_deplibs_F77=no
14788        else        else
# Line 14333  _LT_EOF Line 14888  _LT_EOF
14888        fi        fi
14889        ;;        ;;
14890    
14891      aix4* | aix5*)      aix[4-9]*)
14892        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
14893          # On IA64, the linker does run time linking by default, so we don't          # On IA64, the linker does run time linking by default, so we don't
14894          # have to do anything special.          # have to do anything special.
# Line 14353  _LT_EOF Line 14908  _LT_EOF
14908          # Test if we are trying to use run time linking or normal          # Test if we are trying to use run time linking or normal
14909          # AIX style linking. If -brtl is somewhere in LDFLAGS, we          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14910          # need to do runtime linking.          # need to do runtime linking.
14911          case $host_os in aix4.[23]|aix4.[23].*|aix5*)          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14912            for ld_flag in $LDFLAGS; do            for ld_flag in $LDFLAGS; do
14913            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14914              aix_use_runtimelinking=yes              aix_use_runtimelinking=yes
# Line 14387  _LT_EOF Line 14942  _LT_EOF
14942             strings "$collect2name" | grep resolve_lib_name >/dev/null             strings "$collect2name" | grep resolve_lib_name >/dev/null
14943            then            then
14944            # We have reworked collect2            # We have reworked collect2
14945            hardcode_direct_F77=yes            :
14946            else            else
14947            # We have old collect2            # We have old collect2
14948            hardcode_direct_F77=unsupported            hardcode_direct_F77=unsupported
# Line 14451  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 15006  eval "echo \"\$as_me:$LINENO: $ac_try_ec
15006         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
15007         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
15008    
15009  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
15010  }'`      /Import File Strings/,/^$/ {
15011            /^0/ {
15012                s/^0  *\(.*\)$/\1/
15013                p
15014            }
15015        }'
15016    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15017  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
15018  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
15019  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15020    fi
15021  else  else
15022    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15023  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 14500  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 15062  eval "echo \"\$as_me:$LINENO: $ac_try_ec
15062         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
15063         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
15064    
15065  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
15066  }'`      /Import File Strings/,/^$/ {
15067            /^0/ {
15068                s/^0  *\(.*\)$/\1/
15069                p
15070            }
15071        }'
15072    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15073  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
15074  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
15075  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15076    fi
15077  else  else
15078    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
15079  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 14558  if test -z "$aix_libpath"; then aix_libp Line 15127  if test -z "$aix_libpath"; then aix_libp
15127        # The linker will automatically build a .lib file if we build a DLL.        # The linker will automatically build a .lib file if we build a DLL.
15128        old_archive_From_new_cmds_F77='true'        old_archive_From_new_cmds_F77='true'
15129        # FIXME: Should let the user specify the lib program.        # FIXME: Should let the user specify the lib program.
15130        old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'        old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15131        fix_srcfile_path_F77='`cygpath -w "$srcfile"`'        fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15132        enable_shared_with_static_runtimes_F77=yes        enable_shared_with_static_runtimes_F77=yes
15133        ;;        ;;
# Line 14591  if test -z "$aix_libpath"; then aix_libp Line 15160  if test -z "$aix_libpath"; then aix_libp
15160        link_all_deplibs_F77=yes        link_all_deplibs_F77=yes
15161      if test "$GCC" = yes ; then      if test "$GCC" = yes ; then
15162          output_verbose_link_cmd='echo'          output_verbose_link_cmd='echo'
15163          archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'          archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15164        module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'          module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15165        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds          archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15166        archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'          module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
15167      else      else
15168        case $cc_basename in        case $cc_basename in
15169          xlc*)          xlc*)
15170           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
15171           archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'           archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15172           module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'           module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15173            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15174           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15175            module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15176            ;;            ;;
15177         *)         *)
# Line 14765  if test -z "$aix_libpath"; then aix_libp Line 15333  if test -z "$aix_libpath"; then aix_libp
15333        ;;        ;;
15334    
15335      openbsd*)      openbsd*)
15336        hardcode_direct_F77=yes        if test -f /usr/libexec/ld.so; then
15337        hardcode_shlibpath_var_F77=no          hardcode_direct_F77=yes
15338        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then          hardcode_shlibpath_var_F77=no
15339          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15340          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15341          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'            archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15342          export_dynamic_flag_spec_F77='${wl}-E'            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15343              export_dynamic_flag_spec_F77='${wl}-E'
15344            else
15345              case $host_os in
15346               openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15347                 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15348                 hardcode_libdir_flag_spec_F77='-R$libdir'
15349                 ;;
15350               *)
15351                 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15352                 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15353                 ;;
15354              esac
15355            fi
15356        else        else
15357         case $host_os in          ld_shlibs_F77=no
          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)  
            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
            hardcode_libdir_flag_spec_F77='-R$libdir'  
            ;;  
          *)  
            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'  
            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'  
            ;;  
        esac  
15358        fi        fi
15359        ;;        ;;
15360    
# Line 14841  if test -z "$aix_libpath"; then aix_libp Line 15413  if test -z "$aix_libpath"; then aix_libp
15413        case $host_os in        case $host_os in
15414        solaris2.[0-5] | solaris2.[0-5].*) ;;        solaris2.[0-5] | solaris2.[0-5].*) ;;
15415        *)        *)
15416          # The compiler driver will combine linker options so we          # The compiler driver will combine and reorder linker options,
15417          # cannot just pass the convience library names through          # but understands `-z linker_flag'.  GCC discards it without `$wl',
15418          # without $wl, iff we do not link with $LD.          # but is careful enough not to reorder.
         # Luckily, gcc supports the same syntax we need for Sun Studio.  
15419          # Supported since Solaris 2.6 (maybe 2.5.1?)          # Supported since Solaris 2.6 (maybe 2.5.1?)
15420          case $wlarc in          if test "$GCC" = yes; then
15421          '')            whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15422            whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;          else
15423          *)            whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15424            whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;          fi
15425          esac ;;          ;;
15426        esac        esac
15427        link_all_deplibs_F77=yes        link_all_deplibs_F77=yes
15428        ;;        ;;
# Line 14908  if test -z "$aix_libpath"; then aix_libp Line 15479  if test -z "$aix_libpath"; then aix_libp
15479        fi        fi
15480        ;;        ;;
15481    
15482      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15483        no_undefined_flag_F77='${wl}-z,text'        no_undefined_flag_F77='${wl}-z,text'
15484        archive_cmds_need_lc_F77=no        archive_cmds_need_lc_F77=no
15485        hardcode_shlibpath_var_F77=no        hardcode_shlibpath_var_F77=no
# Line 14985  x|xyes) Line 15556  x|xyes)
15556        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5        { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15557  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }  echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15558        $rm conftest*        $rm conftest*
15559        printf "$lt_simple_compile_test_code" > conftest.$ac_ext        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15560    
15561        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
# Line 15043  shlibpath_overrides_runpath=unknown Line 15614  shlibpath_overrides_runpath=unknown
15614  version_type=none  version_type=none
15615  dynamic_linker="$host_os ld.so"  dynamic_linker="$host_os ld.so"
15616  sys_lib_dlsearch_path_spec="/lib /usr/lib"  sys_lib_dlsearch_path_spec="/lib /usr/lib"
15617  if test "$GCC" = yes; then  
   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`  
   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then  
     # if the path contains ";" then we assume it to be the separator  
     # otherwise default to the standard path separator (i.e. ":") - it is  
     # assumed that no part of a normal pathname contains ";" but that should  
     # okay in the real world where ";" in dirpaths is itself problematic.  
     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`  
   else  
     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`  
   fi  
 else  
   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"  
 fi  
15618  need_lib_prefix=unknown  need_lib_prefix=unknown
15619  hardcode_into_libs=no  hardcode_into_libs=no
15620    
# Line 15074  aix3*) Line 15632  aix3*)
15632    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
15633    ;;    ;;
15634    
15635  aix4* | aix5*)  aix[4-9]*)
15636    version_type=linux    version_type=linux
15637    need_lib_prefix=no    need_lib_prefix=no
15638    need_version=no    need_version=no
# Line 15213  darwin* | rhapsody*) Line 15771  darwin* | rhapsody*)
15771    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
15772    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
15773    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15774    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.  
   if test "$GCC" = yes; then  
     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`  
   else  
     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'  
   fi  
15775    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15776    ;;    ;;
15777    
# Line 15272  freebsd* | dragonfly*) Line 15825  freebsd* | dragonfly*)
15825      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
15826      hardcode_into_libs=yes      hardcode_into_libs=yes
15827      ;;      ;;
15828    freebsd*) # from 4.6 on    *) # from 4.6 on, and DragonFly
15829      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
15830      hardcode_into_libs=yes      hardcode_into_libs=yes
15831      ;;      ;;
# Line 15335  hpux9* | hpux10* | hpux11*) Line 15888  hpux9* | hpux10* | hpux11*)
15888    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
15889    ;;    ;;
15890    
15891  interix3*)  interix[3-9]*)
15892    version_type=linux    version_type=linux
15893    need_lib_prefix=no    need_lib_prefix=no
15894    need_version=no    need_version=no
# Line 15406  linux* | k*bsd*-gnu) Line 15959  linux* | k*bsd*-gnu)
15959    
15960    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
15961    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
15962      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`      lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15963      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15964    fi    fi
15965    
# Line 15512  osf3* | osf4* | osf5*) Line 16065  osf3* | osf4* | osf5*)
16065    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16066    ;;    ;;
16067    
16068    rdos*)
16069      dynamic_linker=no
16070      ;;
16071    
16072  solaris*)  solaris*)
16073    version_type=linux    version_type=linux
16074    need_lib_prefix=no    need_lib_prefix=no
# Line 15608  esac Line 16165  esac
16165  echo "${ECHO_T}$dynamic_linker" >&6; }  echo "${ECHO_T}$dynamic_linker" >&6; }
16166  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
16167    
16168    if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16169      echo $ECHO_N "(cached) $ECHO_C" >&6
16170    else
16171      lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16172    fi
16173    
16174    sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16175    if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16176      echo $ECHO_N "(cached) $ECHO_C" >&6
16177    else
16178      lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16179    fi
16180    
16181    sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16182    
16183  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16184  if test "$GCC" = yes; then  if test "$GCC" = yes; then
16185    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
# Line 15691  if test -f "$ltmain"; then Line 16263  if test -f "$ltmain"; then
16263      predeps_F77 \      predeps_F77 \
16264      postdeps_F77 \      postdeps_F77 \
16265      compiler_lib_search_path_F77 \      compiler_lib_search_path_F77 \
16266        compiler_lib_search_dirs_F77 \
16267      archive_cmds_F77 \      archive_cmds_F77 \
16268      archive_expsym_cmds_F77 \      archive_expsym_cmds_F77 \
16269      postinstall_cmds_F77 \      postinstall_cmds_F77 \
# Line 15706  if test -f "$ltmain"; then Line 16279  if test -f "$ltmain"; then
16279      module_cmds_F77 \      module_cmds_F77 \
16280      module_expsym_cmds_F77 \      module_expsym_cmds_F77 \
16281      lt_cv_prog_compiler_c_o_F77 \      lt_cv_prog_compiler_c_o_F77 \
16282        fix_srcfile_path_F77 \
16283      exclude_expsyms_F77 \      exclude_expsyms_F77 \
16284      include_expsyms_F77; do      include_expsyms_F77; do
16285    
# Line 15938  predeps=$lt_predeps_F77 Line 16512  predeps=$lt_predeps_F77
16512  # shared library.  # shared library.
16513  postdeps=$lt_postdeps_F77  postdeps=$lt_postdeps_F77
16514    
16515    # The directories searched by this compiler when creating a shared
16516    # library
16517    compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16518    
16519  # The library search path used internally by the compiler when linking  # The library search path used internally by the compiler when linking
16520  # a shared library.  # a shared library.
16521  compiler_lib_search_path=$lt_compiler_lib_search_path_F77  compiler_lib_search_path=$lt_compiler_lib_search_path_F77
# Line 16026  sys_lib_search_path_spec=$lt_sys_lib_sea Line 16604  sys_lib_search_path_spec=$lt_sys_lib_sea
16604  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16605    
16606  # Fix the shell variable \$srcfile for the compiler.  # Fix the shell variable \$srcfile for the compiler.
16607  fix_srcfile_path="$fix_srcfile_path_F77"  fix_srcfile_path=$lt_fix_srcfile_path
16608    
16609  # Set to yes if exported symbols are required.  # Set to yes if exported symbols are required.
16610  always_export_symbols=$always_export_symbols_F77  always_export_symbols=$always_export_symbols_F77
# Line 16084  objext=o Line 16662  objext=o
16662  objext_GCJ=$objext  objext_GCJ=$objext
16663    
16664  # Code to be used in simple compile tests  # Code to be used in simple compile tests
16665  lt_simple_compile_test_code="class foo {}\n"  lt_simple_compile_test_code="class foo {}"
16666    
16667  # Code to be used in simple link tests  # Code to be used in simple link tests
16668  lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'  lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16669    
16670  # 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.
16671    
# Line 16103  compiler=$CC Line 16681  compiler=$CC
16681    
16682  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
16683  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
16684  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16685  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16686  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
16687  $rm conftest*  $rm conftest*
16688    
16689  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
16690  printf "$lt_simple_link_test_code" >conftest.$ac_ext  echo "$lt_simple_link_test_code" >conftest.$ac_ext
16691  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16692  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
16693  $rm conftest*  $rm -r conftest*
16694    
16695    
16696  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
# Line 16150  if test "${lt_cv_prog_compiler_rtti_exce Line 16728  if test "${lt_cv_prog_compiler_rtti_exce
16728  else  else
16729    lt_cv_prog_compiler_rtti_exceptions=no    lt_cv_prog_compiler_rtti_exceptions=no
16730    ac_outfile=conftest.$ac_objext    ac_outfile=conftest.$ac_objext
16731     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16732     lt_compiler_flag="-fno-rtti -fno-exceptions"     lt_compiler_flag="-fno-rtti -fno-exceptions"
16733     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
16734     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 16161  else Line 16739  else
16739     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16740     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16741     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
16742     (eval echo "\"\$as_me:16164: $lt_compile\"" >&5)     (eval echo "\"\$as_me:16742: $lt_compile\"" >&5)
16743     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
16744     ac_status=$?     ac_status=$?
16745     cat conftest.err >&5     cat conftest.err >&5
16746     echo "$as_me:16168: \$? = $ac_status" >&5     echo "$as_me:16746: \$? = $ac_status" >&5
16747     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
16748       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
16749       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
# Line 16216  echo $ECHO_N "checking for $compiler opt Line 16794  echo $ECHO_N "checking for $compiler opt
16794        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16795        ;;        ;;
16796    
16797      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16798        # PIC is the default for these OSes.        # PIC is the default for these OSes.
16799        ;;        ;;
16800    
16801      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
16802        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
16803        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
16804        lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'        # Although the cygwin gcc ignores -fPIC, still need this for old-style
16805          # (--disable-auto-import) libraries
16806    
16807        ;;        ;;
16808    
16809      darwin* | rhapsody*)      darwin* | rhapsody*)
# Line 16232  echo $ECHO_N "checking for $compiler opt Line 16812  echo $ECHO_N "checking for $compiler opt
16812        lt_prog_compiler_pic_GCJ='-fno-common'        lt_prog_compiler_pic_GCJ='-fno-common'
16813        ;;        ;;
16814    
16815      interix3*)      interix[3-9]*)
16816        # Interix 3.x gcc -fpic/-fPIC options generate broken code.        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16817        # Instead, we relocate shared libraries at runtime.        # Instead, we relocate shared libraries at runtime.
16818        ;;        ;;
# Line 16290  echo $ECHO_N "checking for $compiler opt Line 16870  echo $ECHO_N "checking for $compiler opt
16870         esac         esac
16871         ;;         ;;
16872    
16873      mingw* | pw32* | os2*)      mingw* | cygwin* | pw32* | os2*)
16874        # This hack is so that the source file can tell whether it is being        # This hack is so that the source file can tell whether it is being
16875        # built for inclusion in a dll (and should export symbols for example).        # built for inclusion in a dll (and should export symbols for example).
16876        lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'  
16877        ;;        ;;
16878    
16879      hpux9* | hpux10* | hpux11*)      hpux9* | hpux10* | hpux11*)
# Line 16342  echo $ECHO_N "checking for $compiler opt Line 16922  echo $ECHO_N "checking for $compiler opt
16922          # All Alpha code is PIC.          # All Alpha code is PIC.
16923          lt_prog_compiler_static_GCJ='-non_shared'          lt_prog_compiler_static_GCJ='-non_shared'
16924          ;;          ;;
16925          *)
16926            case `$CC -V 2>&1 | sed 5q` in
16927            *Sun\ C*)
16928              # Sun C 5.9
16929              lt_prog_compiler_pic_GCJ='-KPIC'
16930              lt_prog_compiler_static_GCJ='-Bstatic'
16931              lt_prog_compiler_wl_GCJ='-Wl,'
16932              ;;
16933            *Sun\ F*)
16934              # Sun Fortran 8.3 passes all unrecognized flags to the linker
16935              lt_prog_compiler_pic_GCJ='-KPIC'
16936              lt_prog_compiler_static_GCJ='-Bstatic'
16937              lt_prog_compiler_wl_GCJ=''
16938              ;;
16939            esac
16940            ;;
16941        esac        esac
16942        ;;        ;;
16943    
# Line 16351  echo $ECHO_N "checking for $compiler opt Line 16947  echo $ECHO_N "checking for $compiler opt
16947        lt_prog_compiler_static_GCJ='-non_shared'        lt_prog_compiler_static_GCJ='-non_shared'
16948        ;;        ;;
16949    
16950        rdos*)
16951          lt_prog_compiler_static_GCJ='-non_shared'
16952          ;;
16953    
16954      solaris*)      solaris*)
16955        lt_prog_compiler_pic_GCJ='-KPIC'        lt_prog_compiler_pic_GCJ='-KPIC'
16956        lt_prog_compiler_static_GCJ='-Bstatic'        lt_prog_compiler_static_GCJ='-Bstatic'
# Line 16413  if test -n "$lt_prog_compiler_pic_GCJ"; Line 17013  if test -n "$lt_prog_compiler_pic_GCJ";
17013    
17014  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17015  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17016  if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then  if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17017    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
17018  else  else
17019    lt_prog_compiler_pic_works_GCJ=no    lt_cv_prog_compiler_pic_works_GCJ=no
17020    ac_outfile=conftest.$ac_objext    ac_outfile=conftest.$ac_objext
17021     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17022     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"     lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17023     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
17024     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 16429  else Line 17029  else
17029     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17030     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17031     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
17032     (eval echo "\"\$as_me:16432: $lt_compile\"" >&5)     (eval echo "\"\$as_me:17032: $lt_compile\"" >&5)
17033     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
17034     ac_status=$?     ac_status=$?
17035     cat conftest.err >&5     cat conftest.err >&5
17036     echo "$as_me:16436: \$? = $ac_status" >&5     echo "$as_me:17036: \$? = $ac_status" >&5
17037     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
17038       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
17039       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
17040       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17041       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17042       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17043         lt_prog_compiler_pic_works_GCJ=yes         lt_cv_prog_compiler_pic_works_GCJ=yes
17044       fi       fi
17045     fi     fi
17046     $rm conftest*     $rm conftest*
17047    
17048  fi  fi
17049  { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17050  echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17051    
17052  if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then  if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17053      case $lt_prog_compiler_pic_GCJ in      case $lt_prog_compiler_pic_GCJ in
17054       "" | " "*) ;;       "" | " "*) ;;
17055       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;       *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
# Line 16476  esac Line 17076  esac
17076  wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"  wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17077  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5  { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17078  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }  echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17079  if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then  if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17080    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
17081  else  else
17082    lt_prog_compiler_static_works_GCJ=no    lt_cv_prog_compiler_static_works_GCJ=no
17083     save_LDFLAGS="$LDFLAGS"     save_LDFLAGS="$LDFLAGS"
17084     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17085     printf "$lt_simple_link_test_code" > conftest.$ac_ext     echo "$lt_simple_link_test_code" > conftest.$ac_ext
17086     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17087       # The linker can only warn and ignore the option if not recognized       # The linker can only warn and ignore the option if not recognized
17088       # So say no if there are warnings       # So say no if there are warnings
# Line 16492  else Line 17092  else
17092         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp         $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17093         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17094         if diff conftest.exp conftest.er2 >/dev/null; then         if diff conftest.exp conftest.er2 >/dev/null; then
17095           lt_prog_compiler_static_works_GCJ=yes           lt_cv_prog_compiler_static_works_GCJ=yes
17096         fi         fi
17097       else       else
17098         lt_prog_compiler_static_works_GCJ=yes         lt_cv_prog_compiler_static_works_GCJ=yes
17099       fi       fi
17100     fi     fi
17101     $rm conftest*     $rm -r conftest*
17102     LDFLAGS="$save_LDFLAGS"     LDFLAGS="$save_LDFLAGS"
17103    
17104  fi  fi
17105  { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5  { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17106  echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }  echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17107    
17108  if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then  if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17109      :      :
17110  else  else
17111      lt_prog_compiler_static_GCJ=      lt_prog_compiler_static_GCJ=
# Line 16522  else Line 17122  else
17122     mkdir conftest     mkdir conftest
17123     cd conftest     cd conftest
17124     mkdir out     mkdir out
17125     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17126    
17127     lt_compiler_flag="-o out/conftest2.$ac_objext"     lt_compiler_flag="-o out/conftest2.$ac_objext"
17128     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
# Line 16533  else Line 17133  else
17133     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17134     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17135     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
17136     (eval echo "\"\$as_me:16536: $lt_compile\"" >&5)     (eval echo "\"\$as_me:17136: $lt_compile\"" >&5)
17137     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
17138     ac_status=$?     ac_status=$?
17139     cat out/conftest.err >&5     cat out/conftest.err >&5
17140     echo "$as_me:16540: \$? = $ac_status" >&5     echo "$as_me:17140: \$? = $ac_status" >&5
17141     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
17142     then     then
17143       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
# Line 16617  echo $ECHO_N "checking whether the $comp Line 17217  echo $ECHO_N "checking whether the $comp
17217    # it will be wrapped by ` (' and `)$', so one must not match beginning or    # it will be wrapped by ` (' and `)$', so one must not match beginning or
17218    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17219    # as well as any symbol that contains `d'.    # as well as any symbol that contains `d'.
17220    exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"    exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17221    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17222    # platforms (ab)use it in PIC code, but their linkers get confused if    # platforms (ab)use it in PIC code, but their linkers get confused if
17223    # the symbol is explicitly referenced.  Since portable code cannot    # the symbol is explicitly referenced.  Since portable code cannot
17224    # rely on this symbol name, it's probably fine to never include it in    # rely on this symbol name, it's probably fine to never include it in
17225    # preloaded symbol tables.    # preloaded symbol tables.
17226      # Exclude shared library initialization/finalization symbols.
17227    extract_expsyms_cmds=    extract_expsyms_cmds=
17228    # Just being paranoid about ensuring that cc_basename is set.    # Just being paranoid about ensuring that cc_basename is set.
17229    for cc_temp in $compiler""; do    for cc_temp in $compiler""; do
# Line 16681  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 17282  cc_basename=`$echo "X$cc_temp" | $Xsed -
17282    
17283      # See if GNU ld supports shared libraries.      # See if GNU ld supports shared libraries.
17284      case $host_os in      case $host_os in
17285      aix3* | aix4* | aix5*)      aix[3-9]*)
17286        # On AIX/PPC, the GNU linker is very broken        # On AIX/PPC, the GNU linker is very broken
17287        if test "$host_cpu" != ia64; then        if test "$host_cpu" != ia64; then
17288          ld_shlibs_GCJ=no          ld_shlibs_GCJ=no
# Line 16729  EOF Line 17330  EOF
17330        allow_undefined_flag_GCJ=unsupported        allow_undefined_flag_GCJ=unsupported
17331        always_export_symbols_GCJ=no        always_export_symbols_GCJ=no
17332        enable_shared_with_static_runtimes_GCJ=yes        enable_shared_with_static_runtimes_GCJ=yes
17333        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/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17334    
17335        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17336          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'          archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
# Line 16747  EOF Line 17348  EOF
17348        fi        fi
17349        ;;        ;;
17350    
17351      interix3*)      interix[3-9]*)
17352        hardcode_direct_GCJ=no        hardcode_direct_GCJ=no
17353        hardcode_shlibpath_var_GCJ=no        hardcode_shlibpath_var_GCJ=no
17354        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
# Line 16762  EOF Line 17363  EOF
17363        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'        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'
17364        ;;        ;;
17365    
17366      linux* | k*bsd*-gnu)      gnu* | linux* | k*bsd*-gnu)
17367        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17368          tmp_addflag=          tmp_addflag=
17369          case $cc_basename,$host_cpu in          case $cc_basename,$host_cpu in
# Line 16780  EOF Line 17381  EOF
17381          ifc* | ifort*)                  # Intel Fortran compiler          ifc* | ifort*)                  # Intel Fortran compiler
17382            tmp_addflag=' -nofor_main' ;;            tmp_addflag=' -nofor_main' ;;
17383          esac          esac
17384          archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          case `$CC -V 2>&1 | sed 5q` in
17385            *Sun\ C*)                       # Sun C 5.9
17386              whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17387              tmp_sharedflag='-G' ;;
17388            *Sun\ F*)                       # Sun Fortran 8.3
17389              tmp_sharedflag='-G' ;;
17390            *)
17391              tmp_sharedflag='-shared' ;;
17392            esac
17393            archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17394    
17395          if test $supports_anon_versioning = yes; then          if test $supports_anon_versioning = yes; then
17396            archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~            archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17397    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17398    $echo "local: *; };" >> $output_objdir/$libname.ver~    $echo "local: *; };" >> $output_objdir/$libname.ver~
17399            $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17400          fi          fi
17401          link_all_deplibs_GCJ=no          link_all_deplibs_GCJ=no
17402        else        else
# Line 16892  _LT_EOF Line 17502  _LT_EOF
17502        fi        fi
17503        ;;        ;;
17504    
17505      aix4* | aix5*)      aix[4-9]*)
17506        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
17507          # On IA64, the linker does run time linking by default, so we don't          # On IA64, the linker does run time linking by default, so we don't
17508          # have to do anything special.          # have to do anything special.
# Line 16912  _LT_EOF Line 17522  _LT_EOF
17522          # Test if we are trying to use run time linking or normal          # Test if we are trying to use run time linking or normal
17523          # AIX style linking. If -brtl is somewhere in LDFLAGS, we          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17524          # need to do runtime linking.          # need to do runtime linking.
17525          case $host_os in aix4.[23]|aix4.[23].*|aix5*)          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17526            for ld_flag in $LDFLAGS; do            for ld_flag in $LDFLAGS; do
17527            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then            if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17528              aix_use_runtimelinking=yes              aix_use_runtimelinking=yes
# Line 16946  _LT_EOF Line 17556  _LT_EOF
17556             strings "$collect2name" | grep resolve_lib_name >/dev/null             strings "$collect2name" | grep resolve_lib_name >/dev/null
17557            then            then
17558            # We have reworked collect2            # We have reworked collect2
17559            hardcode_direct_GCJ=yes            :
17560            else            else
17561            # We have old collect2            # We have old collect2
17562            hardcode_direct_GCJ=unsupported            hardcode_direct_GCJ=unsupported
# Line 17020  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 17630  eval "echo \"\$as_me:$LINENO: $ac_try_ec
17630         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
17631         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
17632    
17633  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
17634  }'`      /Import File Strings/,/^$/ {
17635            /^0/ {
17636                s/^0  *\(.*\)$/\1/
17637                p
17638            }
17639        }'
17640    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17641  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
17642  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
17643  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17644    fi
17645  else  else
17646    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
17647  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 17079  eval "echo \"\$as_me:$LINENO: $ac_try_ec Line 17696  eval "echo \"\$as_me:$LINENO: $ac_try_ec
17696         } && test -s conftest$ac_exeext &&         } && test -s conftest$ac_exeext &&
17697         $as_test_x conftest$ac_exeext; then         $as_test_x conftest$ac_exeext; then
17698    
17699  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  lt_aix_libpath_sed='
17700  }'`      /Import File Strings/,/^$/ {
17701            /^0/ {
17702                s/^0  *\(.*\)$/\1/
17703                p
17704            }
17705        }'
17706    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17707  # Check for a 64-bit object if we didn't find anything.  # Check for a 64-bit object if we didn't find anything.
17708  if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }  if test -z "$aix_libpath"; then
17709  }'`; fi    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17710    fi
17711  else  else
17712    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
17713  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
# Line 17137  if test -z "$aix_libpath"; then aix_libp Line 17761  if test -z "$aix_libpath"; then aix_libp
17761        # The linker will automatically build a .lib file if we build a DLL.        # The linker will automatically build a .lib file if we build a DLL.
17762        old_archive_From_new_cmds_GCJ='true'        old_archive_From_new_cmds_GCJ='true'
17763        # FIXME: Should let the user specify the lib program.        # FIXME: Should let the user specify the lib program.
17764        old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'        old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17765        fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'        fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17766        enable_shared_with_static_runtimes_GCJ=yes        enable_shared_with_static_runtimes_GCJ=yes
17767        ;;        ;;
# Line 17170  if test -z "$aix_libpath"; then aix_libp Line 17794  if test -z "$aix_libpath"; then aix_libp
17794        link_all_deplibs_GCJ=yes        link_all_deplibs_GCJ=yes
17795      if test "$GCC" = yes ; then      if test "$GCC" = yes ; then
17796          output_verbose_link_cmd='echo'          output_verbose_link_cmd='echo'
17797          archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'          archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17798        module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'          module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17799        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds          archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17800        archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'          module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'  
17801      else      else
17802        case $cc_basename in        case $cc_basename in
17803          xlc*)          xlc*)
17804           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
17805           archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'           archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17806           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17807            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17808           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17809            module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'            module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17810            ;;            ;;
17811         *)         *)
# Line 17344  if test -z "$aix_libpath"; then aix_libp Line 17967  if test -z "$aix_libpath"; then aix_libp
17967        ;;        ;;
17968    
17969      openbsd*)      openbsd*)
17970        hardcode_direct_GCJ=yes        if test -f /usr/libexec/ld.so; then
17971        hardcode_shlibpath_var_GCJ=no          hardcode_direct_GCJ=yes
17972        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then          hardcode_shlibpath_var_GCJ=no
17973          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17974          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17975          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'            archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17976          export_dynamic_flag_spec_GCJ='${wl}-E'            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17977              export_dynamic_flag_spec_GCJ='${wl}-E'
17978            else
17979              case $host_os in
17980               openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17981                 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'