/[pcre]/code/trunk/configure
ViewVC logotype

Diff of /code/trunk/configure

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

revision 86 by nigel, Sat Feb 24 21:41:13 2007 UTC revision 87 by nigel, Sat Feb 24 21:41:21 2007 UTC
# Line 285  if test "X${echo_test_string+set}" != Xs Line 285  if test "X${echo_test_string+set}" != Xs
285  # find a string as large as possible, as long as the shell can cope with it  # find a string as large as possible, as long as the shell can cope with it
286    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288      if (echo_test_string="`eval $cmd`") 2>/dev/null &&      if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289         echo_test_string="`eval $cmd`" &&         echo_test_string=`eval $cmd` &&
290         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291      then      then
292        break        break
# Line 463  ac_includes_default="\ Line 463  ac_includes_default="\
463  # include <unistd.h>  # include <unistd.h>
464  #endif"  #endif"
465    
466  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_have_bits_type_traits pcre_have_type_traits MAYBE_CPP_TARGETS HAVE_CPP pcre_have_long_long pcre_have_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT NEWLINE NO_RECURSE PCRE_MAJOR PCRE_MINOR PCRE_DATE PCRE_VERSION PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pcre_have_bits_type_traits pcre_have_type_traits MAYBE_CPP_TARGETS HAVE_CPP pcre_have_long_long pcre_have_ulong_long BUILD_EXEEXT BUILD_OBJEXT CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CXXLDFLAGS EBCDIC HAVE_MEMMOVE HAVE_STRERROR LINK_SIZE MATCH_LIMIT MATCH_LIMIT_RECURSION NEWLINE NO_RECURSE PCRE_LIB_VERSION PCRE_POSIXLIB_VERSION PCRE_CPPLIB_VERSION PCRE_VERSION POSIX_MALLOC_THRESHOLD UCP UTF8 WIN_PREFIX ON_WINDOWS NOT_ON_WINDOWS POSIX_OBJ POSIX_LOBJ POSIX_LIB LIBOBJS LTLIBOBJS'
467  ac_subst_files=''  ac_subst_files=''
468    
469  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 1041  Optional Packages: Line 1041  Optional Packages:
1041                            both]                            both]
1042    --with-tags[=TAGS]    --with-tags[=TAGS]
1043                            include additional configurations [automatic]                            include additional configurations [automatic]
1044    --with-posix-malloc-threshold=5  threshold for POSIX malloc usage    --with-posix-malloc-threshold=10  threshold for POSIX malloc usage
1045    --with-link-size=2    internal link size (2, 3, or 4 allowed)    --with-link-size=2    internal link size (2, 3, or 4 allowed)
1046    --with-match-limit=10000000      default limit on internal looping)    --with-match-limit=10000000  default limit on internal looping
1047      --with-match-limit-recursion=10000000  default limit on internal recursion
1048    
1049  Some influential environment variables:  Some influential environment variables:
1050    CC          C compiler command    CC          C compiler command
# Line 1505  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 1506  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506    
1507    
1508    
 PCRE_MAJOR=6  
 PCRE_MINOR=4  
 PCRE_DATE=05-Sep-2005  
 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}  
   
   
1509  POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10  POSIX_MALLOC_THRESHOLD=-DPOSIX_MALLOC_THRESHOLD=10
1510    
1511    
# Line 1519  PCRE_POSIXLIB_VERSION=0:0:0 Line 1514  PCRE_POSIXLIB_VERSION=0:0:0
1514  PCRE_CPPLIB_VERSION=0:0:0  PCRE_CPPLIB_VERSION=0:0:0
1515    
1516    
1517    PCRE_MAJOR=`grep '#define PCRE_MAJOR' ./pcre.h | cut -c 29-`
1518    PCRE_MINOR=`grep '#define PCRE_MINOR' ./pcre.h | cut -c 29-`
1519    PCRE_PRERELEASE=`grep '#define PCRE_PRERELEASE' ./pcre.h | cut -c 29-`
1520    PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}${PCRE_PRERELEASE}
1521    
1522    
1523  # Check whether --enable-cpp or --disable-cpp was given.  # Check whether --enable-cpp or --disable-cpp was given.
1524  if test "${enable_cpp+set}" = set; then  if test "${enable_cpp+set}" = set; then
1525    enableval="$enable_cpp"    enableval="$enable_cpp"
# Line 3179  else Line 3180  else
3180      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3181        lt_cv_path_LD="$ac_dir/$ac_prog"        lt_cv_path_LD="$ac_dir/$ac_prog"
3182        # Check to see if the program is GNU ld.  I'd rather use --version,        # Check to see if the program is GNU ld.  I'd rather use --version,
3183        # but apparently some GNU ld's only accept -v.        # but apparently some variants of GNU ld only accept -v.
3184        # Break only if it was the GNU/non-GNU ld that we prefer.        # Break only if it was the GNU/non-GNU ld that we prefer.
3185        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3186        *GNU* | *'with BFD'*)        *GNU* | *'with BFD'*)
# Line 3213  echo $ECHO_N "checking if the linker ($L Line 3214  echo $ECHO_N "checking if the linker ($L
3214  if test "${lt_cv_prog_gnu_ld+set}" = set; then  if test "${lt_cv_prog_gnu_ld+set}" = set; then
3215    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
3216  else  else
3217    # I'd rather use --version here, but apparently some GNU ld's only accept -v.    # I'd rather use --version here, but apparently some GNU lds only accept -v.
3218  case `$LD -v 2>&1 </dev/null` in  case `$LD -v 2>&1 </dev/null` in
3219  *GNU* | *'with BFD'*)  *GNU* | *'with BFD'*)
3220    lt_cv_prog_gnu_ld=yes    lt_cv_prog_gnu_ld=yes
# Line 3246  reload_cmds='$LD$reload_flag -o $output$ Line 3247  reload_cmds='$LD$reload_flag -o $output$
3247  case $host_os in  case $host_os in
3248    darwin*)    darwin*)
3249      if test "$GCC" = yes; then      if test "$GCC" = yes; then
3250        reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'        reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3251      else      else
3252        reload_cmds='$LD$reload_flag -o $output$reload_objs'        reload_cmds='$LD$reload_flag -o $output$reload_objs'
3253      fi      fi
# Line 3262  else Line 3263  else
3263    # Let the user override the test.    # Let the user override the test.
3264    lt_cv_path_NM="$NM"    lt_cv_path_NM="$NM"
3265  else  else
3266    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR    lt_nm_to_check="${ac_tool_prefix}nm"
3267    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do    if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3268      IFS="$lt_save_ifs"      lt_nm_to_check="$lt_nm_to_check nm"
3269      test -z "$ac_dir" && ac_dir=.    fi
3270      tmp_nm="$ac_dir/${ac_tool_prefix}nm"    for lt_tmp_nm in $lt_nm_to_check; do
3271      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3272        # Check to see if the nm accepts a BSD-compat flag.      for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3273        # Adding the `sed 1q' prevents false positives on HP-UX, which says:        IFS="$lt_save_ifs"
3274        #   nm: unknown option "B" ignored        test -z "$ac_dir" && ac_dir=.
3275        # Tru64's nm complains that /dev/null is an invalid object file        tmp_nm="$ac_dir/$lt_tmp_nm"
3276        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in        if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3277        */dev/null* | *'Invalid file or object type'*)          # Check to see if the nm accepts a BSD-compat flag.
3278          lt_cv_path_NM="$tmp_nm -B"          # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3279          break          #   nm: unknown option "B" ignored
3280          ;;          # Tru64's nm complains that /dev/null is an invalid object file
3281        *)          case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3282          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in          */dev/null* | *'Invalid file or object type'*)
3283          */dev/null*)            lt_cv_path_NM="$tmp_nm -B"
           lt_cv_path_NM="$tmp_nm -p"  
3284            break            break
3285            ;;            ;;
3286          *)          *)
3287            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but            case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3288            continue # so that we can try to find one that supports BSD flags            */dev/null*)
3289                lt_cv_path_NM="$tmp_nm -p"
3290                break
3291                ;;
3292              *)
3293                lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3294                continue # so that we can try to find one that supports BSD flags
3295                ;;
3296              esac
3297            ;;            ;;
3298          esac          esac
3299        esac        fi
3300      fi      done
3301        IFS="$lt_save_ifs"
3302    done    done
   IFS="$lt_save_ifs"  
3303    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3304  fi  fi
3305  fi  fi
# Line 3383  gnu*) Line 3391  gnu*)
3391    
3392  hpux10.20* | hpux11*)  hpux10.20* | hpux11*)
3393    lt_cv_file_magic_cmd=/usr/bin/file    lt_cv_file_magic_cmd=/usr/bin/file
3394    case "$host_cpu" in    case $host_cpu in
3395    ia64*)    ia64*)
3396      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3397      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
# Line 3399  hpux10.20* | hpux11*) Line 3407  hpux10.20* | hpux11*)
3407    esac    esac
3408    ;;    ;;
3409    
3410    interix3*)
3411      # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3412      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3413      ;;
3414    
3415  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
3416    case $LD in    case $LD in
3417    *-32|*"-32 ") libmagic=32-bit;;    *-32|*"-32 ") libmagic=32-bit;;
# Line 3444  osf3* | osf4* | osf5*) Line 3457  osf3* | osf4* | osf5*)
3457    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
3458    ;;    ;;
3459    
 sco3.2v5*)  
   lt_cv_deplibs_check_method=pass_all  
   ;;  
   
3460  solaris*)  solaris*)
3461    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
3462    ;;    ;;
3463    
3464  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
3465    case $host_vendor in    case $host_vendor in
3466    motorola)    motorola)
3467      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
# Line 3473  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 3482  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3482    siemens)    siemens)
3483      lt_cv_deplibs_check_method=pass_all      lt_cv_deplibs_check_method=pass_all
3484      ;;      ;;
3485      pc)
3486        lt_cv_deplibs_check_method=pass_all
3487        ;;
3488    esac    esac
3489    ;;    ;;
3490    
3491  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3492    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
3493    ;;    ;;
3494  esac  esac
# Line 3494  test -z "$deplibs_check_method" && depli Line 3506  test -z "$deplibs_check_method" && depli
3506  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
3507  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
3508    
3509    # If no C compiler flags were specified, use CFLAGS.
3510    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3511    
3512  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
3513  compiler=$CC  compiler=$CC
3514    
# Line 3529  ia64-*-hpux*) Line 3544  ia64-*-hpux*)
3544    ;;    ;;
3545  *-*-irix6*)  *-*-irix6*)
3546    # Find out which ABI we are using.    # Find out which ABI we are using.
3547    echo '#line 3532 "configure"' > conftest.$ac_ext    echo '#line 3547 "configure"' > conftest.$ac_ext
3548    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3549    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
3550    ac_status=$?    ac_status=$?
# Line 3572  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 3587  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
3587    ac_status=$?    ac_status=$?
3588    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589    (exit $ac_status); }; then    (exit $ac_status); }; then
3590      case "`/usr/bin/file conftest.o`" in      case `/usr/bin/file conftest.o` in
3591      *32-bit*)      *32-bit*)
3592        case $host in        case $host in
3593          x86_64-*linux*)          x86_64-*linux*)
# Line 3610  x86_64-*linux*|ppc*-*linux*|powerpc*-*li Line 3625  x86_64-*linux*|ppc*-*linux*|powerpc*-*li
3625    rm -rf conftest*    rm -rf conftest*
3626    ;;    ;;
3627    
 *-*-linux*)  
   # Test if the compiler is 64bit  
   echo 'int i;' > conftest.$ac_ext  
   lt_cv_cc_64bit_output=no  
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
     case `/usr/bin/file conftest.$ac_objext` in  
     *"ELF 64"*)  
       lt_cv_cc_64bit_output=yes  
       ;;  
     esac  
   fi  
   rm -rf conftest*  
   ;;  
   
3628  *-*-sco3.2v5*)  *-*-sco3.2v5*)
3629    # On SCO OpenServer 5, we need -belf to get full-featured binaries.    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3630    SAVE_CFLAGS="$CFLAGS"    SAVE_CFLAGS="$CFLAGS"
# Line 3703  echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 Line 3700  echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3700      CFLAGS="$SAVE_CFLAGS"      CFLAGS="$SAVE_CFLAGS"
3701    fi    fi
3702    ;;    ;;
3703    sparc*-*solaris*)
3704      # Find out which ABI we are using.
3705      echo 'int i;' > conftest.$ac_ext
3706      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3707      (eval $ac_compile) 2>&5
3708      ac_status=$?
3709      echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710      (exit $ac_status); }; then
3711        case `/usr/bin/file conftest.o` in
3712        *64-bit*)
3713          case $lt_cv_prog_gnu_ld in
3714          yes*) LD="${LD-ld} -m elf64_sparc" ;;
3715          *)    LD="${LD-ld} -64" ;;
3716          esac
3717          ;;
3718        esac
3719      fi
3720      rm -rf conftest*
3721      ;;
3722    
3723  *-*-cygwin* | *-*-mingw* | *-*-pw32*)  *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3724    if test -n "$ac_tool_prefix"; then    if test -n "$ac_tool_prefix"; then
3725    # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.    # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
# Line 4904  fi Line 4921  fi
4921    
4922    
4923  # Provide some information about the compiler.  # Provide some information about the compiler.
4924  echo "$as_me:4907:" \  echo "$as_me:4924:" \
4925       "checking for Fortran 77 compiler version" >&5       "checking for Fortran 77 compiler version" >&5
4926  ac_compiler=`set X $ac_compile; echo $2`  ac_compiler=`set X $ac_compile; echo $2`
4927  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 5101  else Line 5118  else
5118      elif test -x /usr/sbin/sysctl; then      elif test -x /usr/sbin/sysctl; then
5119        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`        lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5120      else      else
5121        lt_cv_sys_max_cmd_len=65536 # usable default for *BSD        lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5122      fi      fi
5123      # And add a safety zone      # And add a safety zone
5124      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5125      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5126      ;;      ;;
5127    
5128      interix*)
5129        # We know the value 262144 and hardcode it with a safety zone (like BSD)
5130        lt_cv_sys_max_cmd_len=196608
5131        ;;
5132    
5133    osf*)    osf*)
5134      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5135      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
# Line 5120  else Line 5143  else
5143        esac        esac
5144      fi      fi
5145      ;;      ;;
5146      sco3.2v5*)
5147        lt_cv_sys_max_cmd_len=102400
5148        ;;
5149      sysv5* | sco5v6* | sysv4.2uw2*)
5150        kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5151        if test -n "$kargmax"; then
5152          lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5153        else
5154          lt_cv_sys_max_cmd_len=32768
5155        fi
5156        ;;
5157    *)    *)
5158      # If test is not a shell built-in, we'll probably end up computing a      # If test is not a shell built-in, we'll probably end up computing a
5159      # maximum length that is only half of the actual maximum length, but      # maximum length that is only half of the actual maximum length, but
# Line 5205  irix* | nonstopux*) Line 5239  irix* | nonstopux*)
5239  osf*)  osf*)
5240    symcode='[BCDEGQRST]'    symcode='[BCDEGQRST]'
5241    ;;    ;;
5242  solaris* | sysv5*)  solaris*)
5243    symcode='[BDRT]'    symcode='[BDRT]'
5244    ;;    ;;
5245    sco3.2v5*)
5246      symcode='[DT]'
5247      ;;
5248    sysv4.2uw2*)
5249      symcode='[DT]'
5250      ;;
5251    sysv5* | sco5v6* | unixware* | OpenUNIX*)
5252      symcode='[ABDT]'
5253      ;;
5254  sysv4)  sysv4)
5255    symcode='[DFNSTU]'    symcode='[DFNSTU]'
5256    ;;    ;;
# Line 5416  rm="rm -f" Line 5459  rm="rm -f"
5459  default_ofile=libtool  default_ofile=libtool
5460  can_build_shared=yes  can_build_shared=yes
5461    
5462  # All known linkers require a `.a' archive for static linking (except M$VC,  # All known linkers require a `.a' archive for static linking (except MSVC,
5463  # which needs '.lib').  # which needs '.lib').
5464  libext=a  libext=a
5465  ltmain="$ac_aux_dir/ltmain.sh"  ltmain="$ac_aux_dir/ltmain.sh"
# Line 5673  test -z "$AR_FLAGS" && AR_FLAGS=cru Line 5716  test -z "$AR_FLAGS" && AR_FLAGS=cru
5716  test -z "$AS" && AS=as  test -z "$AS" && AS=as
5717  test -z "$CC" && CC=cc  test -z "$CC" && CC=cc
5718  test -z "$LTCC" && LTCC=$CC  test -z "$LTCC" && LTCC=$CC
5719    test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5720  test -z "$DLLTOOL" && DLLTOOL=dlltool  test -z "$DLLTOOL" && DLLTOOL=dlltool
5721  test -z "$LD" && LD=ld  test -z "$LD" && LD=ld
5722  test -z "$LN_S" && LN_S="ln -s"  test -z "$LN_S" && LN_S="ln -s"
# Line 5692  old_postuninstall_cmds= Line 5736  old_postuninstall_cmds=
5736  if test -n "$RANLIB"; then  if test -n "$RANLIB"; then
5737    case $host_os in    case $host_os in
5738    openbsd*)    openbsd*)
5739      old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5740      ;;      ;;
5741    *)    *)
5742      old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"      old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5743      ;;      ;;
5744    esac    esac
5745    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
# Line 5737  else Line 5781  else
5781        if test -n "$file_magic_test_file"; then        if test -n "$file_magic_test_file"; then
5782          case $deplibs_check_method in          case $deplibs_check_method in
5783          "file_magic "*)          "file_magic "*)
5784            file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5785            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5786            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5787              $EGREP "$file_magic_regex" > /dev/null; then              $EGREP "$file_magic_regex" > /dev/null; then
# Line 5799  else Line 5843  else
5843        if test -n "$file_magic_test_file"; then        if test -n "$file_magic_test_file"; then
5844          case $deplibs_check_method in          case $deplibs_check_method in
5845          "file_magic "*)          "file_magic "*)
5846            file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"            file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5847            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5848            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5849              $EGREP "$file_magic_regex" > /dev/null; then              $EGREP "$file_magic_regex" > /dev/null; then
# Line 5875  test -z "$pic_mode" && pic_mode=default Line 5919  test -z "$pic_mode" && pic_mode=default
5919  #  #
5920  echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5  echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
5921  echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6  echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
5922  if test -z "$ltmain"; then  if test "x$ltmain" = "x" ; then
5923    echo "$as_me:$LINENO: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
5924  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
5925    echo    { { echo "$as_me:$LINENO: error:
5926    echo "*** Gentoo sanity check failed! ***"  
5927    echo "*** \$ltmain is not defined, please check the patch for consistency! ***"  *** [Gentoo] sanity check failed! ***
5928    echo  *** \$ltmain is not defined, please check the patch for consistency! ***
5929    exit 1  " >&5
5930    echo "$as_me: error:
5931    
5932    *** [Gentoo] sanity check failed! ***
5933    *** \$ltmain is not defined, please check the patch for consistency! ***
5934    " >&2;}
5935       { (exit 1); exit 1; }; }
5936  fi  fi
5937  gentoo_lt_version="1.5.18"  gentoo_lt_version="1.5.22"
5938  gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'`  gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
5939  if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then  if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
5940    echo "$as_me:$LINENO: result: no" >&5    echo "$as_me:$LINENO: result: no" >&5
5941  echo "${ECHO_T}no" >&6  echo "${ECHO_T}no" >&6
5942    echo    { { echo "$as_me:$LINENO: error:
5943    echo "*** Gentoo sanity check failed! ***"  
5944    echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***"  *** [Gentoo] sanity check failed! ***
5945    echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***"  *** libtool.m4 and ltmain.sh have a version mismatch! ***
5946    echo  *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5947    echo "Please run:"  
5948    echo  Please run:
5949    echo "  libtoolize --copy --force"  
5950    echo    libtoolize --copy --force
5951    echo "if appropriate, please contact the maintainer of this"  
5952    echo "package (or your distribution) for help."  if appropriate, please contact the maintainer of this
5953    echo  package (or your distribution) for help.
5954    exit 1  " >&5
5955    echo "$as_me: error:
5956    
5957    *** [Gentoo] sanity check failed! ***
5958    *** libtool.m4 and ltmain.sh have a version mismatch! ***
5959    *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
5960    
5961    Please run:
5962    
5963      libtoolize --copy --force
5964    
5965    if appropriate, please contact the maintainer of this
5966    package (or your distribution) for help.
5967    " >&2;}
5968       { (exit 1); exit 1; }; }
5969  else  else
5970    echo "$as_me:$LINENO: result: yes" >&5    echo "$as_me:$LINENO: result: yes" >&5
5971  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
# Line 5935  lt_simple_link_test_code='int main(){ret Line 5999  lt_simple_link_test_code='int main(){ret
5999  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
6000  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
6001    
6002    # If no C compiler flags were specified, use CFLAGS.
6003    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6004    
6005  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
6006  compiler=$CC  compiler=$CC
6007    
# Line 5942  compiler=$CC Line 6009  compiler=$CC
6009  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
6010  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
6011  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6012  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6013  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
6014  $rm conftest*  $rm conftest*
6015    
6016  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
6017  printf "$lt_simple_link_test_code" >conftest.$ac_ext  printf "$lt_simple_link_test_code" >conftest.$ac_ext
6018  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6019  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
6020  $rm conftest*  $rm conftest*
6021    
6022    
 #  
 # Check for any special shared library compilation flags.  
 #  
 lt_prog_cc_shlib=  
 if test "$GCC" = no; then  
   case $host_os in  
   sco3.2v5*)  
     lt_prog_cc_shlib='-belf'  
     ;;  
   esac  
 fi  
 if test -n "$lt_prog_cc_shlib"; then  
   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5  
 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}  
   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :  
   else  
     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5  
 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}  
     lt_cv_prog_cc_can_build_shared=no  
   fi  
 fi  
   
   
 #  
 # Check to make sure the static flag actually works.  
 #  
 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5  
 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6  
 if test "${lt_prog_compiler_static_works+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   lt_prog_compiler_static_works=no  
    save_LDFLAGS="$LDFLAGS"  
    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"  
    printf "$lt_simple_link_test_code" > conftest.$ac_ext  
    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then  
      # The compiler can only warn and ignore the option if not recognized  
      # So say no if there are warnings  
      if test -s conftest.err; then  
        # Append any errors to the config.log.  
        cat conftest.err 1>&5  
        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp  
        $SED '/^$/d' conftest.err >conftest.er2  
        if diff conftest.exp conftest.er2 >/dev/null; then  
          lt_prog_compiler_static_works=yes  
        fi  
      else  
        lt_prog_compiler_static_works=yes  
      fi  
    fi  
    $rm conftest*  
    LDFLAGS="$save_LDFLAGS"  
   
 fi  
 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5  
 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6  
   
 if test x"$lt_prog_compiler_static_works" = xyes; then  
     :  
 else  
     lt_prog_compiler_static=  
 fi  
   
   
   
6023    
6024  lt_prog_compiler_no_builtin_flag=  lt_prog_compiler_no_builtin_flag=
6025    
# Line 6040  else Line 6042  else
6042     # with a dollar sign (not a hyphen), so the echo should work correctly.     # with a dollar sign (not a hyphen), so the echo should work correctly.
6043     # The option is referenced via a variable to avoid confusing sed.     # The option is referenced via a variable to avoid confusing sed.
6044     lt_compile=`echo "$ac_compile" | $SED \     lt_compile=`echo "$ac_compile" | $SED \
6045     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6046     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6047     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6048     (eval echo "\"\$as_me:6046: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6048: $lt_compile\"" >&5)
6049     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
6050     ac_status=$?     ac_status=$?
6051     cat conftest.err >&5     cat conftest.err >&5
6052     echo "$as_me:6050: \$? = $ac_status" >&5     echo "$as_me:6052: \$? = $ac_status" >&5
6053     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
6054       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6055       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
6056       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6057       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6058       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6059         lt_cv_prog_compiler_rtti_exceptions=yes         lt_cv_prog_compiler_rtti_exceptions=yes
6060       fi       fi
6061     fi     fi
# Line 6114  echo $ECHO_N "checking for $compiler opt Line 6116  echo $ECHO_N "checking for $compiler opt
6116        lt_prog_compiler_pic='-fno-common'        lt_prog_compiler_pic='-fno-common'
6117        ;;        ;;
6118    
6119        interix3*)
6120          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6121          # Instead, we relocate shared libraries at runtime.
6122          ;;
6123    
6124      msdosdjgpp*)      msdosdjgpp*)
6125        # Just because we use GCC doesn't mean we suddenly get shared libraries        # Just because we use GCC doesn't mean we suddenly get shared libraries
6126        # on systems that don't support them.        # on systems that don't support them.
# Line 6130  echo $ECHO_N "checking for $compiler opt Line 6137  echo $ECHO_N "checking for $compiler opt
6137      hpux*)      hpux*)
6138        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6139        # not for PA HP-UX.        # not for PA HP-UX.
6140        case "$host_cpu" in        case $host_cpu in
6141        hppa*64*|ia64*)        hppa*64*|ia64*)
6142          # +Z the default          # +Z the default
6143          ;;          ;;
# Line 6177  echo $ECHO_N "checking for $compiler opt Line 6184  echo $ECHO_N "checking for $compiler opt
6184        lt_prog_compiler_wl='-Wl,'        lt_prog_compiler_wl='-Wl,'
6185        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6186        # not for PA HP-UX.        # not for PA HP-UX.
6187        case "$host_cpu" in        case $host_cpu in
6188        hppa*64*|ia64*)        hppa*64*|ia64*)
6189          # +Z the default          # +Z the default
6190          ;;          ;;
# Line 6207  echo $ECHO_N "checking for $compiler opt Line 6214  echo $ECHO_N "checking for $compiler opt
6214          lt_prog_compiler_pic='-KPIC'          lt_prog_compiler_pic='-KPIC'
6215          lt_prog_compiler_static='-static'          lt_prog_compiler_static='-static'
6216          ;;          ;;
6217        pgcc* | pgf77* | pgf90*)        pgcc* | pgf77* | pgf90* | pgf95*)
6218          # Portland Group compilers (*not* the Pentium gcc compiler,          # Portland Group compilers (*not* the Pentium gcc compiler,
6219          # which looks to be a dead project)          # which looks to be a dead project)
6220          lt_prog_compiler_wl='-Wl,'          lt_prog_compiler_wl='-Wl,'
6221          lt_prog_compiler_pic='-fpic'          lt_prog_compiler_pic='-fpic'
6222          lt_prog_compiler_static='-static'          lt_prog_compiler_static='-Bstatic'
6223          ;;          ;;
6224        ccc*)        ccc*)
6225          lt_prog_compiler_wl='-Wl,'          lt_prog_compiler_wl='-Wl,'
# Line 6228  echo $ECHO_N "checking for $compiler opt Line 6235  echo $ECHO_N "checking for $compiler opt
6235        lt_prog_compiler_static='-non_shared'        lt_prog_compiler_static='-non_shared'
6236        ;;        ;;
6237    
     sco3.2v5*)  
       lt_prog_compiler_pic='-Kpic'  
       lt_prog_compiler_static='-dn'  
       ;;  
   
6238      solaris*)      solaris*)
6239        lt_prog_compiler_pic='-KPIC'        lt_prog_compiler_pic='-KPIC'
6240        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
# Line 6250  echo $ECHO_N "checking for $compiler opt Line 6252  echo $ECHO_N "checking for $compiler opt
6252        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
6253        ;;        ;;
6254    
6255      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      sysv4 | sysv4.2uw2* | sysv4.3*)
6256        lt_prog_compiler_wl='-Wl,'        lt_prog_compiler_wl='-Wl,'
6257        lt_prog_compiler_pic='-KPIC'        lt_prog_compiler_pic='-KPIC'
6258        lt_prog_compiler_static='-Bstatic'        lt_prog_compiler_static='-Bstatic'
# Line 6263  echo $ECHO_N "checking for $compiler opt Line 6265  echo $ECHO_N "checking for $compiler opt
6265        fi        fi
6266        ;;        ;;
6267    
6268        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6269          lt_prog_compiler_wl='-Wl,'
6270          lt_prog_compiler_pic='-KPIC'
6271          lt_prog_compiler_static='-Bstatic'
6272          ;;
6273    
6274      unicos*)      unicos*)
6275        lt_prog_compiler_wl='-Wl,'        lt_prog_compiler_wl='-Wl,'
6276        lt_prog_compiler_can_build_shared=no        lt_prog_compiler_can_build_shared=no
# Line 6302  else Line 6310  else
6310     # with a dollar sign (not a hyphen), so the echo should work correctly.     # with a dollar sign (not a hyphen), so the echo should work correctly.
6311     # The option is referenced via a variable to avoid confusing sed.     # The option is referenced via a variable to avoid confusing sed.
6312     lt_compile=`echo "$ac_compile" | $SED \     lt_compile=`echo "$ac_compile" | $SED \
6313     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6314     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6315     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6316     (eval echo "\"\$as_me:6308: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6316: $lt_compile\"" >&5)
6317     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
6318     ac_status=$?     ac_status=$?
6319     cat conftest.err >&5     cat conftest.err >&5
6320     echo "$as_me:6312: \$? = $ac_status" >&5     echo "$as_me:6320: \$? = $ac_status" >&5
6321     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
6322       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6323       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
6324       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6325       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6326       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6327         lt_prog_compiler_pic_works=yes         lt_prog_compiler_pic_works=yes
6328       fi       fi
6329     fi     fi
# Line 6336  else Line 6344  else
6344  fi  fi
6345    
6346  fi  fi
6347  case "$host_os" in  case $host_os in
6348    # For platforms which do not support PIC, -DPIC is meaningless:    # For platforms which do not support PIC, -DPIC is meaningless:
6349    *djgpp*)    *djgpp*)
6350      lt_prog_compiler_pic=      lt_prog_compiler_pic=
# Line 6346  case "$host_os" in Line 6354  case "$host_os" in
6354      ;;      ;;
6355  esac  esac
6356    
6357    #
6358    # Check to make sure the static flag actually works.
6359    #
6360    wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6361    echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6362    echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6363    if test "${lt_prog_compiler_static_works+set}" = set; then
6364      echo $ECHO_N "(cached) $ECHO_C" >&6
6365    else
6366      lt_prog_compiler_static_works=no
6367       save_LDFLAGS="$LDFLAGS"
6368       LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6369       printf "$lt_simple_link_test_code" > conftest.$ac_ext
6370       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6371         # The linker can only warn and ignore the option if not recognized
6372         # So say no if there are warnings
6373         if test -s conftest.err; then
6374           # Append any errors to the config.log.
6375           cat conftest.err 1>&5
6376           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6377           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6378           if diff conftest.exp conftest.er2 >/dev/null; then
6379             lt_prog_compiler_static_works=yes
6380           fi
6381         else
6382           lt_prog_compiler_static_works=yes
6383         fi
6384       fi
6385       $rm conftest*
6386       LDFLAGS="$save_LDFLAGS"
6387    
6388    fi
6389    echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6390    echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6391    
6392    if test x"$lt_prog_compiler_static_works" = xyes; then
6393        :
6394    else
6395        lt_prog_compiler_static=
6396    fi
6397    
6398    
6399  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401  if test "${lt_cv_prog_compiler_c_o+set}" = set; then  if test "${lt_cv_prog_compiler_c_o+set}" = set; then
# Line 6364  else Line 6414  else
6414     # Note that $ac_compile itself does not contain backslashes and begins     # Note that $ac_compile itself does not contain backslashes and begins
6415     # with a dollar sign (not a hyphen), so the echo should work correctly.     # with a dollar sign (not a hyphen), so the echo should work correctly.
6416     lt_compile=`echo "$ac_compile" | $SED \     lt_compile=`echo "$ac_compile" | $SED \
6417     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6418     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
6420     (eval echo "\"\$as_me:6370: $lt_compile\"" >&5)     (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
6421     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
6422     ac_status=$?     ac_status=$?
6423     cat out/conftest.err >&5     cat out/conftest.err >&5
6424     echo "$as_me:6374: \$? = $ac_status" >&5     echo "$as_me:6424: \$? = $ac_status" >&5
6425     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426     then     then
6427       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
6428       # So say no if there are warnings       # So say no if there are warnings
6429       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6430       $SED '/^$/d' out/conftest.err >out/conftest.er2       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6431       if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6432         lt_cv_prog_compiler_c_o=yes         lt_cv_prog_compiler_c_o=yes
6433       fi       fi
6434     fi     fi
6435     chmod u+w .     chmod u+w . 2>&5
6436     $rm conftest*     $rm conftest*
6437     # SGI C++ compiler will create directory out/ii_files/ for     # SGI C++ compiler will create directory out/ii_files/ for
6438     # template instantiation     # template instantiation
# Line 6478  cc_basename=`$echo "X$cc_temp" | $Xsed - Line 6528  cc_basename=`$echo "X$cc_temp" | $Xsed -
6528        with_gnu_ld=no        with_gnu_ld=no
6529      fi      fi
6530      ;;      ;;
6531      interix*)
6532        # we just hope/assume this is gcc and not c89 (= MSVC++)
6533        with_gnu_ld=yes
6534        ;;
6535    openbsd*)    openbsd*)
6536      with_gnu_ld=no      with_gnu_ld=no
6537      ;;      ;;
# Line 6562  EOF Line 6616  EOF
6616        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'        export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6617    
6618        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6619          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'          archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6620          # If the export-symbols file already is a .def file (1st line          # If the export-symbols file already is a .def file (1st line
6621          # is EXPORTS), use it as is; otherwise, prepend...          # is EXPORTS), use it as is; otherwise, prepend...
6622          archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then          archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 6571  EOF Line 6625  EOF
6625            echo EXPORTS > $output_objdir/$soname.def;            echo EXPORTS > $output_objdir/$soname.def;
6626            cat $export_symbols >> $output_objdir/$soname.def;            cat $export_symbols >> $output_objdir/$soname.def;
6627          fi~          fi~
6628          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6629        else        else
6630          ld_shlibs=no          ld_shlibs=no
6631        fi        fi
6632        ;;        ;;
6633    
6634        interix3*)
6635          hardcode_direct=no
6636          hardcode_shlibpath_var=no
6637          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6638          export_dynamic_flag_spec='${wl}-E'
6639          # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6640          # Instead, shared libraries are loaded at an image base (0x10000000 by
6641          # default) and relocated if they conflict, which is a slow very memory
6642          # consuming and fragmenting process.  To avoid this, we pick a random,
6643          # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6644          # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6645          archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6646          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'
6647          ;;
6648    
6649      linux*)      linux*)
6650        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6651          tmp_addflag=          tmp_addflag=
6652          case $cc_basename,$host_cpu in          case $cc_basename,$host_cpu in
6653          pgcc*)                          # Portland Group C compiler          pgcc*)                          # Portland Group C compiler
6654            whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'            whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6655            tmp_addflag=' $pic_flag'            tmp_addflag=' $pic_flag'
6656            ;;            ;;
6657          pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers          pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6658            whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'            whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6659            tmp_addflag=' $pic_flag -Mnomain' ;;            tmp_addflag=' $pic_flag -Mnomain' ;;
6660          ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64          ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6661            tmp_addflag=' -i_dynamic' ;;            tmp_addflag=' -i_dynamic' ;;
# Line 6618  EOF Line 6687  EOF
6687        fi        fi
6688        ;;        ;;
6689    
6690      solaris* | sysv5*)      solaris*)
6691        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then        if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6692          ld_shlibs=no          ld_shlibs=no
6693          cat <<EOF 1>&2          cat <<EOF 1>&2
# Line 6639  EOF Line 6708  EOF
6708        fi        fi
6709        ;;        ;;
6710    
6711        sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6712          case `$LD -v 2>&1` in
6713            *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6714            ld_shlibs=no
6715            cat <<_LT_EOF 1>&2
6716    
6717    *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6718    *** reliably create shared libraries on SCO systems.  Therefore, libtool
6719    *** is disabling shared libraries support.  We urge you to upgrade GNU
6720    *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6721    *** your PATH or compiler configuration so that the native linker is
6722    *** used, and then restart.
6723    
6724    _LT_EOF
6725            ;;
6726            *)
6727              if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6728                hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6729                archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6730                archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6731              else
6732                ld_shlibs=no
6733              fi
6734            ;;
6735          esac
6736          ;;
6737    
6738      sunos4*)      sunos4*)
6739        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'        archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6740        wlarc=        wlarc=
# Line 6672  EOF Line 6768  EOF
6768        # Note: this linker hardcodes the directories in LIBPATH if there        # Note: this linker hardcodes the directories in LIBPATH if there
6769        # are no directories specified by -L.        # are no directories specified by -L.
6770        hardcode_minus_L=yes        hardcode_minus_L=yes
6771        if test "$GCC" = yes && test -z "$link_static_flag"; then        if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6772          # Neither direct hardcoding nor static linking is supported with a          # Neither direct hardcoding nor static linking is supported with a
6773          # broken collect2.          # broken collect2.
6774          hardcode_direct=unsupported          hardcode_direct=unsupported
# Line 6706  EOF Line 6802  EOF
6802              break              break
6803            fi            fi
6804            done            done
6805              ;;
6806          esac          esac
6807    
6808          exp_sym_flag='-bexport'          exp_sym_flag='-bexport'
# Line 6743  EOF Line 6840  EOF
6840            hardcode_libdir_flag_spec='-L$libdir'            hardcode_libdir_flag_spec='-L$libdir'
6841            hardcode_libdir_separator=            hardcode_libdir_separator=
6842            fi            fi
6843              ;;
6844          esac          esac
6845          shared_flag='-shared'          shared_flag='-shared'
6846          if test "$aix_use_runtimelinking" = yes; then          if test "$aix_use_runtimelinking" = yes; then
# Line 6755  EOF Line 6853  EOF
6853          # chokes on -Wl,-G. The following line is correct:          # chokes on -Wl,-G. The following line is correct:
6854            shared_flag='-G'            shared_flag='-G'
6855          else          else
6856          if test "$aix_use_runtimelinking" = yes; then            if test "$aix_use_runtimelinking" = yes; then
6857              shared_flag='${wl}-G'              shared_flag='${wl}-G'
6858            else            else
6859              shared_flag='${wl}-bM:SRE'              shared_flag='${wl}-bM:SRE'
6860          fi            fi
6861          fi          fi
6862        fi        fi
6863    
# Line 6824  rm -f conftest.err conftest.$ac_objext \ Line 6922  rm -f conftest.err conftest.$ac_objext \
6922  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6923    
6924         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6925          archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"          archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6926         else         else
6927          if test "$host_cpu" = ia64; then          if test "$host_cpu" = ia64; then
6928            hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'            hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6929            allow_undefined_flag="-z nodefs"            allow_undefined_flag="-z nodefs"
6930            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6931          else          else
6932           # Determine the default libpath from the value encoded in an empty executable.           # Determine the default libpath from the value encoded in an empty executable.
6933           cat >conftest.$ac_ext <<_ACEOF           cat >conftest.$ac_ext <<_ACEOF
# Line 6889  if test -z "$aix_libpath"; then aix_libp Line 6987  if test -z "$aix_libpath"; then aix_libp
6987            # -berok will link without error, but may produce a broken library.            # -berok will link without error, but may produce a broken library.
6988            no_undefined_flag=' ${wl}-bernotok'            no_undefined_flag=' ${wl}-bernotok'
6989            allow_undefined_flag=' ${wl}-berok'            allow_undefined_flag=' ${wl}-berok'
           # -bexpall does not export symbols beginning with underscore (_)  
           always_export_symbols=yes  
6990            # Exported symbols can be pulled into shared objects from archives            # Exported symbols can be pulled into shared objects from archives
6991            whole_archive_flag_spec=' '            whole_archive_flag_spec='$convenience'
6992            archive_cmds_need_lc=yes            archive_cmds_need_lc=yes
6993            # This is similar to how AIX traditionally builds it's shared libraries.            # This is similar to how AIX traditionally builds its shared libraries.
6994            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'            archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6995          fi          fi
6996        fi        fi
6997        ;;        ;;
# Line 6934  if test -z "$aix_libpath"; then aix_libp Line 7030  if test -z "$aix_libpath"; then aix_libp
7030        ;;        ;;
7031    
7032      darwin* | rhapsody*)      darwin* | rhapsody*)
7033        case "$host_os" in        case $host_os in
7034          rhapsody* | darwin1.[012])          rhapsody* | darwin1.[012])
7035           allow_undefined_flag='${wl}-undefined ${wl}suppress'           allow_undefined_flag='${wl}-undefined ${wl}suppress'
7036           ;;           ;;
# Line 6963  if test -z "$aix_libpath"; then aix_libp Line 7059  if test -z "$aix_libpath"; then aix_libp
7059          output_verbose_link_cmd='echo'          output_verbose_link_cmd='echo'
7060          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'
7061        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'
7062        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7063        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}'        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}'
7064        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}'
7065      else      else
# Line 6972  if test -z "$aix_libpath"; then aix_libp Line 7068  if test -z "$aix_libpath"; then aix_libp
7068           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
7069           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` $verstring'
7070           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'
7071            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7072           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7073            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}'
7074            ;;            ;;
# Line 7036  if test -z "$aix_libpath"; then aix_libp Line 7132  if test -z "$aix_libpath"; then aix_libp
7132        export_dynamic_flag_spec='${wl}-E'        export_dynamic_flag_spec='${wl}-E'
7133        ;;        ;;
7134    
7135      hpux10* | hpux11*)      hpux10*)
7136        if test "$GCC" = yes -a "$with_gnu_ld" = no; then        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7137          case "$host_cpu" in          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7138          hppa*64*|ia64*)        else
7139            archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7140          fi
7141          if test "$with_gnu_ld" = no; then
7142            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7143            hardcode_libdir_separator=:
7144    
7145            hardcode_direct=yes
7146            export_dynamic_flag_spec='${wl}-E'
7147    
7148            # hardcode_minus_L: Not really in the search PATH,
7149            # but as the default location of the library.
7150            hardcode_minus_L=yes
7151          fi
7152          ;;
7153    
7154        hpux11*)
7155          if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7156            case $host_cpu in
7157            hppa*64*)
7158            archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'            archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7159            ;;            ;;
7160            ia64*)
7161              archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7162              ;;
7163          *)          *)
7164            archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'            archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7165            ;;            ;;
7166          esac          esac
7167        else        else
7168          case "$host_cpu" in          case $host_cpu in
7169          hppa*64*|ia64*)          hppa*64*)
7170            archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'            archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7171              ;;
7172            ia64*)
7173              archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7174            ;;            ;;
7175          *)          *)
7176            archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'            archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7177            ;;            ;;
7178          esac          esac
7179        fi        fi
7180        if test "$with_gnu_ld" = no; then        if test "$with_gnu_ld" = no; then
7181          case "$host_cpu" in          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7182          hppa*64*)          hardcode_libdir_separator=:
7183            hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'  
7184            case $host_cpu in
7185            hppa*64*|ia64*)
7186            hardcode_libdir_flag_spec_ld='+b $libdir'            hardcode_libdir_flag_spec_ld='+b $libdir'
           hardcode_libdir_separator=:  
7187            hardcode_direct=no            hardcode_direct=no
7188            hardcode_shlibpath_var=no            hardcode_shlibpath_var=no
7189            ;;            ;;
         ia64*)  
           hardcode_libdir_flag_spec='-L$libdir'  
           hardcode_direct=no  
           hardcode_shlibpath_var=no  
   
           # hardcode_minus_L: Not really in the search PATH,  
           # but as the default location of the library.  
           hardcode_minus_L=yes  
           ;;  
7190          *)          *)
           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'  
           hardcode_libdir_separator=:  
7191            hardcode_direct=yes            hardcode_direct=yes
7192            export_dynamic_flag_spec='${wl}-E'            export_dynamic_flag_spec='${wl}-E'
7193    
# Line 7178  if test -z "$aix_libpath"; then aix_libp Line 7289  if test -z "$aix_libpath"; then aix_libp
7289        hardcode_libdir_separator=:        hardcode_libdir_separator=:
7290        ;;        ;;
7291    
     sco3.2v5*)  
       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
       hardcode_shlibpath_var=no  
       export_dynamic_flag_spec='${wl}-Bexport'  
       runpath_var=LD_RUN_PATH  
       hardcode_runpath_var=yes  
       ;;  
   
7292      solaris*)      solaris*)
7293        no_undefined_flag=' -z text'        no_undefined_flag=' -z text'
7294        if test "$GCC" = yes; then        if test "$GCC" = yes; then
# Line 7271  if test -z "$aix_libpath"; then aix_libp Line 7374  if test -z "$aix_libpath"; then aix_libp
7374        fi        fi
7375        ;;        ;;
7376    
7377      sysv4.2uw2*)      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7378        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'        no_undefined_flag='${wl}-z,text'
7379        hardcode_direct=yes        archive_cmds_need_lc=no
       hardcode_minus_L=no  
7380        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
7381        hardcode_runpath_var=yes        runpath_var='LD_RUN_PATH'
       runpath_var=LD_RUN_PATH  
       ;;  
7382    
    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)  
       no_undefined_flag='${wl}-z ${wl}text'  
7383        if test "$GCC" = yes; then        if test "$GCC" = yes; then
7384          archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7385            archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7386        else        else
7387          archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7388            archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7389        fi        fi
       runpath_var='LD_RUN_PATH'  
       hardcode_shlibpath_var=no  
7390        ;;        ;;
7391    
7392      sysv5*)      sysv5* | sco3.2v5* | sco5v6*)
7393        no_undefined_flag=' -z text'        # Note: We can NOT use -z defs as we might desire, because we do not
7394        # $CC -shared without GNU ld will not create a library from C++        # link with -lc, and that would cause any symbols used from libc to
7395        # object files and a static libstdc++, better avoid it by now        # always be unresolved, which means just about no library would
7396        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'        # ever link correctly.  If we're not using GNU ld we use -z text
7397        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~        # though, which does catch some bad symbols but isn't as heavy-handed
7398                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'        # as -z defs.
7399        hardcode_libdir_flag_spec=        no_undefined_flag='${wl}-z,text'
7400          allow_undefined_flag='${wl}-z,nodefs'
7401          archive_cmds_need_lc=no
7402        hardcode_shlibpath_var=no        hardcode_shlibpath_var=no
7403          hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7404          hardcode_libdir_separator=':'
7405          link_all_deplibs=yes
7406          export_dynamic_flag_spec='${wl}-Bexport'
7407        runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
7408    
7409          if test "$GCC" = yes; then
7410            archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7411            archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7412          else
7413            archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7414            archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7415          fi
7416        ;;        ;;
7417    
7418      uts4*)      uts4*)
# Line 7319  echo "$as_me:$LINENO: result: $ld_shlibs Line 7431  echo "$as_me:$LINENO: result: $ld_shlibs
7431  echo "${ECHO_T}$ld_shlibs" >&6  echo "${ECHO_T}$ld_shlibs" >&6
7432  test "$ld_shlibs" = no && can_build_shared=no  test "$ld_shlibs" = no && can_build_shared=no
7433    
 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  
 if test "$GCC" = yes; then  
   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"  
 fi  
   
7434  #  #
7435  # Do we need to explicitly link libc?  # Do we need to explicitly link libc?
7436  #  #
# Line 7356  echo $ECHO_N "checking whether -lc shoul Line 7463  echo $ECHO_N "checking whether -lc shoul
7463          libobjs=conftest.$ac_objext          libobjs=conftest.$ac_objext
7464          deplibs=          deplibs=
7465          wl=$lt_prog_compiler_wl          wl=$lt_prog_compiler_wl
7466            pic_flag=$lt_prog_compiler_pic
7467          compiler_flags=-v          compiler_flags=-v
7468          linker_flags=-v          linker_flags=-v
7469          verstring=          verstring=
# Line 7516  cygwin* | mingw* | pw32*) Line 7624  cygwin* | mingw* | pw32*)
7624        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7625        dldir=$destdir/`dirname \$dlpath`~        dldir=$destdir/`dirname \$dlpath`~
7626        test -d \$dldir || mkdir -p \$dldir~        test -d \$dldir || mkdir -p \$dldir~
7627        $install_prog $dir/$dlname \$dldir/$dlname'        $install_prog $dir/$dlname \$dldir/$dlname~
7628          chmod a+x \$dldir/$dlname'
7629      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7630        dlpath=$dir/\$dldll~        dlpath=$dir/\$dldll~
7631         $rm \$dlpath'         $rm \$dlpath'
# Line 7593  darwin* | rhapsody*) Line 7702  darwin* | rhapsody*)
7702    soname_spec='${libname}${release}${major}$shared_ext'    soname_spec='${libname}${release}${major}$shared_ext'
7703    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
7704    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
7705    shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7706    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7707    if test "$GCC" = yes; then    if test "$GCC" = yes; then
7708      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"`      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"`
# Line 7631  kfreebsd*-gnu) Line 7740  kfreebsd*-gnu)
7740  freebsd* | dragonfly*)  freebsd* | dragonfly*)
7741    # DragonFly does not have aout.  When/if they implement a new    # DragonFly does not have aout.  When/if they implement a new
7742    # versioning mechanism, adjust this.    # versioning mechanism, adjust this.
7743    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    if test -x /usr/bin/objformat; then
7744    version_type=freebsd-$objformat      objformat=`/usr/bin/objformat`
7745      else
7746        case $host_os in
7747        freebsd[123]*) objformat=aout ;;
7748        *) objformat=elf ;;
7749        esac
7750      fi
7751      # Handle Gentoo/FreeBSD as it was Linux
7752      case $host_vendor in
7753        gentoo)
7754          version_type=linux ;;
7755        *)
7756          version_type=freebsd-$objformat ;;
7757      esac
7758    
7759    case $version_type in    case $version_type in
7760      freebsd-elf*)      freebsd-elf*)
7761        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
# Line 7643  freebsd* | dragonfly*) Line 7766  freebsd* | dragonfly*)
7766        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7767        need_version=yes        need_version=yes
7768        ;;        ;;
7769        linux)
7770          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7771          soname_spec='${libname}${release}${shared_ext}$major'
7772          need_lib_prefix=no
7773          need_version=no
7774          ;;
7775    esac    esac
7776    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
7777    case $host_os in    case $host_os in
# Line 7653  freebsd* | dragonfly*) Line 7782  freebsd* | dragonfly*)
7782      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
7783      hardcode_into_libs=yes      hardcode_into_libs=yes
7784      ;;      ;;
7785    *) # from 3.2 on    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7786      freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7787      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
7788      hardcode_into_libs=yes      hardcode_into_libs=yes
7789      ;;      ;;
7790      freebsd*) # from 4.6 on
7791        shlibpath_overrides_runpath=yes
7792        hardcode_into_libs=yes
7793        ;;
7794    esac    esac
7795    ;;    ;;
7796    
# Line 7676  hpux9* | hpux10* | hpux11*) Line 7810  hpux9* | hpux10* | hpux11*)
7810    version_type=sunos    version_type=sunos
7811    need_lib_prefix=no    need_lib_prefix=no
7812    need_version=no    need_version=no
7813    case "$host_cpu" in    case $host_cpu in
7814    ia64*)    ia64*)
7815      shrext_cmds='.so'      shrext_cmds='.so'
7816      hardcode_into_libs=yes      hardcode_into_libs=yes
# Line 7716  hpux9* | hpux10* | hpux11*) Line 7850  hpux9* | hpux10* | hpux11*)
7850    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
7851    ;;    ;;
7852    
7853    interix3*)
7854      version_type=linux
7855      need_lib_prefix=no
7856      need_version=no
7857      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7858      soname_spec='${libname}${release}${shared_ext}$major'
7859      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7860      shlibpath_var=LD_LIBRARY_PATH
7861      shlibpath_overrides_runpath=no
7862      hardcode_into_libs=yes
7863      ;;
7864    
7865  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
7866    case $host_os in    case $host_os in
7867      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
# Line 7779  linux*) Line 7925  linux*)
7925      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7926    fi    fi
7927    
   case $host_cpu:$lt_cv_cc_64bit_output in  
   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)  
     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"  
     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"  
     ;;  
   esac  
   
7928    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
7929    # powerpc, because MkLinux only supported shared libraries with the    # powerpc, because MkLinux only supported shared libraries with the
7930    # GNU dynamic linker.  Since this was broken with cross compilers,    # GNU dynamic linker.  Since this was broken with cross compilers,
# Line 7793  linux*) Line 7932  linux*)
7932    # people can always --disable-shared, the test was removed, and we    # people can always --disable-shared, the test was removed, and we
7933    # assume the GNU/Linux dynamic linker is in use.    # assume the GNU/Linux dynamic linker is in use.
7934    dynamic_linker='GNU/Linux ld.so'    dynamic_linker='GNU/Linux ld.so'
   
   # Find out which ABI we are using (multilib Linux x86_64 hack).  
   libsuff=  
   case "$host_cpu" in  
   x86_64*)  
     echo '#line 7801 "configure"' > conftest.$ac_ext  
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
       case `/usr/bin/file conftest.$ac_objext` in  
       *64-bit*)  
         libsuff=64  
         ;;  
       esac  
     fi  
     rm -rf conftest*  
     ;;  
   *)  
     ;;  
   esac  
   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"  
   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  
7935    ;;    ;;
7936    
7937  knetbsd*-gnu)  knetbsd*-gnu)
# Line 7868  nto-qnx*) Line 7983  nto-qnx*)
7983    
7984  openbsd*)  openbsd*)
7985    version_type=sunos    version_type=sunos
7986      sys_lib_dlsearch_path_spec="/usr/lib"
7987    need_lib_prefix=no    need_lib_prefix=no
7988    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7989    case $host_os in    case $host_os in
# Line 7911  osf3* | osf4* | osf5*) Line 8027  osf3* | osf4* | osf5*)
8027    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8028    ;;    ;;
8029    
 sco3.2v5*)  
   version_type=osf  
   soname_spec='${libname}${release}${shared_ext}$major'  
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
8030  solaris*)  solaris*)
8031    version_type=linux    version_type=linux
8032    need_lib_prefix=no    need_lib_prefix=no
# Line 7943  sunos4*) Line 8052  sunos4*)
8052    need_version=yes    need_version=yes
8053    ;;    ;;
8054    
8055  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
8056    version_type=linux    version_type=linux
8057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8058    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
# Line 7976  sysv4*MP*) Line 8085  sysv4*MP*)
8085    fi    fi
8086    ;;    ;;
8087    
8088    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8089      version_type=freebsd-elf
8090      need_lib_prefix=no
8091      need_version=no
8092      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8093      soname_spec='${libname}${release}${shared_ext}$major'
8094      shlibpath_var=LD_LIBRARY_PATH
8095      hardcode_into_libs=yes
8096      if test "$with_gnu_ld" = yes; then
8097        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8098        shlibpath_overrides_runpath=no
8099      else
8100        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8101        shlibpath_overrides_runpath=yes
8102        case $host_os in
8103          sco3.2v5*)
8104            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8105            ;;
8106        esac
8107      fi
8108      sys_lib_dlsearch_path_spec='/usr/lib'
8109      ;;
8110    
8111  uts4*)  uts4*)
8112    version_type=linux    version_type=linux
8113    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 7991  echo "$as_me:$LINENO: result: $dynamic_l Line 8123  echo "$as_me:$LINENO: result: $dynamic_l
8123  echo "${ECHO_T}$dynamic_linker" >&6  echo "${ECHO_T}$dynamic_linker" >&6
8124  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
8125    
8126    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8127    if test "$GCC" = yes; then
8128      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8129    fi
8130    
8131  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8132  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8133  hardcode_action=  hardcode_action=
# Line 8646  fi Line 8783  fi
8783      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8784    
8785      save_LDFLAGS="$LDFLAGS"      save_LDFLAGS="$LDFLAGS"
8786      eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8787    
8788      save_LIBS="$LIBS"      save_LIBS="$LIBS"
8789      LIBS="$lt_cv_dlopen_libs $LIBS"      LIBS="$lt_cv_dlopen_libs $LIBS"
# Line 8662  else Line 8799  else
8799    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8800    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
8801    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8802  #line 8665 "configure"  #line 8802 "configure"
8803  #include "confdefs.h"  #include "confdefs.h"
8804    
8805  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 8719  int main () Line 8856  int main ()
8856        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8857        /* dlclose (self); */        /* dlclose (self); */
8858      }      }
8859      else
8860        puts (dlerror ());
8861    
8862      exit (status);      exit (status);
8863  }  }
# Line 8728  EOF Line 8867  EOF
8867    ac_status=$?    ac_status=$?
8868    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8870      (./conftest; exit; ) 2>/dev/null      (./conftest; exit; ) >&5 2>/dev/null
8871      lt_status=$?      lt_status=$?
8872      case x$lt_status in      case x$lt_status in
8873        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;        x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8874        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;        x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8875        x$lt_unknown|x*) lt_cv_dlopen_self=no ;;        x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8876      esac      esac
8877    else :    else :
8878      # compilation failed      # compilation failed
# Line 8748  echo "$as_me:$LINENO: result: $lt_cv_dlo Line 8887  echo "$as_me:$LINENO: result: $lt_cv_dlo
8887  echo "${ECHO_T}$lt_cv_dlopen_self" >&6  echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8888    
8889      if test "x$lt_cv_dlopen_self" = xyes; then      if test "x$lt_cv_dlopen_self" = xyes; then
8890        LDFLAGS="$LDFLAGS $link_static_flag"        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8891        echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5        echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8892  echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6  echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8893  if test "${lt_cv_dlopen_self_static+set}" = set; then  if test "${lt_cv_dlopen_self_static+set}" = set; then
# Line 8760  else Line 8899  else
8899    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8900    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
8901    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8902  #line 8763 "configure"  #line 8902 "configure"
8903  #include "confdefs.h"  #include "confdefs.h"
8904    
8905  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 8817  int main () Line 8956  int main ()
8956        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8957        /* dlclose (self); */        /* dlclose (self); */
8958      }      }
8959      else
8960        puts (dlerror ());
8961    
8962      exit (status);      exit (status);
8963  }  }
# Line 8826  EOF Line 8967  EOF
8967    ac_status=$?    ac_status=$?
8968    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then    (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8970      (./conftest; exit; ) 2>/dev/null      (./conftest; exit; ) >&5 2>/dev/null
8971      lt_status=$?      lt_status=$?
8972      case x$lt_status in      case x$lt_status in
8973        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;        x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8974        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;        x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8975        x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;        x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8976      esac      esac
8977    else :    else :
8978      # compilation failed      # compilation failed
# Line 8864  echo "${ECHO_T}$lt_cv_dlopen_self_static Line 9005  echo "${ECHO_T}$lt_cv_dlopen_self_static
9005  fi  fi
9006    
9007    
9008  # Report which librarie types wil actually be built  # Report which library types will actually be built
9009  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9010  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9011  echo "$as_me:$LINENO: result: $can_build_shared" >&5  echo "$as_me:$LINENO: result: $can_build_shared" >&5
# Line 8876  test "$can_build_shared" = "no" && enabl Line 9017  test "$can_build_shared" = "no" && enabl
9017    
9018  # On AIX, shared libraries and static libraries use the same namespace, and  # On AIX, shared libraries and static libraries use the same namespace, and
9019  # are all built from PIC.  # are all built from PIC.
9020  case "$host_os" in  case $host_os in
9021  aix3*)  aix3*)
9022    test "$enable_shared" = yes && enable_static=no    test "$enable_shared" = yes && enable_static=no
9023    if test -n "$RANLIB"; then    if test -n "$RANLIB"; then
# Line 8914  if test -f "$ltmain"; then Line 9055  if test -f "$ltmain"; then
9055    # Now quote all the things that may contain metacharacters while being    # Now quote all the things that may contain metacharacters while being
9056    # careful not to overquote the AC_SUBSTed values.  We take copies of the    # careful not to overquote the AC_SUBSTed values.  We take copies of the
9057    # variables and quote the copies for generation of the libtool script.    # variables and quote the copies for generation of the libtool script.
9058    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9059      SED SHELL STRIP \      SED SHELL STRIP \
9060      libname_spec library_names_spec soname_spec extract_expsyms_cmds \      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9061      old_striplib striplib file_magic_cmd finish_cmds finish_eval \      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
# Line 9080  AR_FLAGS=$lt_AR_FLAGS Line 9221  AR_FLAGS=$lt_AR_FLAGS
9221  # A C compiler.  # A C compiler.
9222  LTCC=$lt_LTCC  LTCC=$lt_LTCC
9223    
9224    # LTCC compiler flags.
9225    LTCFLAGS=$lt_LTCFLAGS
9226    
9227  # A language-specific compiler.  # A language-specific compiler.
9228  CC=$lt_compiler  CC=$lt_compiler
9229    
# Line 9410  echo "$as_me: WARNING: output file \`$of Line 9554  echo "$as_me: WARNING: output file \`$of
9554  echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}  echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9555      fi      fi
9556    fi    fi
9557      if test -z "$LTCFLAGS"; then
9558        eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9559      fi
9560    
9561    # Extract list of available tagged configurations in $ofile.    # Extract list of available tagged configurations in $ofile.
9562    # Note that this assumes the entire list is on one line.    # Note that this assumes the entire list is on one line.
# Line 9462  hardcode_libdir_flag_spec_CXX= Line 9609  hardcode_libdir_flag_spec_CXX=
9609  hardcode_libdir_flag_spec_ld_CXX=  hardcode_libdir_flag_spec_ld_CXX=
9610  hardcode_libdir_separator_CXX=  hardcode_libdir_separator_CXX=
9611  hardcode_minus_L_CXX=no  hardcode_minus_L_CXX=no
9612    hardcode_shlibpath_var_CXX=unsupported
9613  hardcode_automatic_CXX=no  hardcode_automatic_CXX=no
9614  module_cmds_CXX=  module_cmds_CXX=
9615  module_expsym_cmds_CXX=  module_expsym_cmds_CXX=
# Line 9479  postdeps_CXX= Line 9627  postdeps_CXX=
9627  compiler_lib_search_path_CXX=  compiler_lib_search_path_CXX=
9628    
9629  # Source file extension for C++ test sources.  # Source file extension for C++ test sources.
9630  ac_ext=cc  ac_ext=cpp
9631    
9632  # Object file extension for compiled C++ test sources.  # Object file extension for compiled C++ test sources.
9633  objext=o  objext=o
# Line 9489  objext_CXX=$objext Line 9637  objext_CXX=$objext
9637  lt_simple_compile_test_code="int some_variable = 0;\n"  lt_simple_compile_test_code="int some_variable = 0;\n"
9638    
9639  # Code to be used in simple link tests  # Code to be used in simple link tests
9640  lt_simple_link_test_code='int main(int, char *) { return(0); }\n'  lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9641    
9642  # 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.
9643    
9644  # If no C compiler was specified, use CC.  # If no C compiler was specified, use CC.
9645  LTCC=${LTCC-"$CC"}  LTCC=${LTCC-"$CC"}
9646    
9647    # If no C compiler flags were specified, use CFLAGS.
9648    LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9649    
9650  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
9651  compiler=$CC  compiler=$CC
9652    
# Line 9503  compiler=$CC Line 9654  compiler=$CC
9654  # save warnings/boilerplate of simple test code  # save warnings/boilerplate of simple test code
9655  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
9656  printf "$lt_simple_compile_test_code" >conftest.$ac_ext  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9657  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9658  _lt_compiler_boilerplate=`cat conftest.err`  _lt_compiler_boilerplate=`cat conftest.err`
9659  $rm conftest*  $rm conftest*
9660    
9661  ac_outfile=conftest.$ac_objext  ac_outfile=conftest.$ac_objext
9662  printf "$lt_simple_link_test_code" >conftest.$ac_ext  printf "$lt_simple_link_test_code" >conftest.$ac_ext
9663  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err  eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9664  _lt_linker_boilerplate=`cat conftest.err`  _lt_linker_boilerplate=`cat conftest.err`
9665  $rm conftest*  $rm conftest*
9666    
# Line 9524  lt_save_path_LD=$lt_cv_path_LD Line 9675  lt_save_path_LD=$lt_cv_path_LD
9675  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9676    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9677  else  else
9678    unset lt_cv_prog_gnu_ld    $as_unset lt_cv_prog_gnu_ld
9679  fi  fi
9680  if test -n "${lt_cv_path_LDCXX+set}"; then  if test -n "${lt_cv_path_LDCXX+set}"; then
9681    lt_cv_path_LD=$lt_cv_path_LDCXX    lt_cv_path_LD=$lt_cv_path_LDCXX
9682  else  else
9683    unset lt_cv_path_LD    $as_unset lt_cv_path_LD
9684  fi  fi
9685  test -z "${LDCXX+set}" || LD=$LDCXX  test -z "${LDCXX+set}" || LD=$LDCXX
9686  CC=${CXX-"c++"}  CC=${CXX-"c++"}
# Line 9615  else Line 9766  else
9766      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9767        lt_cv_path_LD="$ac_dir/$ac_prog"        lt_cv_path_LD="$ac_dir/$ac_prog"
9768        # Check to see if the program is GNU ld.  I'd rather use --version,        # Check to see if the program is GNU ld.  I'd rather use --version,
9769        # but apparently some GNU ld's only accept -v.        # but apparently some variants of GNU ld only accept -v.
9770        # Break only if it was the GNU/non-GNU ld that we prefer.        # Break only if it was the GNU/non-GNU ld that we prefer.
9771        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9772        *GNU* | *'with BFD'*)        *GNU* | *'with BFD'*)
# Line 9649  echo $ECHO_N "checking if the linker ($L Line 9800  echo $ECHO_N "checking if the linker ($L
9800  if test "${lt_cv_prog_gnu_ld+set}" = set; then  if test "${lt_cv_prog_gnu_ld+set}" = set; then
9801    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
9802  else  else
9803    # I'd rather use --version here, but apparently some GNU ld's only accept -v.    # I'd rather use --version here, but apparently some GNU lds only accept -v.
9804  case `$LD -v 2>&1 </dev/null` in  case `$LD -v 2>&1 </dev/null` in
9805  *GNU* | *'with BFD'*)  *GNU* | *'with BFD'*)
9806    lt_cv_prog_gnu_ld=yes    lt_cv_prog_gnu_ld=yes
# Line 9740  case $host_os in Line 9891  case $host_os in
9891              ;;              ;;
9892            esac            esac
9893          done          done
9894            ;;
9895        esac        esac
9896    
9897        exp_sym_flag='-bexport'        exp_sym_flag='-bexport'
# Line 9777  case $host_os in Line 9929  case $host_os in
9929            hardcode_libdir_flag_spec_CXX='-L$libdir'            hardcode_libdir_flag_spec_CXX='-L$libdir'
9930            hardcode_libdir_separator_CXX=            hardcode_libdir_separator_CXX=
9931          fi          fi
9932            ;;
9933        esac        esac
9934        shared_flag='-shared'        shared_flag='-shared'
9935        if test "$aix_use_runtimelinking" = yes; then        if test "$aix_use_runtimelinking" = yes; then
# Line 9859  if test -z "$aix_libpath"; then aix_libp Line 10012  if test -z "$aix_libpath"; then aix_libp
10012    
10013        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10014    
10015        archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"        archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10016       else       else
10017        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
10018          hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'          hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10019          allow_undefined_flag_CXX="-z nodefs"          allow_undefined_flag_CXX="-z nodefs"
10020          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10021        else        else
10022          # Determine the default libpath from the value encoded in an empty executable.          # Determine the default libpath from the value encoded in an empty executable.
10023          cat >conftest.$ac_ext <<_ACEOF          cat >conftest.$ac_ext <<_ACEOF
# Line 9924  if test -z "$aix_libpath"; then aix_libp Line 10077  if test -z "$aix_libpath"; then aix_libp
10077          # -berok will link without error, but may produce a broken library.          # -berok will link without error, but may produce a broken library.
10078          no_undefined_flag_CXX=' ${wl}-bernotok'          no_undefined_flag_CXX=' ${wl}-bernotok'
10079          allow_undefined_flag_CXX=' ${wl}-berok'          allow_undefined_flag_CXX=' ${wl}-berok'
         # -bexpall does not export symbols beginning with underscore (_)  
         always_export_symbols_CXX=yes  
10080          # Exported symbols can be pulled into shared objects from archives          # Exported symbols can be pulled into shared objects from archives
10081          whole_archive_flag_spec_CXX=' '          whole_archive_flag_spec_CXX='$convenience'
10082          archive_cmds_need_lc_CXX=yes          archive_cmds_need_lc_CXX=yes
10083          # This is similar to how AIX traditionally builds it's shared libraries.          # This is similar to how AIX traditionally builds its shared libraries.
10084          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'          archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10085        fi        fi
10086      fi      fi
10087      ;;      ;;
10088    
10089      beos*)
10090        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10091          allow_undefined_flag_CXX=unsupported
10092          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10093          # support --undefined.  This deserves some investigation.  FIXME
10094          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10095        else
10096          ld_shlibs_CXX=no
10097        fi
10098        ;;
10099    
10100    chorus*)    chorus*)
10101      case $cc_basename in      case $cc_basename in
10102        *)        *)
# Line 9943  if test -z "$aix_libpath"; then aix_libp Line 10106  if test -z "$aix_libpath"; then aix_libp
10106      esac      esac
10107      ;;      ;;
10108    
   
10109    cygwin* | mingw* | pw32*)    cygwin* | mingw* | pw32*)
10110      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10111      # as there is no search path for DLLs.      # as there is no search path for DLLs.
# Line 9953  if test -z "$aix_libpath"; then aix_libp Line 10115  if test -z "$aix_libpath"; then aix_libp
10115      enable_shared_with_static_runtimes_CXX=yes      enable_shared_with_static_runtimes_CXX=yes
10116    
10117      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10118        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10119        # If the export-symbols file already is a .def file (1st line        # If the export-symbols file already is a .def file (1st line
10120        # is EXPORTS), use it as is; otherwise, prepend...        # is EXPORTS), use it as is; otherwise, prepend...
10121        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then        archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
# Line 9962  if test -z "$aix_libpath"; then aix_libp Line 10124  if test -z "$aix_libpath"; then aix_libp
10124          echo EXPORTS > $output_objdir/$soname.def;          echo EXPORTS > $output_objdir/$soname.def;
10125          cat $export_symbols >> $output_objdir/$soname.def;          cat $export_symbols >> $output_objdir/$soname.def;
10126        fi~        fi~
10127        $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'        $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10128      else      else
10129        ld_shlibs_CXX=no        ld_shlibs_CXX=no
10130      fi      fi
10131    ;;    ;;
10132        darwin* | rhapsody*)        darwin* | rhapsody*)
10133          case "$host_os" in          case $host_os in
10134          rhapsody* | darwin1.[012])          rhapsody* | darwin1.[012])
10135           allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'           allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10136           ;;           ;;
# Line 10006  if test -z "$aix_libpath"; then aix_libp Line 10168  if test -z "$aix_libpath"; then aix_libp
10168            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'            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'
10169          fi          fi
10170          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'
10171          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10172            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10173              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}'              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}'
10174            else            else
# Line 10019  if test -z "$aix_libpath"; then aix_libp Line 10181  if test -z "$aix_libpath"; then aix_libp
10181           output_verbose_link_cmd='echo'           output_verbose_link_cmd='echo'
10182            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` $verstring'
10183            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'
10184            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's            # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10185            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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10186            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}'
10187            ;;            ;;
# Line 10099  if test -z "$aix_libpath"; then aix_libp Line 10261  if test -z "$aix_libpath"; then aix_libp
10261      ;;      ;;
10262    hpux10*|hpux11*)    hpux10*|hpux11*)
10263      if test $with_gnu_ld = no; then      if test $with_gnu_ld = no; then
10264        case "$host_cpu" in        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10265        hppa*64*)        hardcode_libdir_separator_CXX=:
10266          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'  
10267          case $host_cpu in
10268          hppa*64*|ia64*)
10269          hardcode_libdir_flag_spec_ld_CXX='+b $libdir'          hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
         hardcode_libdir_separator_CXX=:  
         ;;  
       ia64*)  
         hardcode_libdir_flag_spec_CXX='-L$libdir'  
10270          ;;          ;;
10271        *)        *)
         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'  
         hardcode_libdir_separator_CXX=:  
10272          export_dynamic_flag_spec_CXX='${wl}-E'          export_dynamic_flag_spec_CXX='${wl}-E'
10273          ;;          ;;
10274        esac        esac
10275      fi      fi
10276      case "$host_cpu" in      case $host_cpu in
10277      hppa*64*)      hppa*64*|ia64*)
       hardcode_direct_CXX=no  
       hardcode_shlibpath_var_CXX=no  
       ;;  
     ia64*)  
10278        hardcode_direct_CXX=no        hardcode_direct_CXX=no
10279        hardcode_shlibpath_var_CXX=no        hardcode_shlibpath_var_CXX=no
       hardcode_minus_L_CXX=yes # Not in the search PATH,  
                                               # but as the default  
                                               # location of the library.  
10280        ;;        ;;
10281      *)      *)
10282        hardcode_direct_CXX=yes        hardcode_direct_CXX=yes
# Line 10141  if test -z "$aix_libpath"; then aix_libp Line 10292  if test -z "$aix_libpath"; then aix_libp
10292          ld_shlibs_CXX=no          ld_shlibs_CXX=no
10293          ;;          ;;
10294        aCC*)        aCC*)
10295          case "$host_cpu" in          case $host_cpu in
10296          hppa*64*|ia64*)          hppa*64*)
10297            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10298              ;;
10299            ia64*)
10300              archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10301            ;;            ;;
10302          *)          *)
10303            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
# Line 10162  if test -z "$aix_libpath"; then aix_libp Line 10316  if test -z "$aix_libpath"; then aix_libp
10316        *)        *)
10317          if test "$GXX" = yes; then          if test "$GXX" = yes; then
10318            if test $with_gnu_ld = no; then            if test $with_gnu_ld = no; then
10319              case "$host_cpu" in              case $host_cpu in
10320              ia64*|hppa*64*)              hppa*64*)
10321                archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'                archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10322                  ;;
10323                ia64*)
10324                  archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10325                ;;                ;;
10326              *)              *)
10327                archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'                archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
# Line 10178  if test -z "$aix_libpath"; then aix_libp Line 10335  if test -z "$aix_libpath"; then aix_libp
10335          ;;          ;;
10336      esac      esac
10337      ;;      ;;
10338      interix3*)
10339        hardcode_direct_CXX=no
10340        hardcode_shlibpath_var_CXX=no
10341        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10342        export_dynamic_flag_spec_CXX='${wl}-E'
10343        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10344        # Instead, shared libraries are loaded at an image base (0x10000000 by
10345        # default) and relocated if they conflict, which is a slow very memory
10346        # consuming and fragmenting process.  To avoid this, we pick a random,
10347        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10348        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10349        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10350        archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10351        ;;
10352    irix5* | irix6*)    irix5* | irix6*)
10353      case $cc_basename in      case $cc_basename in
10354        CC*)        CC*)
# Line 10263  if test -z "$aix_libpath"; then aix_libp Line 10434  if test -z "$aix_libpath"; then aix_libp
10434    
10435          hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'          hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10436          export_dynamic_flag_spec_CXX='${wl}--export-dynamic'          export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10437          whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'          whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10438          ;;          ;;
10439        cxx*)        cxx*)
10440          # Compaq C++          # Compaq C++
# Line 10460  if test -z "$aix_libpath"; then aix_libp Line 10631  if test -z "$aix_libpath"; then aix_libp
10631      # FIXME: insert proper C++ library support      # FIXME: insert proper C++ library support
10632      ld_shlibs_CXX=no      ld_shlibs_CXX=no
10633      ;;      ;;
   sco*)  
     archive_cmds_need_lc_CXX=no  
     case $cc_basename in  
       CC*)  
         # FIXME: insert proper C++ library support  
         ld_shlibs_CXX=no  
         ;;  
       *)  
         # FIXME: insert proper C++ library support  
         ld_shlibs_CXX=no  
         ;;  
     esac  
     ;;  
10634    sunos4*)    sunos4*)
10635      case $cc_basename in      case $cc_basename in
10636        CC*)        CC*)
# Line 10495  if test -z "$aix_libpath"; then aix_libp Line 10653  if test -z "$aix_libpath"; then aix_libp
10653      case $cc_basename in      case $cc_basename in
10654        CC*)        CC*)
10655          # Sun C++ 4.2, 5.x and Centerline C++          # Sun C++ 4.2, 5.x and Centerline C++
10656            archive_cmds_need_lc_CXX=yes
10657          no_undefined_flag_CXX=' -zdefs'          no_undefined_flag_CXX=' -zdefs'
10658          archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'          archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10659          archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~          archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10660          $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'          $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10661    
10662          hardcode_libdir_flag_spec_CXX='-R$libdir'          hardcode_libdir_flag_spec_CXX='-R$libdir'
10663          hardcode_shlibpath_var_CXX=no          hardcode_shlibpath_var_CXX=no
# Line 10518  if test -z "$aix_libpath"; then aix_libp Line 10677  if test -z "$aix_libpath"; then aix_libp
10677          esac          esac
10678          link_all_deplibs_CXX=yes          link_all_deplibs_CXX=yes
10679    
10680          # Commands to make compiler produce verbose output that lists          output_verbose_link_cmd='echo'
         # what "hidden" libraries, object files and flags are used when  
         # linking a shared library.  
         #  
         # There doesn't appear to be a way to prevent this compiler from  
         # explicitly linking system object files so we need to strip them  
         # from the output so that they don't get included in the library  
         # dependencies.  
         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'  
10681    
10682          # Archives containing C++ object files must be created using          # Archives containing C++ object files must be created using
10683          # "CC -xar", where "CC" is the Sun C++ compiler.  This is          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
# Line 10572  if test -z "$aix_libpath"; then aix_libp Line 10723  if test -z "$aix_libpath"; then aix_libp
10723          ;;          ;;
10724      esac      esac
10725      ;;      ;;
10726    sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10727        no_undefined_flag_CXX='${wl}-z,text'
10728        archive_cmds_need_lc_CXX=no
10729        hardcode_shlibpath_var_CXX=no
10730        runpath_var='LD_RUN_PATH'
10731    
10732        case $cc_basename in
10733          CC*)
10734            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10735            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10736            ;;
10737          *)
10738            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10739            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10740            ;;
10741        esac
10742        ;;
10743      sysv5* | sco3.2v5* | sco5v6*)
10744        # Note: We can NOT use -z defs as we might desire, because we do not
10745        # link with -lc, and that would cause any symbols used from libc to
10746        # always be unresolved, which means just about no library would
10747        # ever link correctly.  If we're not using GNU ld we use -z text
10748        # though, which does catch some bad symbols but isn't as heavy-handed
10749        # as -z defs.
10750        # For security reasons, it is highly recommended that you always
10751        # use absolute paths for naming shared libraries, and exclude the
10752        # DT_RUNPATH tag from executables and libraries.  But doing so
10753        # requires that you compile everything twice, which is a pain.
10754        # So that behaviour is only enabled if SCOABSPATH is set to a
10755        # non-empty value in the environment.  Most likely only useful for
10756        # creating official distributions of packages.
10757        # This is a hack until libtool officially supports absolute path
10758        # names for shared libraries.
10759        no_undefined_flag_CXX='${wl}-z,text'
10760        allow_undefined_flag_CXX='${wl}-z,nodefs'
10761      archive_cmds_need_lc_CXX=no      archive_cmds_need_lc_CXX=no
10762        hardcode_shlibpath_var_CXX=no
10763        hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10764        hardcode_libdir_separator_CXX=':'
10765        link_all_deplibs_CXX=yes
10766        export_dynamic_flag_spec_CXX='${wl}-Bexport'
10767        runpath_var='LD_RUN_PATH'
10768    
10769        case $cc_basename in
10770          CC*)
10771            archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10772            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10773            ;;
10774          *)
10775            archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10776            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10777            ;;
10778        esac
10779      ;;      ;;
10780    tandem*)    tandem*)
10781      case $cc_basename in      case $cc_basename in
# Line 10630  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 10832  if { (eval echo "$as_me:$LINENO: \"$ac_c
10832    # The `*' in the case matches for architectures that use `case' in    # The `*' in the case matches for architectures that use `case' in
10833    # $output_verbose_cmd can trigger glob expansion during the loop    # $output_verbose_cmd can trigger glob expansion during the loop
10834    # eval without this substitution.    # eval without this substitution.
10835    output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"    output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10836    
10837    for p in `eval $output_verbose_link_cmd`; do    for p in `eval $output_verbose_link_cmd`; do
10838      case $p in      case $p in
# Line 10706  fi Line 10908  fi
10908    
10909  $rm -f confest.$objext  $rm -f confest.$objext
10910    
10911    # PORTME: override above test on systems where it is broken
10912    case $host_os in
10913    interix3*)
10914      # Interix 3.5 installs completely hosed .la files for C++, so rather than
10915      # hack all around it, let's just trust "g++" to DTRT.
10916      predep_objects_CXX=
10917      postdep_objects_CXX=
10918      postdeps_CXX=
10919      ;;
10920    
10921    solaris*)
10922      case $cc_basename in
10923      CC*)
10924        # Adding this requires a known-good setup of shared libraries for
10925        # Sun compiler versions before 5.6, else PIC objects from an old
10926        # archive will be linked into the output, leading to subtle bugs.
10927        postdeps_CXX='-lCstd -lCrun'
10928        ;;
10929      esac
10930      ;;
10931    esac
10932    
10933    
10934  case " $postdeps_CXX " in  case " $postdeps_CXX " in
10935  *" -lc "*) archive_cmds_need_lc_CXX=no ;;  *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10936  esac  esac
# Line 10753  echo $ECHO_N "checking for $compiler opt Line 10978  echo $ECHO_N "checking for $compiler opt
10978        # DJGPP does not support shared libraries at all        # DJGPP does not support shared libraries at all
10979        lt_prog_compiler_pic_CXX=        lt_prog_compiler_pic_CXX=
10980        ;;        ;;
10981        interix3*)
10982          # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10983          # Instead, we relocate shared libraries at runtime.
10984          ;;
10985      sysv4*MP*)      sysv4*MP*)
10986        if test -d /usr/nec; then        if test -d /usr/nec; then
10987          lt_prog_compiler_pic_CXX=-Kconform_pic          lt_prog_compiler_pic_CXX=-Kconform_pic
# Line 10761  echo $ECHO_N "checking for $compiler opt Line 10990  echo $ECHO_N "checking for $compiler opt
10990      hpux*)      hpux*)
10991        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10992        # not for PA HP-UX.        # not for PA HP-UX.
10993        case "$host_cpu" in        case $host_cpu in
10994        hppa*64*|ia64*)        hppa*64*|ia64*)
10995          ;;          ;;
10996        *)        *)
# Line 10822  echo $ECHO_N "checking for $compiler opt Line 11051  echo $ECHO_N "checking for $compiler opt
11051          case $cc_basename in          case $cc_basename in
11052            CC*)            CC*)
11053              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11054              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11055              if test "$host_cpu" != ia64; then              if test "$host_cpu" != ia64; then
11056                lt_prog_compiler_pic_CXX='+Z'                lt_prog_compiler_pic_CXX='+Z'
11057              fi              fi
11058              ;;              ;;
11059            aCC*)            aCC*)
11060              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11061              lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"              lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11062              case "$host_cpu" in              case $host_cpu in
11063              hppa*64*|ia64*)              hppa*64*|ia64*)
11064                # +Z the default                # +Z the default
11065                ;;                ;;
# Line 10843  echo $ECHO_N "checking for $compiler opt Line 11072  echo $ECHO_N "checking for $compiler opt
11072              ;;              ;;
11073          esac          esac
11074          ;;          ;;
11075          interix*)
11076            # This is c89, which is MS Visual C++ (no shared libs)
11077            # Anyone wants to do a port?
11078            ;;
11079        irix5* | irix6* | nonstopux*)        irix5* | irix6* | nonstopux*)
11080          case $cc_basename in          case $cc_basename in
11081            CC*)            CC*)
# Line 10871  echo $ECHO_N "checking for $compiler opt Line 11104  echo $ECHO_N "checking for $compiler opt
11104              # Portland Group C++ compiler.              # Portland Group C++ compiler.
11105              lt_prog_compiler_wl_CXX='-Wl,'              lt_prog_compiler_wl_CXX='-Wl,'
11106              lt_prog_compiler_pic_CXX='-fpic'              lt_prog_compiler_pic_CXX='-fpic'
11107              lt_prog_compiler_static_CXX='-static'              lt_prog_compiler_static_CXX='-Bstatic'
11108              ;;              ;;
11109            cxx*)            cxx*)
11110              # Compaq C++              # Compaq C++
# Line 10922  echo $ECHO_N "checking for $compiler opt Line 11155  echo $ECHO_N "checking for $compiler opt
11155          ;;          ;;
11156        psos*)        psos*)
11157          ;;          ;;
       sco*)  
         case $cc_basename in  
           CC*)  
             lt_prog_compiler_pic_CXX='-fPIC'  
             ;;  
           *)  
             ;;  
         esac  
         ;;  
11158        solaris*)        solaris*)
11159          case $cc_basename in          case $cc_basename in
11160            CC*)            CC*)
# Line 10972  echo $ECHO_N "checking for $compiler opt Line 11196  echo $ECHO_N "checking for $compiler opt
11196              ;;              ;;
11197          esac          esac
11198          ;;          ;;
11199        unixware*)        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11200            case $cc_basename in
11201              CC*)
11202                lt_prog_compiler_wl_CXX='-Wl,'
11203                lt_prog_compiler_pic_CXX='-KPIC'
11204                lt_prog_compiler_static_CXX='-Bstatic'
11205                ;;
11206            esac
11207          ;;          ;;
11208        vxworks*)        vxworks*)
11209          ;;          ;;
# Line 11005  else Line 11236  else
11236     # with a dollar sign (not a hyphen), so the echo should work correctly.     # with a dollar sign (not a hyphen), so the echo should work correctly.
11237     # The option is referenced via a variable to avoid confusing sed.     # The option is referenced via a variable to avoid confusing sed.
11238     lt_compile=`echo "$ac_compile" | $SED \     lt_compile=`echo "$ac_compile" | $SED \
11239     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11240     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11241     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
11242     (eval echo "\"\$as_me:11011: $lt_compile\"" >&5)     (eval echo "\"\$as_me:11242: $lt_compile\"" >&5)
11243     (eval "$lt_compile" 2>conftest.err)     (eval "$lt_compile" 2>conftest.err)
11244     ac_status=$?     ac_status=$?
11245     cat conftest.err >&5     cat conftest.err >&5
11246     echo "$as_me:11015: \$? = $ac_status" >&5     echo "$as_me:11246: \$? = $ac_status" >&5
11247     if (exit $ac_status) && test -s "$ac_outfile"; then     if (exit $ac_status) && test -s "$ac_outfile"; then
11248       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
11249       # So say no if there are warnings other than the usual output.       # So say no if there are warnings other than the usual output.
11250       $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11251       $SED '/^$/d' conftest.err >conftest.er2       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11252       if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11253         lt_prog_compiler_pic_works_CXX=yes         lt_prog_compiler_pic_works_CXX=yes
11254       fi       fi
11255     fi     fi
# Line 11039  else Line 11270  else
11270  fi  fi
11271    
11272  fi  fi
11273  case "$host_os" in  case $host_os in
11274    # For platforms which do not support PIC, -DPIC is meaningless:    # For platforms which do not support PIC, -DPIC is meaningless:
11275    *djgpp*)    *djgpp*)
11276      lt_prog_compiler_pic_CXX=      lt_prog_compiler_pic_CXX=
# Line 11049  case "$host_os" in Line 11280  case "$host_os" in
11280      ;;      ;;
11281  esac  esac
11282    
11283    #
11284    # Check to make sure the static flag actually works.
11285    #
11286    wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11287    echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11288    echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11289    if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11290      echo $ECHO_N "(cached) $ECHO_C" >&6
11291    else
11292      lt_prog_compiler_static_works_CXX=no
11293       save_LDFLAGS="$LDFLAGS"
11294       LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11295       printf "$lt_simple_link_test_code" > conftest.$ac_ext
11296       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11297         # The linker can only warn and ignore the option if not recognized
11298         # So say no if there are warnings
11299         if test -s conftest.err; then
11300           # Append any errors to the config.log.
11301           cat conftest.err 1>&5
11302           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11303           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11304           if diff conftest.exp conftest.er2 >/dev/null; then
11305             lt_prog_compiler_static_works_CXX=yes
11306           fi
11307         else
11308           lt_prog_compiler_static_works_CXX=yes
11309         fi
11310       fi
11311       $rm conftest*
11312       LDFLAGS="$save_LDFLAGS"
11313    
11314    fi
11315    echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11316    echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11317    
11318    if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11319        :
11320    else
11321        lt_prog_compiler_static_CXX=
11322    fi
11323    
11324    
11325  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11326  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11327  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then  if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
# Line 11067  else Line 11340  else
11340     # Note that $ac_compile itself does not contain backslashes and begins     # Note that $ac_compile itself does not contain backslashes and begins
11341     # with a dollar sign (not a hyphen), so the echo should work correctly.     # with a dollar sign (not a hyphen), so the echo should work correctly.
11342     lt_compile=`echo "$ac_compile" | $SED \     lt_compile=`echo "$ac_compile" | $SED \
11343     -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11344     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11345     -e 's:$: $lt_compiler_flag:'`     -e 's:$: $lt_compiler_flag:'`
11346     (eval echo "\"\$as_me:11073: $lt_compile\"" >&5)     (eval echo "\"\$as_me:11346: $lt_compile\"" >&5)
11347     (eval "$lt_compile" 2>out/conftest.err)     (eval "$lt_compile" 2>out/conftest.err)
11348     ac_status=$?     ac_status=$?
11349     cat out/conftest.err >&5     cat out/conftest.err >&5
11350     echo "$as_me:11077: \$? = $ac_status" >&5     echo "$as_me:11350: \$? = $ac_status" >&5
11351     if (exit $ac_status) && test -s out/conftest2.$ac_objext     if (exit $ac_status) && test -s out/conftest2.$ac_objext
11352     then     then
11353       # The compiler can only warn and ignore the option if not recognized       # The compiler can only warn and ignore the option if not recognized
11354       # So say no if there are warnings       # So say no if there are warnings
11355       $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11356       $SED '/^$/d' out/conftest.err >out/conftest.er2       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11357       if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11358         lt_cv_prog_compiler_c_o_CXX=yes         lt_cv_prog_compiler_c_o_CXX=yes
11359       fi       fi
11360     fi     fi
11361     chmod u+w .     chmod u+w . 2>&5
11362     $rm conftest*     $rm conftest*
11363     # SGI C++ compiler will create directory out/ii_files/ for     # SGI C++ compiler will create directory out/ii_files/ for
11364     # template instantiation     # template instantiation
# Line 11151  echo "$as_me:$LINENO: result: $ld_shlibs Line 11424  echo "$as_me:$LINENO: result: $ld_shlibs
11424  echo "${ECHO_T}$ld_shlibs_CXX" >&6  echo "${ECHO_T}$ld_shlibs_CXX" >&6
11425  test "$ld_shlibs_CXX" = no && can_build_shared=no  test "$ld_shlibs_CXX" = no && can_build_shared=no
11426    
 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  
 if test "$GCC" = yes; then  
   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"  
 fi  
   
11427  #  #
11428  # Do we need to explicitly link libc?  # Do we need to explicitly link libc?
11429  #  #
# Line 11188  echo $ECHO_N "checking whether -lc shoul Line 11456  echo $ECHO_N "checking whether -lc shoul
11456          libobjs=conftest.$ac_objext          libobjs=conftest.$ac_objext
11457          deplibs=          deplibs=
11458          wl=$lt_prog_compiler_wl_CXX          wl=$lt_prog_compiler_wl_CXX
11459            pic_flag=$lt_prog_compiler_pic_CXX
11460          compiler_flags=-v          compiler_flags=-v
11461          linker_flags=-v          linker_flags=-v
11462          verstring=          verstring=
# Line 11348  cygwin* | mingw* | pw32*) Line 11617  cygwin* | mingw* | pw32*)
11617        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11618        dldir=$destdir/`dirname \$dlpath`~        dldir=$destdir/`dirname \$dlpath`~
11619        test -d \$dldir || mkdir -p \$dldir~        test -d \$dldir || mkdir -p \$dldir~
11620        $install_prog $dir/$dlname \$dldir/$dlname'        $install_prog $dir/$dlname \$dldir/$dlname~
11621          chmod a+x \$dldir/$dlname'
11622      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11623        dlpath=$dir/\$dldll~        dlpath=$dir/\$dldll~
11624         $rm \$dlpath'         $rm \$dlpath'
# Line 11425  darwin* | rhapsody*) Line 11695  darwin* | rhapsody*)
11695    soname_spec='${libname}${release}${major}$shared_ext'    soname_spec='${libname}${release}${major}$shared_ext'
11696    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
11697    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
11698    shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11699    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.    # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11700    if test "$GCC" = yes; then    if test "$GCC" = yes; then
11701      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"`      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"`
# Line 11463  kfreebsd*-gnu) Line 11733  kfreebsd*-gnu)
11733  freebsd* | dragonfly*)  freebsd* | dragonfly*)
11734    # DragonFly does not have aout.  When/if they implement a new    # DragonFly does not have aout.  When/if they implement a new
11735    # versioning mechanism, adjust this.    # versioning mechanism, adjust this.
11736    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    if test -x /usr/bin/objformat; then
11737    version_type=freebsd-$objformat      objformat=`/usr/bin/objformat`
11738      else
11739        case $host_os in
11740        freebsd[123]*) objformat=aout ;;
11741        *) objformat=elf ;;
11742        esac
11743      fi
11744      # Handle Gentoo/FreeBSD as it was Linux
11745      case $host_vendor in
11746        gentoo)
11747          version_type=linux ;;
11748        *)
11749          version_type=freebsd-$objformat ;;
11750      esac
11751    
11752    case $version_type in    case $version_type in
11753      freebsd-elf*)      freebsd-elf*)
11754        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
# Line 11475  freebsd* | dragonfly*) Line 11759  freebsd* | dragonfly*)
11759        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11760        need_version=yes        need_version=yes
11761        ;;        ;;
11762        linux)
11763          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11764          soname_spec='${libname}${release}${shared_ext}$major'
11765          need_lib_prefix=no
11766          need_version=no
11767          ;;
11768    esac    esac
11769    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
11770    case $host_os in    case $host_os in
# Line 11485  freebsd* | dragonfly*) Line 11775  freebsd* | dragonfly*)
11775      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
11776      hardcode_into_libs=yes      hardcode_into_libs=yes
11777      ;;      ;;
11778    *) # from 3.2 on    freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11779      freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11780      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
11781      hardcode_into_libs=yes      hardcode_into_libs=yes
11782      ;;      ;;
11783      freebsd*) # from 4.6 on
11784        shlibpath_overrides_runpath=yes
11785        hardcode_into_libs=yes
11786        ;;
11787    esac    esac
11788    ;;    ;;
11789    
# Line 11508  hpux9* | hpux10* | hpux11*) Line 11803  hpux9* | hpux10* | hpux11*)
11803    version_type=sunos    version_type=sunos
11804    need_lib_prefix=no    need_lib_prefix=no
11805    need_version=no    need_version=no
11806    case "$host_cpu" in    case $host_cpu in
11807    ia64*)    ia64*)
11808      shrext_cmds='.so'      shrext_cmds='.so'
11809      hardcode_into_libs=yes      hardcode_into_libs=yes
# Line 11548  hpux9* | hpux10* | hpux11*) Line 11843  hpux9* | hpux10* | hpux11*)
11843    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
11844    ;;    ;;
11845    
11846    interix3*)
11847      version_type=linux
11848      need_lib_prefix=no
11849      need_version=no
11850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11851      soname_spec='${libname}${release}${shared_ext}$major'
11852      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11853      shlibpath_var=LD_LIBRARY_PATH
11854      shlibpath_overrides_runpath=no
11855      hardcode_into_libs=yes
11856      ;;
11857    
11858  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
11859    case $host_os in    case $host_os in
11860      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
# Line 11611  linux*) Line 11918  linux*)
11918      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11919    fi    fi
11920    
   case $host_cpu:$lt_cv_cc_64bit_output in  
   powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)  
     sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"  
     sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"  
     ;;  
   esac  
   
11921    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
11922    # powerpc, because MkLinux only supported shared libraries with the    # powerpc, because MkLinux only supported shared libraries with the
11923    # GNU dynamic linker.  Since this was broken with cross compilers,    # GNU dynamic linker.  Since this was broken with cross compilers,
# Line 11625  linux*) Line 11925  linux*)
11925    # people can always --disable-shared, the test was removed, and we    # people can always --disable-shared, the test was removed, and we
11926    # assume the GNU/Linux dynamic linker is in use.    # assume the GNU/Linux dynamic linker is in use.
11927    dynamic_linker='GNU/Linux ld.so'    dynamic_linker='GNU/Linux ld.so'
11928      ;;
   # Find out which ABI we are using (multilib Linux x86_64 hack).  
   libsuff=  
   case "$host_cpu" in  
   x86_64*)  
     echo '#line 11633 "configure"' > conftest.$ac_ext  
     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
       case `/usr/bin/file conftest.$ac_objext` in  
       *64-bit*)  
         libsuff=64  
         ;;  
       esac  
     fi  
     rm -rf conftest*  
     ;;  
   *)  
     ;;  
   esac  
   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"  
   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  
   ;;  
11929    
11930  knetbsd*-gnu)  knetbsd*-gnu)
11931    version_type=linux    version_type=linux
# Line 11700  nto-qnx*) Line 11976  nto-qnx*)
11976    
11977  openbsd*)  openbsd*)
11978    version_type=sunos    version_type=sunos
11979      sys_lib_dlsearch_path_spec="/usr/lib"
11980    need_lib_prefix=no    need_lib_prefix=no
11981    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11982    case $host_os in    case $host_os in
# Line 11743  osf3* | osf4* | osf5*) Line 12020  osf3* | osf4* | osf5*)
12020    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12021    ;;    ;;
12022    
 sco3.2v5*)  
   version_type=osf  
   soname_spec='${libname}${release}${shared_ext}$major'  
   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
12023  solaris*)  solaris*)
12024    version_type=linux    version_type=linux
12025    need_lib_prefix=no    need_lib_prefix=no
# Line 11775  sunos4*) Line 12045  sunos4*)
12045    need_version=yes    need_version=yes
12046    ;;    ;;
12047    
12048  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
12049    version_type=linux    version_type=linux
12050    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051    soname_spec='${libname}${release}${shared_ext}$major'    soname_spec='${libname}${release}${shared_ext}$major'
# Line 11808  sysv4*MP*) Line 12078  sysv4*MP*)
12078    fi    fi
12079    ;;    ;;
12080    
12081    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12082      version_type=freebsd-elf
12083      need_lib_prefix=no
12084      need_version=no
12085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12086      soname_spec='${libname}${release}${shared_ext}$major'
12087      shlibpath_var=LD_LIBRARY_PATH
12088      hardcode_into_libs=yes
12089      if test "$with_gnu_ld" = yes; then
12090        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12091        shlibpath_overrides_runpath=no
12092      else
12093        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12094        shlibpath_overrides_runpath=yes
12095        case $host_os in
12096          sco3.2v5*)
12097            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12098            ;;
12099        esac
12100      fi
12101      sys_lib_dlsearch_path_spec='/usr/lib'
12102      ;;
12103    
12104  uts4*)  uts4*)
12105    version_type=linux    version_type=linux
12106    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 11823  echo "$as_me:$LINENO: result: $dynamic_l Line 12116  echo "$as_me:$LINENO: result: $dynamic_l
12116  echo "${ECHO_T}$dynamic_linker" >&6  echo "${ECHO_T}$dynamic_linker" >&6
12117  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
12118    
12119    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12120    if test "$GCC" = yes; then
12121      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12122    fi
12123    
12124  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12125  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12126  hardcode_action_CXX=  hardcode_action_CXX=
# Line 11860  elif test "$shlibpath_overrides_runpath" Line 12158  elif test "$shlibpath_overrides_runpath"
12158    enable_fast_install=needless    enable_fast_install=needless
12159  fi  fi
12160    
12161  striplib=  
12162  old_striplib=  # The else clause should only fire when bootstrapping the
12163  echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5  # libtool distribution, otherwise you forgot to ship ltmain.sh
12164  echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6  # with your package, and you will get complaints that there are
12165  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  # no rules to generate ltmain.sh.
12166    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"  if test -f "$ltmain"; then
12167    test -z "$striplib" && striplib="$STRIP --strip-unneeded"    # See if we are running on zsh, and set the options which allow our commands through
12168    echo "$as_me:$LINENO: result: yes" >&5    # without removal of \ escapes.
12169  echo "${ECHO_T}yes" >&6    if test -n "${ZSH_VERSION+set}" ; then
12170  else      setopt NO_GLOB_SUBST
12171  # FIXME - insert some real tests, host_os isn't really good enough    fi
12172    case $host_os in    # Now quote all the things that may contain metacharacters while being
12173     darwin*)    # careful not to overquote the AC_SUBSTed values.  We take copies of the
12174         if test -n "$STRIP" ; then    # variables and quote the copies for generation of the libtool script.
12175           striplib="$STRIP -x"    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12176           echo "$as_me:$LINENO: result: yes" >&5      SED SHELL STRIP \
12177  echo "${ECHO_T}yes" >&6      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12178         else      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12179    echo "$as_me:$LINENO: result: no" >&5      deplibs_check_method reload_flag reload_cmds need_locks \
12180  echo "${ECHO_T}no" >&6      lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12181  fi      lt_cv_sys_global_symbol_to_c_name_address \
12182         ;;      sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12183     *)      old_postinstall_cmds old_postuninstall_cmds \
12184    echo "$as_me:$LINENO: result: no" >&5      compiler_CXX \
12185  echo "${ECHO_T}no" >&6      CC_CXX \
12186        LD_CXX \
12187        lt_prog_compiler_wl_CXX \
12188        lt_prog_compiler_pic_CXX \
12189        lt_prog_compiler_static_CXX \
12190        lt_prog_compiler_no_builtin_flag_CXX \
12191        export_dynamic_flag_spec_CXX \
12192        thread_safe_flag_spec_CXX \
12193        whole_archive_flag_spec_CXX \
12194        enable_shared_with_static_runtimes_CXX \
12195        old_archive_cmds_CXX \
12196        old_archive_from_new_cmds_CXX \
12197        predep_objects_CXX \
12198        postdep_objects_CXX \
12199        predeps_CXX \
12200        postdeps_CXX \
12201        compiler_lib_search_path_CXX \
12202        archive_cmds_CXX \
12203        archive_expsym_cmds_CXX \
12204        postinstall_cmds_CXX \
12205        postuninstall_cmds_CXX \
12206        old_archive_from_expsyms_cmds_CXX \
12207        allow_undefined_flag_CXX \
12208        no_undefined_flag_CXX \
12209        export_symbols_cmds_CXX \
12210        hardcode_libdir_flag_spec_CXX \
12211        hardcode_libdir_flag_spec_ld_CXX \
12212        hardcode_libdir_separator_CXX \
12213        hardcode_automatic_CXX \
12214        module_cmds_CXX \
12215        module_expsym_cmds_CXX \
12216        lt_cv_prog_compiler_c_o_CXX \
12217        exclude_expsyms_CXX \
12218        include_expsyms_CXX; do
12219    
12220        case $var in
12221        old_archive_cmds_CXX | \
12222        old_archive_from_new_cmds_CXX | \
12223        archive_cmds_CXX | \
12224        archive_expsym_cmds_CXX | \
12225        module_cmds_CXX | \
12226        module_expsym_cmds_CXX | \
12227        old_archive_from_expsyms_cmds_CXX | \
12228        export_symbols_cmds_CXX | \
12229        extract_expsyms_cmds | reload_cmds | finish_cmds | \
12230        postinstall_cmds | postuninstall_cmds | \
12231        old_postinstall_cmds | old_postuninstall_cmds | \
12232        sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12233          # Double-quote double-evaled strings.
12234          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12235          ;;
12236        *)
12237          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12238          ;;
12239        esac
12240      done
12241    
12242      case $lt_echo in
12243      *'\$0 --fallback-echo"')
12244        lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12245      ;;      ;;
12246    esac    esac
 fi  
12247    
12248  if test "x$enable_dlopen" != xyes; then  cfgfile="$ofile"
   enable_dlopen=unknown  
   enable_dlopen_self=unknown  
   enable_dlopen_self_static=unknown  
 else  
   lt_cv_dlopen=no  
   lt_cv_dlopen_libs=  
12249    
12250    case $host_os in    cat <<__EOF__ >> "$cfgfile"
12251    beos*)  # ### BEGIN LIBTOOL TAG CONFIG: $tagname
     lt_cv_dlopen="load_add_on"  
     lt_cv_dlopen_libs=  
     lt_cv_dlopen_self=yes  
     ;;  
12252    
12253    mingw* | pw32*)  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
     lt_cv_dlopen="LoadLibrary"  
     lt_cv_dlopen_libs=  
    ;;  
12254    
12255    cygwin*)  # Shell to use when invoking shell scripts.
12256      lt_cv_dlopen="dlopen"  SHELL=$lt_SHELL
     lt_cv_dlopen_libs=  
    ;;  
12257    
12258    darwin*)  # Whether or not to build shared libraries.
12259    # if libdl is installed we need to link against it  build_libtool_libs=$enable_shared
     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5  
 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  
 if test "${ac_cv_lib_dl_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldl  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
12260    
12261  /* Override any gcc2 internal prototype to avoid an error.  */  # Whether or not to build static libraries.
12262  #ifdef __cplusplus  build_old_libs=$enable_static
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dl_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
12263    
12264  ac_cv_lib_dl_dlopen=no  # Whether or not to add -lc for building shared libraries.
12265  fi  build_libtool_need_lc=$archive_cmds_need_lc_CXX
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6  
 if test $ac_cv_lib_dl_dlopen = yes; then  
   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"  
 else  
12266    
12267      lt_cv_dlopen="dyld"  # Whether or not to disallow shared libs when runtime libs are static
12268      lt_cv_dlopen_libs=  allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
     lt_cv_dlopen_self=yes  
12269    
12270  fi  # Whether or not to optimize for fast installation.
12271    fast_install=$enable_fast_install
12272    
12273     ;;  # The host system.
12274    host_alias=$host_alias
12275    host=$host
12276    host_os=$host_os
12277    
12278    *)  # The build system.
12279      echo "$as_me:$LINENO: checking for shl_load" >&5  build_alias=$build_alias
12280  echo $ECHO_N "checking for shl_load... $ECHO_C" >&6  build=$build
12281  if test "${ac_cv_func_shl_load+set}" = set; then  build_os=$build_os
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define shl_load innocuous_shl_load  
12282    
12283  /* System header to define __stub macros and hopefully few prototypes,  # An echo program that does not interpret backslashes.
12284      which can conflict with char shl_load (); below.  echo=$lt_echo
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
12285    
12286  #ifdef __STDC__  # The archiver.
12287  # include <limits.h>  AR=$lt_AR
12288  #else  AR_FLAGS=$lt_AR_FLAGS
 # include <assert.h>  
 #endif  
12289    
12290  #undef shl_load  # A C compiler.
12291    LTCC=$lt_LTCC
12292    
12293  /* Override any gcc2 internal prototype to avoid an error.  */  # LTCC compiler flags.
12294  #ifdef __cplusplus  LTCFLAGS=$lt_LTCFLAGS
 extern "C"  
 {  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char shl_load ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined (__stub_shl_load) || defined (__stub___shl_load)  
 choke me  
 #else  
 char (*f) () = shl_load;  
 #endif  
 #ifdef __cplusplus  
 }  
 #endif  
12295    
12296  int  # A language-specific compiler.
12297  main ()  CC=$lt_compiler_CXX
 {  
 return f != shl_load;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_shl_load=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
12298    
12299  ac_cv_func_shl_load=no  # Is the compiler the GNU C compiler?
12300  fi  with_gcc=$GCC_CXX
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5  
 echo "${ECHO_T}$ac_cv_func_shl_load" >&6  
 if test $ac_cv_func_shl_load = yes; then  
   lt_cv_dlopen="shl_load"  
 else  
   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5  
 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6  
 if test "${ac_cv_lib_dld_shl_load+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldld  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
12301    
12302  /* Override any gcc2 internal prototype to avoid an error.  */  # An ERE matcher.
12303  #ifdef __cplusplus  EGREP=$lt_EGREP
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char shl_load ();  
 int  
 main ()  
 {  
 shl_load ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dld_shl_load=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
12304    
12305  ac_cv_lib_dld_shl_load=no  # The linker used to build libraries.
12306  fi  LD=$lt_LD_CXX
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5  
 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6  
 if test $ac_cv_lib_dld_shl_load = yes; then  
   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"  
 else  
   echo "$as_me:$LINENO: checking for dlopen" >&5  
 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6  
 if test "${ac_cv_func_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.  
    For example, HP-UX 11i <limits.h> declares gettimeofday.  */  
 #define dlopen innocuous_dlopen  
12307    
12308  /* System header to define __stub macros and hopefully few prototypes,  # Whether we need hard or soft links.
12309      which can conflict with char dlopen (); below.  LN_S=$lt_LN_S
     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since  
     <limits.h> exists even on freestanding compilers.  */  
12310    
12311  #ifdef __STDC__  # A BSD-compatible nm program.
12312  # include <limits.h>  NM=$lt_NM
 #else  
 # include <assert.h>  
 #endif  
12313    
12314  #undef dlopen  # A symbol stripping program
12315    STRIP=$lt_STRIP
12316    
12317  /* Override any gcc2 internal prototype to avoid an error.  */  # Used to examine libraries when file_magic_cmd begins "file"
12318  #ifdef __cplusplus  MAGIC_CMD=$MAGIC_CMD
 extern "C"  
 {  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 /* The GNU C library defines this for functions which it implements  
     to always fail with ENOSYS.  Some functions are actually named  
     something starting with __ and the normal name is an alias.  */  
 #if defined (__stub_dlopen) || defined (__stub___dlopen)  
 choke me  
 #else  
 char (*f) () = dlopen;  
 #endif  
 #ifdef __cplusplus  
 }  
 #endif  
12319    
12320  int  # Used on cygwin: DLL creation program.
12321  main ()  DLLTOOL="$DLLTOOL"
 {  
 return f != dlopen;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_func_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
12322    
12323  ac_cv_func_dlopen=no  # Used on cygwin: object dumper.
12324  fi  OBJDUMP="$OBJDUMP"
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_func_dlopen" >&6  
 if test $ac_cv_func_dlopen = yes; then  
   lt_cv_dlopen="dlopen"  
 else  
   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5  
 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6  
 if test "${ac_cv_lib_dl_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldl  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
12325    
12326  /* Override any gcc2 internal prototype to avoid an error.  */  # Used on cygwin: assembler.
12327  #ifdef __cplusplus  AS="$AS"
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dl_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
12328    
12329  ac_cv_lib_dl_dlopen=no  # The name of the directory that contains temporary libtool files.
12330  fi  objdir=$objdir
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6  
 if test $ac_cv_lib_dl_dlopen = yes; then  
   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"  
 else  
   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5  
 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6  
 if test "${ac_cv_lib_svld_dlopen+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-lsvld  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
12331    
12332  /* Override any gcc2 internal prototype to avoid an error.  */  # How to create reloadable object files.
12333  #ifdef __cplusplus  reload_flag=$lt_reload_flag
12334  extern "C"  reload_cmds=$lt_reload_cmds
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dlopen ();  
 int  
 main ()  
 {  
 dlopen ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_svld_dlopen=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
12335    
12336  ac_cv_lib_svld_dlopen=no  # How to pass a linker flag through the compiler.
12337  fi  wl=$lt_lt_prog_compiler_wl_CXX
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5  
 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6  
 if test $ac_cv_lib_svld_dlopen = yes; then  
   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"  
 else  
   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5  
 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6  
 if test "${ac_cv_lib_dld_dld_link+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   ac_check_lib_save_LIBS=$LIBS  
 LIBS="-ldld  $LIBS"  
 cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
12338    
12339  /* Override any gcc2 internal prototype to avoid an error.  */  # Object file suffix (normally "o").
12340  #ifdef __cplusplus  objext="$ac_objext"
 extern "C"  
 #endif  
 /* We use char because int might match the return type of a gcc2  
    builtin and then its argument prototype would still apply.  */  
 char dld_link ();  
 int  
 main ()  
 {  
 dld_link ();  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_cxx_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   ac_cv_lib_dld_dld_link=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
12341    
12342  ac_cv_lib_dld_dld_link=no  # Old archive suffix (normally "a").
12343  fi  libext="$libext"
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
 LIBS=$ac_check_lib_save_LIBS  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5  
 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6  
 if test $ac_cv_lib_dld_dld_link = yes; then  
   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"  
 fi  
12344    
12345    # Shared library suffix (normally ".so").
12346    shrext_cmds='$shrext_cmds'
12347    
12348  fi  # Executable file suffix (normally "").
12349    exeext="$exeext"
12350    
12351    # Additional compiler flags for building library objects.
12352    pic_flag=$lt_lt_prog_compiler_pic_CXX
12353    pic_mode=$pic_mode
12354    
12355  fi  # What is the maximum length of a command?
12356    max_cmd_len=$lt_cv_sys_max_cmd_len
12357    
12358    # Does compiler simultaneously support -c and -o options?
12359    compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12360    
12361  fi  # Must we lock files when doing compilation?
12362    need_locks=$lt_need_locks
12363    
12364    # Do we need the lib prefix for modules?
12365    need_lib_prefix=$need_lib_prefix
12366    
12367  fi  # Do we need a version for libraries?
12368    need_version=$need_version
12369    
12370    # Whether dlopen is supported.
12371    dlopen_support=$enable_dlopen
12372    
12373  fi  # Whether dlopen of programs is supported.
12374    dlopen_self=$enable_dlopen_self
12375    
12376      ;;  # Whether dlopen of statically linked programs is supported.
12377    esac  dlopen_self_static=$enable_dlopen_self_static
12378    
12379    if test "x$lt_cv_dlopen" != xno; then  # Compiler flag to prevent dynamic linking.
12380      enable_dlopen=yes  link_static_flag=$lt_lt_prog_compiler_static_CXX
   else  
     enable_dlopen=no  
   fi  
12381    
12382    case $lt_cv_dlopen in  # Compiler flag to turn off builtin functions.
12383    dlopen)  no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
     save_CPPFLAGS="$CPPFLAGS"  
     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"  
12384    
12385      save_LDFLAGS="$LDFLAGS"  # Compiler flag to allow reflexive dlopens.
12386      eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"  export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12387    
12388      save_LIBS="$LIBS"  # Compiler flag to generate shared objects directly from archives.
12389      LIBS="$lt_cv_dlopen_libs $LIBS"  whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12390    
12391      echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5  # Compiler flag to generate thread-safe objects.
12392  echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6  thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 if test "${lt_cv_dlopen_self+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
           if test "$cross_compiling" = yes; then :  
   lt_cv_dlopen_self=cross  
 else  
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2  
   lt_status=$lt_dlunknown  
   cat > conftest.$ac_ext <<EOF  
 #line 12497 "configure"  
 #include "confdefs.h"  
12393    
12394  #if HAVE_DLFCN_H  # Library versioning type.
12395  #include <dlfcn.h>  version_type=$version_type
 #endif  
12396    
12397  #include <stdio.h>  # Format of library name prefix.
12398    libname_spec=$lt_libname_spec
12399    
12400  #ifdef RTLD_GLOBAL  # List of archive names.  First name is the real one, the rest are links.
12401  #  define LT_DLGLOBAL           RTLD_GLOBAL  # The last name is the one that the linker finds with -lNAME.
12402  #else  library_names_spec=$lt_library_names_spec
 #  ifdef DL_GLOBAL  
 #    define LT_DLGLOBAL         DL_GLOBAL  
 #  else  
 #    define LT_DLGLOBAL         0  
 #  endif  
 #endif  
12403    
12404  /* We may have to define LT_DLLAZY_OR_NOW in the command line if we  # The coded name of the library, if different from the real name.
12405     find out it does not work in some platform. */  soname_spec=$lt_soname_spec
 #ifndef LT_DLLAZY_OR_NOW  
 #  ifdef RTLD_LAZY  
 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY  
 #  else  
 #    ifdef DL_LAZY  
 #      define LT_DLLAZY_OR_NOW          DL_LAZY  
 #    else  
 #      ifdef RTLD_NOW  
 #        define LT_DLLAZY_OR_NOW        RTLD_NOW  
 #      else  
 #        ifdef DL_NOW  
 #          define LT_DLLAZY_OR_NOW      DL_NOW  
 #        else  
 #          define LT_DLLAZY_OR_NOW      0  
 #        endif  
 #      endif  
 #    endif  
 #  endif  
 #endif  
12406    
12407  #ifdef __cplusplus  # Commands used to build and install an old-style archive.
12408  extern "C" void exit (int);  RANLIB=$lt_RANLIB
12409  #endif  old_archive_cmds=$lt_old_archive_cmds_CXX
12410    old_postinstall_cmds=$lt_old_postinstall_cmds
12411    old_postuninstall_cmds=$lt_old_postuninstall_cmds
12412    
12413  void fnord() { int i=42;}  # Create an old-style archive from a shared archive.
12414  int main ()  old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 {  
   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);  
   int status = $lt_dlunknown;  
12415    
12416    if (self)  # Create a temporary old-style archive to link instead of a shared archive.
12417      {  old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;  
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;  
       /* dlclose (self); */  
     }  
12418    
12419      exit (status);  # Commands used to build and install a shared archive.
12420  }  archive_cmds=$lt_archive_cmds_CXX
12421  EOF  archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12422    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  postinstall_cmds=$lt_postinstall_cmds
12423    (eval $ac_link) 2>&5  postuninstall_cmds=$lt_postuninstall_cmds
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then  
     (./conftest; exit; ) 2>/dev/null  
     lt_status=$?  
     case x$lt_status in  
       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;  
       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;  
       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;  
     esac  
   else :  
     # compilation failed  
     lt_cv_dlopen_self=no  
   fi  
 fi  
 rm -fr conftest*  
12424    
12425    # Commands used to build a loadable module (assumed same as above if empty)
12426    module_cmds=$lt_module_cmds_CXX
12427    module_expsym_cmds=$lt_module_expsym_cmds_CXX
12428    
12429  fi  # Commands to strip libraries.
12430  echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5  old_striplib=$lt_old_striplib
12431  echo "${ECHO_T}$lt_cv_dlopen_self" >&6  striplib=$lt_striplib
12432    
12433      if test "x$lt_cv_dlopen_self" = xyes; then  # Dependencies to place before the objects being linked to create a
12434        LDFLAGS="$LDFLAGS $link_static_flag"  # shared library.
12435        echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5  predep_objects=$lt_predep_objects_CXX
 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6  
 if test "${lt_cv_dlopen_self_static+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
           if test "$cross_compiling" = yes; then :  
   lt_cv_dlopen_self_static=cross  
 else  
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2  
   lt_status=$lt_dlunknown  
   cat > conftest.$ac_ext <<EOF  
 #line 12595 "configure"  
 #include "confdefs.h"  
12436    
12437  #if HAVE_DLFCN_H  # Dependencies to place after the objects being linked to create a
12438  #include <dlfcn.h>  # shared library.
12439  #endif  postdep_objects=$lt_postdep_objects_CXX
12440    
12441  #include <stdio.h>  # Dependencies to place before the objects being linked to create a
12442    # shared library.
12443    predeps=$lt_predeps_CXX
12444    
12445  #ifdef RTLD_GLOBAL  # Dependencies to place after the objects being linked to create a
12446  #  define LT_DLGLOBAL           RTLD_GLOBAL  # shared library.
12447  #else  postdeps=$lt_postdeps_CXX
 #  ifdef DL_GLOBAL  
 #    define LT_DLGLOBAL         DL_GLOBAL  
 #  else  
 #    define LT_DLGLOBAL         0  
 #  endif  
 #endif  
12448    
12449  /* We may have to define LT_DLLAZY_OR_NOW in the command line if we  # The library search path used internally by the compiler when linking
12450     find out it does not work in some platform. */  # a shared library.
12451  #ifndef LT_DLLAZY_OR_NOW  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 #  ifdef RTLD_LAZY  
 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY  
 #  else  
 #    ifdef DL_LAZY  
 #      define LT_DLLAZY_OR_NOW          DL_LAZY  
 #    else  
 #      ifdef RTLD_NOW  
 #        define LT_DLLAZY_OR_NOW        RTLD_NOW  
 #      else  
 #        ifdef DL_NOW  
 #          define LT_DLLAZY_OR_NOW      DL_NOW  
 #        else  
 #          define LT_DLLAZY_OR_NOW      0  
 #        endif  
 #      endif  
 #    endif  
 #  endif  
 #endif  
12452    
12453  #ifdef __cplusplus  # Method to check whether dependent libraries are shared objects.
12454  extern "C" void exit (int);  deplibs_check_method=$lt_deplibs_check_method
 #endif  
12455    
12456  void fnord() { int i=42;}  # Command to use when deplibs_check_method == file_magic.
12457  int main ()  file_magic_cmd=$lt_file_magic_cmd
 {  
   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);  
   int status = $lt_dlunknown;  
12458    
12459    if (self)  # Flag that allows shared libraries with undefined symbols to be built.
12460      {  allow_undefined_flag=$lt_allow_undefined_flag_CXX
       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;  
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;  
       /* dlclose (self); */  
     }  
12461    
12462      exit (status);  # Flag that forces no undefined symbols.
12463  }  no_undefined_flag=$lt_no_undefined_flag_CXX
 EOF  
   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then  
     (./conftest; exit; ) 2>/dev/null  
     lt_status=$?  
     case x$lt_status in  
       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;  
       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;  
       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;  
     esac  
   else :  
     # compilation failed  
     lt_cv_dlopen_self_static=no  
   fi  
 fi  
 rm -fr conftest*  
12464    
12465    # Commands used to finish a libtool library installation in a directory.
12466    finish_cmds=$lt_finish_cmds
12467    
12468  fi  # Same as above, but a single script fragment to be evaled but not shown.
12469  echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5  finish_eval=$lt_finish_eval
 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6  
     fi  
12470    
12471      CPPFLAGS="$save_CPPFLAGS"  # Take the output of nm and produce a listing of raw symbols and C names.
12472      LDFLAGS="$save_LDFLAGS"  global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
     LIBS="$save_LIBS"  
     ;;  
   esac  
12473    
12474    case $lt_cv_dlopen_self in  # Transform the output of nm in a proper C declaration
12475    yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;  global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   *) enable_dlopen_self=unknown ;;  
   esac  
12476    
12477    case $lt_cv_dlopen_self_static in  # Transform the output of nm in a C name address pair
12478    yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;  global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   *) enable_dlopen_self_static=unknown ;;  
   esac  
 fi  
12479    
12480    # This is the shared library runtime path variable.
12481    runpath_var=$runpath_var
12482    
12483  # The else clause should only fire when bootstrapping the  # This is the shared library path variable.
12484  # libtool distribution, otherwise you forgot to ship ltmain.sh  shlibpath_var=$shlibpath_var
 # with your package, and you will get complaints that there are  
 # no rules to generate ltmain.sh.  
 if test -f "$ltmain"; then  
   # See if we are running on zsh, and set the options which allow our commands through  
   # without removal of \ escapes.  
   if test -n "${ZSH_VERSION+set}" ; then  
     setopt NO_GLOB_SUBST  
   fi  
   # Now quote all the things that may contain metacharacters while being  
   # careful not to overquote the AC_SUBSTed values.  We take copies of the  
   # variables and quote the copies for generation of the libtool script.  
   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \  
     SED SHELL STRIP \  
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \  
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \  
     deplibs_check_method reload_flag reload_cmds need_locks \  
     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \  
     lt_cv_sys_global_symbol_to_c_name_address \  
     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \  
     old_postinstall_cmds old_postuninstall_cmds \  
     compiler_CXX \  
     CC_CXX \  
     LD_CXX \  
     lt_prog_compiler_wl_CXX \  
     lt_prog_compiler_pic_CXX \  
     lt_prog_compiler_static_CXX \  
     lt_prog_compiler_no_builtin_flag_CXX \  
     export_dynamic_flag_spec_CXX \  
     thread_safe_flag_spec_CXX \  
     whole_archive_flag_spec_CXX \  
     enable_shared_with_static_runtimes_CXX \  
     old_archive_cmds_CXX \  
     old_archive_from_new_cmds_CXX \  
     predep_objects_CXX \  
     postdep_objects_CXX \  
     predeps_CXX \  
     postdeps_CXX \  
     compiler_lib_search_path_CXX \  
     archive_cmds_CXX \  
     archive_expsym_cmds_CXX \  
     postinstall_cmds_CXX \  
     postuninstall_cmds_CXX \  
     old_archive_from_expsyms_cmds_CXX \  
     allow_undefined_flag_CXX \  
     no_undefined_flag_CXX \  
     export_symbols_cmds_CXX \  
     hardcode_libdir_flag_spec_CXX \  
     hardcode_libdir_flag_spec_ld_CXX \  
     hardcode_libdir_separator_CXX \  
     hardcode_automatic_CXX \  
     module_cmds_CXX \  
     module_expsym_cmds_CXX \  
     lt_cv_prog_compiler_c_o_CXX \  
     exclude_expsyms_CXX \  
     include_expsyms_CXX; do  
12485    
12486      case $var in  # Is shlibpath searched before the hard-coded library search path?
12487      old_archive_cmds_CXX | \  shlibpath_overrides_runpath=$shlibpath_overrides_runpath
     old_archive_from_new_cmds_CXX | \  
     archive_cmds_CXX | \  
     archive_expsym_cmds_CXX | \  
     module_cmds_CXX | \  
     module_expsym_cmds_CXX | \  
     old_archive_from_expsyms_cmds_CXX | \  
     export_symbols_cmds_CXX | \  
     extract_expsyms_cmds | reload_cmds | finish_cmds | \  
     postinstall_cmds | postuninstall_cmds | \  
     old_postinstall_cmds | old_postuninstall_cmds | \  
     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)  
       # Double-quote double-evaled strings.  
       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""  
       ;;  
     *)  
       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""  
       ;;  
     esac  
   done  
12488    
12489    case $lt_echo in  # How to hardcode a shared library path into an executable.
12490    *'\$0 --fallback-echo"')  hardcode_action=$hardcode_action_CXX
     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`  
     ;;  
   esac  
12491    
12492  cfgfile="$ofile"  # Whether we should hardcode library paths into libraries.
12493    hardcode_into_libs=$hardcode_into_libs
12494    
12495    cat <<__EOF__ >> "$cfgfile"  # Flag to hardcode \$libdir into a binary during linking.
12496  # ### BEGIN LIBTOOL TAG CONFIG: $tagname  # This must work even if \$libdir does not exist.
12497    hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12498    
12499  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  # If ld is used when linking, flag to hardcode \$libdir into
12500    # a binary during linking. This must work even if \$libdir does
12501    # not exist.
12502    hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12503    
12504  # Shell to use when invoking shell scripts.  # Whether we need a single -rpath flag with a separated argument.
12505  SHELL=$lt_SHELL  hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12506    
12507  # Whether or not to build shared libraries.  # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12508  build_libtool_libs=$enable_shared  # resulting binary.
12509    hardcode_direct=$hardcode_direct_CXX
12510    
12511  # Whether or not to build static libraries.  # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12512  build_old_libs=$enable_static  # resulting binary.
12513    hardcode_minus_L=$hardcode_minus_L_CXX
12514    
12515  # Whether or not to add -lc for building shared libraries.  # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12516  build_libtool_need_lc=$archive_cmds_need_lc_CXX  # the resulting binary.
12517    hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12518    
12519  # Whether or not to disallow shared libs when runtime libs are static  # Set to yes if building a shared library automatically hardcodes DIR into the library
12520  allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX  # and all subsequent libraries and executables linked against it.
12521    hardcode_automatic=$hardcode_automatic_CXX
12522    
12523  # Whether or not to optimize for fast installation.  # Variables whose values should be saved in libtool wrapper scripts and
12524  fast_install=$enable_fast_install  # restored at relink time.
12525    variables_saved_for_relink="$variables_saved_for_relink"
12526    
12527  # The host system.  # Whether libtool must link a program against all its dependency libraries.
12528  host_alias=$host_alias  link_all_deplibs=$link_all_deplibs_CXX
 host=$host  
 host_os=$host_os  
12529    
12530  # The build system.  # Compile-time system search path for libraries
12531  build_alias=$build_alias  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 build=$build  
 build_os=$build_os  
12532    
12533  # An echo program that does not interpret backslashes.  # Run-time system search path for libraries
12534  echo=$lt_echo  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12535    
12536  # The archiver.  # Fix the shell variable \$srcfile for the compiler.
12537  AR=$lt_AR  fix_srcfile_path="$fix_srcfile_path_CXX"
 AR_FLAGS=$lt_AR_FLAGS  
12538    
12539  # A C compiler.  # Set to yes if exported symbols are required.
12540  LTCC=$lt_LTCC  always_export_symbols=$always_export_symbols_CXX
12541    
12542  # A language-specific compiler.  # The commands to list exported symbols.
12543  CC=$lt_compiler_CXX  export_symbols_cmds=$lt_export_symbols_cmds_CXX
12544    
12545  # Is the compiler the GNU C compiler?  # The commands to extract the exported symbol list from a shared archive.
12546  with_gcc=$GCC_CXX  extract_expsyms_cmds=$lt_extract_expsyms_cmds
12547    
12548  # An ERE matcher.  # Symbols that should not be listed in the preloaded symbols.
12549  EGREP=$lt_EGREP  exclude_expsyms=$lt_exclude_expsyms_CXX
12550    
12551  # The linker used to build libraries.  # Symbols that must always be exported.
12552  LD=$lt_LD_CXX  include_expsyms=$lt_include_expsyms_CXX
12553    
12554  # Whether we need hard or soft links.  # ### END LIBTOOL TAG CONFIG: $tagname
 LN_S=$lt_LN_S  
12555    
12556  # A BSD-compatible nm program.  __EOF__
 NM=$lt_NM  
12557    
 # A symbol stripping program  
 STRIP=$lt_STRIP  
12558    
12559  # Used to examine libraries when file_magic_cmd begins "file"  else
12560  MAGIC_CMD=$MAGIC_CMD    # If there is no Makefile yet, we rely on a make rule to execute
12561      # `config.status --recheck' to rerun these tests and create the
12562      # libtool script then.
12563      ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12564      if test -f "$ltmain_in"; then
12565        test -f Makefile && make "$ltmain"
12566      fi
12567    fi
12568    
 # Used on cygwin: DLL creation program.  
 DLLTOOL="$DLLTOOL"  
12569    
12570  # Used on cygwin: object dumper.  ac_ext=c
12571  OBJDUMP="$OBJDUMP"  ac_cpp='$CPP $CPPFLAGS'
12572    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574    ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575    
12576  # Used on cygwin: assembler.  CC=$lt_save_CC
12577  AS="$AS"  LDCXX=$LD
12578    LD=$lt_save_LD
12579    GCC=$lt_save_GCC
12580    with_gnu_ldcxx=$with_gnu_ld
12581    with_gnu_ld=$lt_save_with_gnu_ld
12582    lt_cv_path_LDCXX=$lt_cv_path_LD
12583    lt_cv_path_LD=$lt_save_path_LD
12584    lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12585    lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12586    
12587  # The name of the directory that contains temporary libtool files.          else
12588  objdir=$objdir            tagname=""
12589            fi
12590            ;;
12591    
12592  # How to create reloadable object files.        F77)
12593  reload_flag=$lt_reload_flag          if test -n "$F77" && test "X$F77" != "Xno"; then
 reload_cmds=$lt_reload_cmds  
12594    
12595  # How to pass a linker flag through the compiler.  ac_ext=f
12596  wl=$lt_lt_prog_compiler_wl_CXX  ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12597    ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598    ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12599    
 # Object file suffix (normally "o").  
 objext="$ac_objext"  
12600    
12601  # Old archive suffix (normally "a").  archive_cmds_need_lc_F77=no
12602  libext="$libext"  allow_undefined_flag_F77=
12603    always_export_symbols_F77=no
12604    archive_expsym_cmds_F77=
12605    export_dynamic_flag_spec_F77=
12606    hardcode_direct_F77=no
12607    hardcode_libdir_flag_spec_F77=
12608    hardcode_libdir_flag_spec_ld_F77=
12609    hardcode_libdir_separator_F77=
12610    hardcode_minus_L_F77=no
12611    hardcode_automatic_F77=no
12612    module_cmds_F77=
12613    module_expsym_cmds_F77=
12614    link_all_deplibs_F77=unknown
12615    old_archive_cmds_F77=$old_archive_cmds
12616    no_undefined_flag_F77=
12617    whole_archive_flag_spec_F77=
12618    enable_shared_with_static_runtimes_F77=no
12619    
12620  # Shared library suffix (normally ".so").  # Source file extension for f77 test sources.
12621  shrext_cmds='$shrext_cmds'  ac_ext=f
12622    
12623  # Executable file suffix (normally "").  # Object file extension for compiled f77 test sources.
12624  exeext="$exeext"  objext=o
12625    objext_F77=$objext
12626    
12627  # Additional compiler flags for building library objects.  # Code to be used in simple compile tests
12628  pic_flag=$lt_lt_prog_compiler_pic_CXX  lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 pic_mode=$pic_mode  
12629    
12630  # What is the maximum length of a command?  # Code to be used in simple link tests
12631  max_cmd_len=$lt_cv_sys_max_cmd_len  lt_simple_link_test_code="      program t\n      end\n"
12632    
12633  # Does compiler simultaneously support -c and -o options?  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX  
12634    
12635  # Must we lock files when doing compilation?  # If no C compiler was specified, use CC.
12636  need_locks=$lt_need_locks  LTCC=${LTCC-"$CC"}
12637    
12638  # Do we need the lib prefix for modules?  # If no C compiler flags were specified, use CFLAGS.
12639  need_lib_prefix=$need_lib_prefix  LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12640    
12641  # Do we need a version for libraries?  # Allow CC to be a program name with arguments.
12642  need_version=$need_version  compiler=$CC
12643    
 # Whether dlopen is supported.  
 dlopen_support=$enable_dlopen  
12644    
12645  # Whether dlopen of programs is supported.  # save warnings/boilerplate of simple test code
12646  dlopen_self=$enable_dlopen_self  ac_outfile=conftest.$ac_objext
12647    printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12648    eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12649    _lt_compiler_boilerplate=`cat conftest.err`
12650    $rm conftest*
12651    
12652  # Whether dlopen of statically linked programs is supported.  ac_outfile=conftest.$ac_objext
12653  dlopen_self_static=$enable_dlopen_self_static  printf "$lt_simple_link_test_code" >conftest.$ac_ext
12654    eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12655    _lt_linker_boilerplate=`cat conftest.err`
12656    $rm conftest*
12657    
 # Compiler flag to prevent dynamic linking.  
 link_static_flag=$lt_lt_prog_compiler_static_CXX  
12658    
12659  # Compiler flag to turn off builtin functions.  # Allow CC to be a program name with arguments.
12660  no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX  lt_save_CC="$CC"
12661    CC=${F77-"f77"}
12662    compiler=$CC
12663    compiler_F77=$CC
12664    for cc_temp in $compiler""; do
12665      case $cc_temp in
12666        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12667        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12668        \-*) ;;
12669        *) break;;
12670      esac
12671    done
12672    cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12673    
 # Compiler flag to allow reflexive dlopens.  
 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX  
12674    
12675  # Compiler flag to generate shared objects directly from archives.  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12676  whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12677    echo "$as_me:$LINENO: result: $can_build_shared" >&5
12678    echo "${ECHO_T}$can_build_shared" >&6
12679    
12680  # Compiler flag to generate thread-safe objects.  echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12681  thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX  echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12682    test "$can_build_shared" = "no" && enable_shared=no
12683    
12684  # Library versioning type.  # On AIX, shared libraries and static libraries use the same namespace, and
12685  version_type=$version_type  # are all built from PIC.
12686    case $host_os in
12687    aix3*)
12688      test "$enable_shared" = yes && enable_static=no
12689      if test -n "$RANLIB"; then
12690        archive_cmds="$archive_cmds~\$RANLIB \$lib"
12691        postinstall_cmds='$RANLIB $lib'
12692      fi
12693      ;;
12694    aix4* | aix5*)
12695      if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12696        test "$enable_shared" = yes && enable_static=no
12697      fi
12698      ;;
12699    esac
12700    echo "$as_me:$LINENO: result: $enable_shared" >&5
12701    echo "${ECHO_T}$enable_shared" >&6
12702    
12703  # Format of library name prefix.  echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12704  libname_spec=$lt_libname_spec  echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12705    # Make sure either enable_shared or enable_static is yes.
12706    test "$enable_shared" = yes || enable_static=yes
12707    echo "$as_me:$LINENO: result: $enable_static" >&5
12708    echo "${ECHO_T}$enable_static" >&6
12709    
12710  # List of archive names.  First name is the real one, the rest are links.  GCC_F77="$G77"
12711  # The last name is the one that the linker finds with -lNAME.  LD_F77="$LD"
 library_names_spec=$lt_library_names_spec  
12712    
12713  # The coded name of the library, if different from the real name.  lt_prog_compiler_wl_F77=
12714  soname_spec=$lt_soname_spec  lt_prog_compiler_pic_F77=
12715    lt_prog_compiler_static_F77=
12716    
12717  # Commands used to build and install an old-style archive.  echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12718  RANLIB=$lt_RANLIB  echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 old_archive_cmds=$lt_old_archive_cmds_CXX  
 old_postinstall_cmds=$lt_old_postinstall_cmds  
 old_postuninstall_cmds=$lt_old_postuninstall_cmds  
12719    
12720  # Create an old-style archive from a shared archive.    if test "$GCC" = yes; then
12721  old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX      lt_prog_compiler_wl_F77='-Wl,'
12722        lt_prog_compiler_static_F77='-static'
12723    
12724  # Create a temporary old-style archive to link instead of a shared archive.      case $host_os in
12725  old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX        aix*)
12726          # All AIX code is PIC.
12727          if test "$host_cpu" = ia64; then
12728            # AIX 5 now supports IA64 processor
12729            lt_prog_compiler_static_F77='-Bstatic'
12730          fi
12731          ;;
12732    
12733  # Commands used to build and install a shared archive.      amigaos*)
12734  archive_cmds=$lt_archive_cmds_CXX        # FIXME: we need at least 68020 code to build shared libraries, but
12735  archive_expsym_cmds=$lt_archive_expsym_cmds_CXX        # adding the `-m68020' flag to GCC prevents building anything better,
12736  postinstall_cmds=$lt_postinstall_cmds        # like `-m68040'.
12737  postuninstall_cmds=$lt_postuninstall_cmds        lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12738          ;;
12739    
12740  # Commands used to build a loadable module (assumed same as above if empty)      beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12741  module_cmds=$lt_module_cmds_CXX        # PIC is the default for these OSes.
12742  module_expsym_cmds=$lt_module_expsym_cmds_CXX        ;;
12743    
12744  # Commands to strip libraries.      mingw* | pw32* | os2*)
12745  old_striplib=$lt_old_striplib        # This hack is so that the source file can tell whether it is being
12746  striplib=$lt_striplib        # built for inclusion in a dll (and should export symbols for example).
12747          lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12748          ;;
12749    
12750  # Dependencies to place before the objects being linked to create a      darwin* | rhapsody*)
12751  # shared library.        # PIC is the default on this platform
12752  predep_objects=$lt_predep_objects_CXX        # Common symbols not allowed in MH_DYLIB files
12753          lt_prog_compiler_pic_F77='-fno-common'
12754          ;;
12755    
12756  # Dependencies to place after the objects being linked to create a      interix3*)
12757  # shared library.        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12758  postdep_objects=$lt_postdep_objects_CXX        # Instead, we relocate shared libraries at runtime.
12759          ;;
12760    
12761  # Dependencies to place before the objects being linked to create a      msdosdjgpp*)
12762  # shared library.        # Just because we use GCC doesn't mean we suddenly get shared libraries
12763  predeps=$lt_predeps_CXX        # on systems that don't support them.
12764          lt_prog_compiler_can_build_shared_F77=no
12765          enable_shared=no
12766          ;;
12767    
12768  # Dependencies to place after the objects being linked to create a      sysv4*MP*)
12769  # shared library.        if test -d /usr/nec; then
12770  postdeps=$lt_postdeps_CXX          lt_prog_compiler_pic_F77=-Kconform_pic
12771          fi
12772          ;;
12773    
12774  # The library search path used internally by the compiler when linking      hpux*)
12775  # a shared library.        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12776  compiler_lib_search_path=$lt_compiler_lib_search_path_CXX        # not for PA HP-UX.
12777          case $host_cpu in
12778          hppa*64*|ia64*)
12779            # +Z the default
12780            ;;
12781          *)
12782            lt_prog_compiler_pic_F77='-fPIC'
12783            ;;
12784          esac
12785          ;;
12786    
12787  # Method to check whether dependent libraries are shared objects.      *)
12788  deplibs_check_method=$lt_deplibs_check_method        lt_prog_compiler_pic_F77='-fPIC'
12789          ;;
12790        esac
12791      else
12792        # PORTME Check for flag to pass linker flags through the system compiler.
12793        case $host_os in
12794        aix*)
12795          lt_prog_compiler_wl_F77='-Wl,'
12796          if test "$host_cpu" = ia64; then
12797            # AIX 5 now supports IA64 processor
12798            lt_prog_compiler_static_F77='-Bstatic'
12799          else
12800            lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12801          fi
12802          ;;
12803          darwin*)
12804            # PIC is the default on this platform
12805            # Common symbols not allowed in MH_DYLIB files
12806           case $cc_basename in
12807             xlc*)
12808             lt_prog_compiler_pic_F77='-qnocommon'
12809             lt_prog_compiler_wl_F77='-Wl,'
12810             ;;
12811           esac
12812           ;;
12813    
12814  # Command to use when deplibs_check_method == file_magic.      mingw* | pw32* | os2*)
12815  file_magic_cmd=$lt_file_magic_cmd        # This hack is so that the source file can tell whether it is being
12816          # built for inclusion in a dll (and should export symbols for example).
12817          lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12818          ;;
12819    
12820  # Flag that allows shared libraries with undefined symbols to be built.      hpux9* | hpux10* | hpux11*)
12821  allow_undefined_flag=$lt_allow_undefined_flag_CXX        lt_prog_compiler_wl_F77='-Wl,'
12822          # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12823          # not for PA HP-UX.
12824          case $host_cpu in
12825          hppa*64*|ia64*)
12826            # +Z the default
12827            ;;
12828          *)
12829            lt_prog_compiler_pic_F77='+Z'
12830            ;;
12831          esac
12832          # Is there a better lt_prog_compiler_static that works with the bundled CC?
12833          lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12834          ;;
12835    
12836  # Flag that forces no undefined symbols.      irix5* | irix6* | nonstopux*)
12837  no_undefined_flag=$lt_no_undefined_flag_CXX        lt_prog_compiler_wl_F77='-Wl,'
12838          # PIC (with -KPIC) is the default.
12839          lt_prog_compiler_static_F77='-non_shared'
12840          ;;
12841    
12842  # Commands used to finish a libtool library installation in a directory.      newsos6)
12843  finish_cmds=$lt_finish_cmds        lt_prog_compiler_pic_F77='-KPIC'
12844          lt_prog_compiler_static_F77='-Bstatic'
12845          ;;
12846    
12847  # Same as above, but a single script fragment to be evaled but not shown.      linux*)
12848  finish_eval=$lt_finish_eval        case $cc_basename in
12849          icc* | ecc*)
12850            lt_prog_compiler_wl_F77='-Wl,'
12851            lt_prog_compiler_pic_F77='-KPIC'
12852            lt_prog_compiler_static_F77='-static'
12853            ;;
12854          pgcc* | pgf77* | pgf90* | pgf95*)
12855            # Portland Group compilers (*not* the Pentium gcc compiler,
12856            # which looks to be a dead project)
12857            lt_prog_compiler_wl_F77='-Wl,'
12858            lt_prog_compiler_pic_F77='-fpic'
12859            lt_prog_compiler_static_F77='-Bstatic'
12860            ;;
12861          ccc*)
12862            lt_prog_compiler_wl_F77='-Wl,'
12863            # All Alpha code is PIC.
12864            lt_prog_compiler_static_F77='-non_shared'
12865            ;;
12866          esac
12867          ;;
12868    
12869  # Take the output of nm and produce a listing of raw symbols and C names.      osf3* | osf4* | osf5*)
12870  global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe        lt_prog_compiler_wl_F77='-Wl,'
12871          # All OSF/1 code is PIC.
12872          lt_prog_compiler_static_F77='-non_shared'
12873          ;;
12874    
12875  # Transform the output of nm in a proper C declaration      solaris*)
12876  global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl        lt_prog_compiler_pic_F77='-KPIC'
12877          lt_prog_compiler_static_F77='-Bstatic'
12878          case $cc_basename in
12879          f77* | f90* | f95*)
12880            lt_prog_compiler_wl_F77='-Qoption ld ';;
12881          *)
12882            lt_prog_compiler_wl_F77='-Wl,';;
12883          esac
12884          ;;
12885    
12886  # Transform the output of nm in a C name address pair      sunos4*)
12887  global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address        lt_prog_compiler_wl_F77='-Qoption ld '
12888          lt_prog_compiler_pic_F77='-PIC'
12889          lt_prog_compiler_static_F77='-Bstatic'
12890          ;;
12891    
12892  # This is the shared library runtime path variable.      sysv4 | sysv4.2uw2* | sysv4.3*)
12893  runpath_var=$runpath_var        lt_prog_compiler_wl_F77='-Wl,'
12894          lt_prog_compiler_pic_F77='-KPIC'
12895          lt_prog_compiler_static_F77='-Bstatic'
12896          ;;
12897    
12898  # This is the shared library path variable.      sysv4*MP*)
12899  shlibpath_var=$shlibpath_var        if test -d /usr/nec ;then
12900            lt_prog_compiler_pic_F77='-Kconform_pic'
12901            lt_prog_compiler_static_F77='-Bstatic'
12902          fi
12903          ;;
12904    
12905  # Is shlibpath searched before the hard-coded library search path?      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12906  shlibpath_overrides_runpath=$shlibpath_overrides_runpath        lt_prog_compiler_wl_F77='-Wl,'
12907          lt_prog_compiler_pic_F77='-KPIC'
12908          lt_prog_compiler_static_F77='-Bstatic'
12909          ;;
12910    
12911  # How to hardcode a shared library path into an executable.      unicos*)
12912  hardcode_action=$hardcode_action_CXX        lt_prog_compiler_wl_F77='-Wl,'
12913          lt_prog_compiler_can_build_shared_F77=no
12914          ;;
12915    
12916  # Whether we should hardcode library paths into libraries.      uts4*)
12917  hardcode_into_libs=$hardcode_into_libs        lt_prog_compiler_pic_F77='-pic'
12918          lt_prog_compiler_static_F77='-Bstatic'
12919          ;;
12920    
12921  # Flag to hardcode \$libdir into a binary during linking.      *)
12922  # This must work even if \$libdir does not exist.        lt_prog_compiler_can_build_shared_F77=no
12923  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX        ;;
12924        esac
12925      fi
12926    
12927  # If ld is used when linking, flag to hardcode \$libdir into  echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12928  # a binary during linking. This must work even if \$libdir does  echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 # not exist.  
 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX  
12929    
12930  # Whether we need a single -rpath flag with a separated argument.  #
12931  hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX  # Check to make sure the PIC flag actually works.
12932    #
12933    if test -n "$lt_prog_compiler_pic_F77"; then
12934    
12935  # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12936  # resulting binary.  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12937  hardcode_direct=$hardcode_direct_CXX  if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12938      echo $ECHO_N "(cached) $ECHO_C" >&6
12939    else
12940      lt_prog_compiler_pic_works_F77=no
12941      ac_outfile=conftest.$ac_objext
12942       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12943       lt_compiler_flag="$lt_prog_compiler_pic_F77"
12944       # Insert the option either (1) after the last *FLAGS variable, or
12945       # (2) before a word containing "conftest.", or (3) at the end.
12946       # Note that $ac_compile itself does not contain backslashes and begins
12947       # with a dollar sign (not a hyphen), so the echo should work correctly.
12948       # The option is referenced via a variable to avoid confusing sed.
12949       lt_compile=`echo "$ac_compile" | $SED \
12950       -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12951       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952       -e 's:$: $lt_compiler_flag:'`
12953       (eval echo "\"\$as_me:12953: $lt_compile\"" >&5)
12954       (eval "$lt_compile" 2>conftest.err)
12955       ac_status=$?
12956       cat conftest.err >&5
12957       echo "$as_me:12957: \$? = $ac_status" >&5
12958       if (exit $ac_status) && test -s "$ac_outfile"; then
12959         # The compiler can only warn and ignore the option if not recognized
12960         # So say no if there are warnings other than the usual output.
12961         $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12962         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12963         if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12964           lt_prog_compiler_pic_works_F77=yes
12965         fi
12966       fi
12967       $rm conftest*
12968    
12969  # Set to yes if using the -LDIR flag during linking hardcodes DIR into the  fi
12970  # resulting binary.  echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12971  hardcode_minus_L=$hardcode_minus_L_CXX  echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12972    
12973  # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into  if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12974  # the resulting binary.      case $lt_prog_compiler_pic_F77 in
12975  hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX       "" | " "*) ;;
12976         *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12977         esac
12978    else
12979        lt_prog_compiler_pic_F77=
12980         lt_prog_compiler_can_build_shared_F77=no
12981    fi
12982    
12983  # Set to yes if building a shared library automatically hardcodes DIR into the library  fi
12984  # and all subsequent libraries and executables linked against it.  case $host_os in
12985  hardcode_automatic=$hardcode_automatic_CXX    # For platforms which do not support PIC, -DPIC is meaningless:
12986      *djgpp*)
12987        lt_prog_compiler_pic_F77=
12988        ;;
12989      *)
12990        lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12991        ;;
12992    esac
12993    
12994  # Variables whose values should be saved in libtool wrapper scripts and  #
12995  # restored at relink time.  # Check to make sure the static flag actually works.
12996  variables_saved_for_relink="$variables_saved_for_relink"  #
12997    wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12998    echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12999    echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13000    if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13001      echo $ECHO_N "(cached) $ECHO_C" >&6
13002    else
13003      lt_prog_compiler_static_works_F77=no
13004       save_LDFLAGS="$LDFLAGS"
13005       LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13006       printf "$lt_simple_link_test_code" > conftest.$ac_ext
13007       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13008         # The linker can only warn and ignore the option if not recognized
13009         # So say no if there are warnings
13010         if test -s conftest.err; then
13011           # Append any errors to the config.log.
13012           cat conftest.err 1>&5
13013           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13014           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13015           if diff conftest.exp conftest.er2 >/dev/null; then
13016             lt_prog_compiler_static_works_F77=yes
13017           fi
13018         else
13019           lt_prog_compiler_static_works_F77=yes
13020         fi
13021       fi
13022       $rm conftest*
13023       LDFLAGS="$save_LDFLAGS"
13024    
13025  # Whether libtool must link a program against all its dependency libraries.  fi
13026  link_all_deplibs=$link_all_deplibs_CXX  echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13027    echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13028    
13029  # Compile-time system search path for libraries  if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13030  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec      :
13031    else
13032        lt_prog_compiler_static_F77=
13033    fi
13034    
 # Run-time system search path for libraries  
 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec  
13035    
13036  # Fix the shell variable \$srcfile for the compiler.  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13037  fix_srcfile_path="$fix_srcfile_path_CXX"  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13038    if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13039      echo $ECHO_N "(cached) $ECHO_C" >&6
13040    else
13041      lt_cv_prog_compiler_c_o_F77=no
13042       $rm -r conftest 2>/dev/null
13043       mkdir conftest
13044       cd conftest
13045       mkdir out
13046       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13047    
13048  # Set to yes if exported symbols are required.     lt_compiler_flag="-o out/conftest2.$ac_objext"
13049  always_export_symbols=$always_export_symbols_CXX     # Insert the option either (1) after the last *FLAGS variable, or
13050       # (2) before a word containing "conftest.", or (3) at the end.
13051       # Note that $ac_compile itself does not contain backslashes and begins
13052       # with a dollar sign (not a hyphen), so the echo should work correctly.
13053       lt_compile=`echo "$ac_compile" | $SED \
13054       -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13055       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13056       -e 's:$: $lt_compiler_flag:'`
13057       (eval echo "\"\$as_me:13057: $lt_compile\"" >&5)
13058       (eval "$lt_compile" 2>out/conftest.err)
13059       ac_status=$?
13060       cat out/conftest.err >&5
13061       echo "$as_me:13061: \$? = $ac_status" >&5
13062       if (exit $ac_status) && test -s out/conftest2.$ac_objext
13063       then
13064         # The compiler can only warn and ig