Ignore:
Timestamp:
Aug 16, 2003, 6:41:03 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/ltconfig

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r604 r605  
    22
    33# ltconfig - Create a system-specific libtool.
    4 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
     4# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
     5# Free Software Foundation, Inc.
    56# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    67#
     
    181182PROGRAM=ltconfig
    182183PACKAGE=libtool
    183 VERSION=1.4a
    184 TIMESTAMP=" (1.641.2.122 2000/09/30 05:27:52)"
     184VERSION=1.4a-GCC3.0
     185TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)"
    185186ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    186187ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     
    217218libext=a
    218219cache_file=
     220max_cmd_len=
    219221
    220222## Dependencies to place before and after the object being linked:
     
    295297for option
    296298do
    297   case "$option" in
     299  case $option in
    298300  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    299301  *) optarg= ;;
     
    307309  fi
    308310
    309   case "$option" in
     311  case $option in
    310312  --help) cat <<EOM
    311313Usage: $progname [OPTION]... LTMAIN [HOST]
     
    423425if test -n "$tagname"; then
    424426  # Check whether tagname contains only valid characters
    425   case "$tagname" in
    426   *[!-_A-Za-z0-9,/]*)
     427  case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
     428  "") ;;
     429  *)
    427430    echo "$progname: invalid tag name: $tagname" 1>&2
    428431    exit 1
     
    453456for arg
    454457do
    455   case "$arg" in
     458  case $arg in
    456459  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
    457460  ltconfig_args="$ltconfig_args '$arg'" ;;
     
    536539
    537540  host_alias=$host
    538   case "$host_alias" in
     541  case $host_alias in
    539542  "")
    540543    # Force config.guess to use the C compiler.
     
    564567
    565568  build_alias=$build
    566   case "$build_alias" in
     569  case $build_alias in
    567570  NONE)
    568571    case $nonopt in
     
    599602
    600603# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
    601 case "$host_os" in
     604case $host_os in
    602605linux-gnu*) ;;
    603606linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
    604607esac
    605608
    606 case "$host_os" in
     609case $host_os in
    607610aix3*)
    608611  # AIX sometimes has problems with the GCC collect2 program.  For some
     
    673676# the associated values are set (in the cache) correctly too.
    674677echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
    675 echo "$progname:675:checking for $compiler option to produce PIC" 1>&5
     678echo "$progname:678:checking for $compiler option to produce PIC" 1>&5
    676679
    677680if test -z "$ac_cv_prog_cc_pic"; then
     
    682685  # Check to make sure the pic_flag actually works.
    683686  echo $ac_n "checking if $compiler PIC flag $ac_cv_prog_cc_pic works... $ac_c" 1>&6
    684   echo "$progname:684:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5
     687  echo "$progname:687:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5
    685688  if test "X${ac_cv_prog_cc_pic_works+set}" = Xset && \
    686689     test "X${ac_cv_prog_cc_pic_works}" != X; then
     
    692695    save_CFLAGS="$CFLAGS"
    693696    CFLAGS="$CFLAGS $ac_cv_prog_cc_pic -DPIC"
    694     if { (eval echo $progname:694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
     697    if { (eval echo $progname:697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
    695698      # Append any warnings to the config.log.
    696699      cat conftest.err 1>&5
    697700
    698       case "$host_os" in
     701      case $host_os in
    699702      hpux9* | hpux10* | hpux11*)
    700703        # On HP-UX, both CC and GCC only warn that PIC is supported... then
     
    744747
    745748echo $ac_n "checking if $compiler static flag $ac_cv_prog_cc_static works... $ac_c" 1>&6
    746 echo "$progname:746: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5
     749echo "$progname:749: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5
    747750if test "X${ac_cv_prog_cc_static_works+set}" = Xset && \
    748751   test "X${ac_cv_prog_cc_static_works}" != X; then
     
    753756  save_LDFLAGS="$LDFLAGS"
    754757  LDFLAGS="$LDFLAGS $ac_cv_prog_cc_static"
    755   if { (eval echo $progname:755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     758  if { (eval echo $progname:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    756759    ac_cv_prog_cc_static_works=yes
    757760  else
     
    774777can_build_shared="$ac_cv_prog_cc_can_build_shared"
    775778
     779# find the maximum length of command line arguments
     780echo "$progname:780: finding the maximum length of command line arguments" 1>&5
     781echo $ac_n "finding the maximum length of command line arguments... $ac_c" 1>&6
     782if test "${lt_cv_sys_max_cmd_len+set}" = set; then
     783  echo $ac_n "(cached) $ac_c" 1>&6
     784else
     785  i=0
     786  testring="ABCD"
     787  # If test is not a shell built-in, we'll probably end up computing a
     788  # maximum length that is only half of the actual maximum length, but
     789  # we can't tell.
     790  while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
     791             = "XX$testring" &&
     792          new_result=`expr "X$testring" : ".*" 2>&1` &&
     793          lt_cv_sys_max_cmd_len=$new_result &&
     794          test $i != 17 # 1/2 MB should be enough
     795  do
     796    i=`expr $i + 1`
     797    testring=$testring$testring
     798  done
     799  testring=
     800  # add a significant safety factor because C++ compilers can tack on massive amounts
     801  # of additional arguments before passing them to the linker.  1/4 should be good.
     802  len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     803  lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
     804fi
     805echo "$progname:@lineno@: result: $lt_cv_sys_max_cmd_len" 1>&5
     806echo "${ac_t}$lt_cv_sys_max_cmd_len" 1>&6
     807
     808if test -n $lt_cv_sys_max_cmd_len ; then
     809  max_cmd_len=$lt_cv_sys_max_cmd_len
     810else
     811  max_cmd_len=none
     812fi
     813
    776814# Check to see if options -o and -c are simultaneously supported by compiler
    777815echo $ac_n "checking if $compiler supports -c -o file.$objext... $ac_c" 1>&6
    778 $rm -r conftest 2>/dev/null
    779 mkdir conftest
    780 cd conftest
    781 $rm conftest*
    782 echo $lt_simple_compile_test_code > conftest.$ac_ext
    783 mkdir out
    784 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
    785 # that will create temporary files in the current directory regardless of
    786 # the output directory.  Thus, making CWD read-only will cause this test
    787 # to fail, enabling locking or at least warning the user not to do parallel
    788 # builds.
    789 chmod -w .
    790 save_CFLAGS="$CFLAGS"
    791 CFLAGS="$CFLAGS -o out/conftest2.$objext"
    792 echo "$progname:792: checking if $compiler supports -c -o file.$objext" >&5
    793 if { (eval echo $progname:793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then
    794 
    795   # The compiler can only warn and ignore the option if not recognized
    796   # So say no if there are warnings
    797     if test -s out/conftest.err; then
    798       echo "$ac_t"no 1>&6
    799       compiler_c_o=no
    800     else
    801       echo "$ac_t"yes 1>&6
    802       compiler_c_o=yes
    803     fi
    804 else
    805   # Append any errors to the config.log.
    806   cat out/conftest.err 1>&5
    807   compiler_c_o=no
    808   echo "$ac_t"no 1>&6
    809 fi
    810 CFLAGS="$save_CFLAGS"
    811 chmod u+w .
    812 $rm conftest* out/*
    813 rmdir out
    814 cd ..
    815 rmdir conftest
    816 $rm -r conftest 2>/dev/null
     816if test "${lt_cv_compiler_c_o+set}" = set; then
     817  echo $ac_n "(cached) $ac_c" 1>&6
     818else
     819  $rm -r conftest 2>/dev/null
     820  mkdir conftest
     821  cd conftest
     822  $rm conftest*
     823  echo $lt_simple_compile_test_code > conftest.$ac_ext
     824  mkdir out
     825  # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
     826  # that will create temporary files in the current directory regardless of
     827  # the output directory.  Thus, making CWD read-only will cause this test
     828  # to fail, enabling locking or at least warning the user not to do parallel
     829  # builds.
     830  chmod -w .
     831  save_CFLAGS="$CFLAGS"
     832  CFLAGS="$CFLAGS -o out/conftest2.$objext"
     833  echo "$progname:833: checking if $compiler supports -c -o file.$objext" >&5
     834  if { (eval echo $progname:834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then
     835
     836    # The compiler can only warn and ignore the option if not recognized
     837    # So say no if there are warnings
     838      if test -s out/conftest.err; then
     839        lt_cv_compiler_c_o=no
     840      else
     841        lt_cv_compiler_c_o=yes
     842      fi
     843  else
     844    # Append any errors to the config.log.
     845    cat out/conftest.err 1>&5
     846    lt_cv_compiler_c_o=no
     847  fi
     848  CFLAGS="$save_CFLAGS"
     849  chmod u+w .
     850  $rm conftest* out/*
     851  rmdir out
     852  cd ..
     853  rmdir conftest
     854  $rm -r conftest 2>/dev/null
     855fi
     856compiler_c_o=$lt_cv_compiler_c_o
     857echo "${ac_t}$compiler_c_o" 1>&6
    817858
    818859# Check to see if we can do hard links to lock some files if needed
     
    844885  save_CFLAGS="$CFLAGS"
    845886  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
    846   echo "$progname:846: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
    847   if { (eval echo $progname:847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
     887  echo "$progname:887: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
     888  if { (eval echo $progname:888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
    848889
    849890    # The compiler can only warn and ignore the option if not recognized
     
    914955fi
    915956
     957case $reload_flag in
     958"" | " "*) ;;
     959*) reload_flag=" $reload_flag" ;;
     960esac
    916961reload_cmds='$LD$reload_flag -o $output$reload_objs'
    917962test -z "$deplibs_check_method" && deplibs_check_method=unknown
     
    933978
    934979echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
    935 case "$host_os" in
     980case $host_os in
    936981aix3*)
    937982  version_type=linux
     
    939984  shlibpath_var=LIBPATH
    940985
    941   # AIX has no versioning support, so we append a major version to the name.
     986  # AIX 3 has no versioning support, so we append a major version to the name.
    942987  soname_spec='${libname}${release}.so$major'
    943988  ;;
    944989
    945 aix4*)
     990aix4* | aix5*)
    946991  version_type=linux
    947   # AIX has no versioning support, so currently we can not hardcode correct
    948   # soname into executable. Probably we can add versioning support to
    949   # collect2, so additional links can be useful in future.
    950   # We preserve .a as extension for shared libraries though AIX4.2
    951   # and later linker supports .so
    952   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
    953   shlibpath_var=LIBPATH
     992  if test "$host_cpu" = ia64; then
     993    # AIX 5 supports IA64
     994    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     995    shlibpath_var=LD_LIBRARY_PATH
     996  else
     997    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
     998    # soname into executable. Probably we can add versioning support to
     999    # collect2, so additional links can be useful in future.
     1000    # We preserve .a as extension for shared libraries though AIX4.2
     1001    # and later linker supports .so
     1002    if test "$aix_use_runtimelinking" = yes; then
     1003      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
     1004      # lib<name>.a to let people know that these are not typical AIX shared libraries.
     1005      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     1006    else
     1007      # We preserve .a as extension for shared libraries though AIX4.2
     1008      # and later when we are not doing run time linking.
     1009      library_names_spec='${libname}${release}.a $libname.a'
     1010      soname_spec='${libname}${release}.so$major'
     1011    fi
     1012    # If we're using GNU nm, then we don't want the "-C" option.
     1013    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     1014    if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then
     1015      export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     1016    else
     1017      export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
     1018    fi
     1019    shlibpath_var=LIBPATH
     1020    deplibs_check_method=pass_all
     1021    case $host_os in
     1022    aix4 | aix4.[01] | aix4.[01].*)
     1023      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
     1024           echo ' yes '
     1025           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
     1026        :
     1027      else
     1028        # With GCC up to 2.95.x, collect2 would create an import file
     1029        # for dependence libraries.  The import file would start with
     1030        # the line `#! .'.  This would cause the generated library to
     1031        # depend on `.', always an invalid library.  This was fixed in
     1032        # development snapshots of GCC prior to 3.0.
     1033        can_build_shared=no
     1034      fi
     1035      ;;
     1036    esac
     1037  fi
    9541038  ;;
    9551039
     
    9881072  need_version=no
    9891073  need_lib_prefix=no
    990   if test "$with_gcc" = yes; then
     1074  case $with_gcc,$host_os in
     1075  yes,cygwin*)
     1076    library_names_spec='$libname.dll.a'
     1077    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
     1078    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i; echo \$dlname'\''`~
     1079      dldir=$destdir/`dirname \$dlpath`~
     1080      test -d \$dldir || mkdir -p \$dldir~
     1081      $install_prog .libs/$dlname \$dldir/$dlname'
     1082    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
     1083      dlpath=$dir/\$dldll; $rm \$dlpath'
     1084    ;;
     1085  yes,mingw*)
    9911086    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
    992   else
     1087    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
     1088    ;;
     1089  yes,pw32*)
     1090    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
     1091;;
     1092  *)
    9931093    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
    994   fi
     1094    ;;
     1095  esac
    9951096  dynamic_linker='Win32 ld.exe'
    9961097  # FIXME: first we should search . and the directory the executable is in
     
    10001101  ;;
    10011102
     1103darwin* | rhapsody*)
     1104  dynamic_linker="$host_os dyld"
     1105  version_type=darwin
     1106  need_lib_prefix=no
     1107  need_version=no
     1108  library_names_spec='${libname}${release}${versuffix}.`test .$module = .yes && echo so || echo dylib` ${libname}${release}${major}.$`test .$module = .yes && echo so || echo dylib` ${libname}.`test .$module = .yes && echo so || echo dylib`'
     1109  soname_spec='${libname}${release}${major}.`test .$module = .yes && echo so || echo dylib`'
     1110  shlibpath_overrides_runpath=yes
     1111  shlibpath_var=DYLD_LIBRARY_PATH
     1112  ;;
     1113
    10021114freebsd1*)
    10031115  dynamic_linker=no
     
    10071119  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
    10081120  version_type=freebsd-$objformat
    1009   case "$version_type" in
     1121  case $version_type in
    10101122    freebsd-elf*)
    10111123      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
    10121124      need_version=no
     1125      need_lc=no
    10131126      need_lib_prefix=no
    10141127      ;;
     
    10191132  esac
    10201133  shlibpath_var=LD_LIBRARY_PATH
    1021   case "$host_os" in
     1134  case $host_os in
    10221135  freebsd2*)
    10231136    shlibpath_overrides_runpath=yes
     
    10431156  # Give a soname corresponding to the major version so that dld.sl refuses to
    10441157  # link against other versions.
    1045   dynamic_linker="$host_os dld.sl"
    10461158  version_type=sunos
    10471159  need_lib_prefix=no
    10481160  need_version=no
    1049   shlibpath_var=SHLIB_PATH
    1050   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    1051   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
    1052   soname_spec='${libname}${release}.sl$major'
     1161  case "$host_cpu" in
     1162  ia64*)
     1163    dynamic_linker="$host_os dld.so"
     1164    shlibpath_var=LD_LIBRARY_PATH
     1165    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     1166    soname_spec='${libname}${release}.so$major'
     1167    shlibpath_var=LD_LIBRARY_PATH
     1168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
     1169    if test "X$HPUX_IA64_MODE" = X32; then
     1170      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32/usr/local/lib"
     1171    else
     1172      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
     1173    fi
     1174    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     1175    ;;
     1176  *)
     1177    dynamic_linker="$host_os dld.sl"
     1178    shlibpath_var=SHLIB_PATH
     1179    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
     1180    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
     1181    soname_spec='${libname}${release}.sl$major'
     1182    ;;
     1183  esac
    10531184  # HP-UX runs *really* slowly unless shared libraries are mode 555.
    10541185  postinstall_cmds='chmod 555 $lib'
     
    10561187
    10571188irix5* | irix6*)
     1189  if test "$with_gnu_ld" = yes; then
     1190    version_type=linux
     1191  else
     1192    version_type=irix
     1193  fi
    10581194  version_type=irix
    10591195  need_lib_prefix=no
     
    10611197  soname_spec='${libname}${release}.so$major'
    10621198  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
    1063   case "$host_os" in
     1199  case $host_os in
    10641200  irix5*)
    10651201    libsuff= shlibsuff=
    10661202    ;;
    10671203  *)
    1068     case "$LD" in # libtool.m4 will add one of these switches to LD
    1069     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
    1070     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
    1071     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
     1204    case $LD in # libtool.m4 will add one of these switches to LD
     1205    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
     1206      libsuff= shlibsuff= libmagic=32-bit;;
     1207    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
     1208      libsuff=32 shlibsuff=N32 libmagic=N32;;
     1209    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
     1210      libsuff=64 shlibsuff=64 libmagic=64-bit;;
    10721211    *) libsuff= shlibsuff= libmagic=never-match;;
    10731212    esac
     
    11101249
    11111250netbsd*)
     1251  need_lib_prefix=no
     1252  need_version=no
    11121253  version_type=sunos
    11131254  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
     
    11231264  shlibpath_overrides_runpath=yes
    11241265  hardcode_into_libs=yes
     1266  ;;
     1267
     1268newsos6)
     1269  version_type=linux
     1270  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
     1271  shlibpath_var=LD_LIBRARY_PATH
     1272  shlibpath_overrides_runpath=yes
    11251273  ;;
    11261274
     
    11911339  soname_spec='${libname}${release}.so$major'
    11921340  shlibpath_var=LD_LIBRARY_PATH
    1193   case "$host_vendor" in
     1341  case $host_vendor in
    11941342    motorola)
    11951343      need_lib_prefix=no
     
    12521400
    12531401# Define system-specific variables.
    1254 case "$host_os" in
     1402case $host_os in
    12551403aix*)
    12561404  symcode='[BCDT]'
     
    12601408  ;;
    12611409hpux*) # Its linker distinguishes data from code symbols
    1262   global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
     1410  global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    12631411  ;;
    12641412irix*)
     
    12731421esac
    12741422
    1275 # Handle CRLF in mingw too chain
     1423# Handle CRLF in mingw tool chain
    12761424opt_cr=
    1277 case "$host_os" in
     1425case $host_os in
    12781426mingw*)
    12791427  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
     
    12901438
    12911439  # Write the raw and C identifiers.
    1292 global_symbol_pipe="sed -n -e 's/^.*[   ]\($symcode\)[  ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     1440  global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
    12931441
    12941442  # Check to see that the pipe works correctly.
     
    13041452}
    13051453#endif
    1306 main(){nm_test_var='a';nm_test_func();return(0);}
     1454int main(){nm_test_var='a';nm_test_func();return(0);}
    13071455EOF
    13081456
    1309   echo "$progname:1309: checking if global_symbol_pipe works" >&5
    1310   if { (eval echo $progname:1310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
     1457  echo "$progname:1431: checking if global_symbol_pipe works" >&5
     1458  if { (eval echo $progname:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
    13111459    # Now try to grab the symbols.
    13121460    nlist=conftest.nm
    1313     if { echo "$progname:1313: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
     1461    if { echo "$progname:1435: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
    13141462
    13151463      # Try sorting and uniquifying the output.
     
    13481496{
    13491497EOF
    1350           sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
     1498          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
    13511499          cat <<\EOF >> conftest.$ac_ext
    13521500  {0, (lt_ptr_t) 0}
     
    13631511          LIBS="conftstm.$objext"
    13641512          CFLAGS="$CFLAGS$no_builtin_flag"
    1365           if { (eval echo $progname:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     1513          if { (eval echo $progname:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    13661514            pipe_works=yes
    13671515          else
     
    14071555# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
    14081556# configure.in, otherwise build static only libraries.
    1409 case "$host_os" in
     1557case $host_os in
    14101558cygwin* | mingw* | pw32* | os2*)
    14111559  if test x$can_build_shared = xyes; then
     
    14211569# On AIX, shared libraries and static libraries use the same namespace, and
    14221570# are all built from PIC.
    1423 case "$host_os" in
     1571case $host_os in
    14241572aix3*)
    14251573  test "$enable_shared" = yes && enable_static=no
     
    14671615  lt_cv_dlopen=no lt_cv_dlopen_libs=
    14681616echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1469 echo "$progname:1469: checking for dlopen in -ldl" >&5
     1617echo "$progname:1591: checking for dlopen in -ldl" >&5
    14701618if test "X${ac_cv_lib_dl_dlopen+set}" = Xset; then
    14711619  echo $ac_n "(cached) $ac_c" 1>&6
     
    14741622LIBS="-ldl  $LIBS"
    14751623cat > conftest.$ac_ext <<EOF
    1476 #line 1476 "ltconfig"
     1624#line 1598 "ltconfig"
    14771625/* Override any gcc2 internal prototype to avoid an error.  */
    14781626/* We use char because int might match the return type of a gcc2
     
    14871635; return 0; }
    14881636EOF
    1489 if { (eval echo $progname:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1637if { (eval echo $progname:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    14901638  rm -rf conftest*
    14911639  ac_cv_lib_dl_dlopen=yes
     
    15061654  echo "$ac_t""no" 1>&6
    15071655echo $ac_n "checking for dlopen""... $ac_c" 1>&6
    1508 echo "$progname:1508: checking for dlopen" >&5
     1656echo "$progname:1630: checking for dlopen" >&5
    15091657if test "X${ac_cv_func_dlopen+set}" = Xset; then
    15101658  echo $ac_n "(cached) $ac_c" 1>&6
    15111659else
    15121660  cat > conftest.$ac_ext <<EOF
    1513 #line 1513 "ltconfig"
     1661#line 1635 "ltconfig"
    15141662/* System header to define __stub macros and hopefully few prototypes,
    15151663    which can conflict with char dlopen(); below.  */
     
    15361684; return 0; }
    15371685EOF
    1538 if { (eval echo $progname:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1686if { (eval echo $progname:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15391687  rm -rf conftest*
    15401688  ac_cv_func_dlopen=yes
     
    15531701  echo "$ac_t""no" 1>&6
    15541702echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
    1555 echo "$progname:1555: checking for dlopen in -lsvld" >&5
     1703echo "$progname:1677: checking for dlopen in -lsvld" >&5
    15561704if test "X${ac_cv_lib_svld_dlopen+set}" = Xset; then
    15571705  echo $ac_n "(cached) $ac_c" 1>&6
     
    15601708LIBS="-lsvld  $LIBS"
    15611709cat > conftest.$ac_ext <<EOF
    1562 #line 1562 "ltconfig"
     1710#line 1684 "ltconfig"
    15631711/* Override any gcc2 internal prototype to avoid an error.  */
    15641712/* We use char because int might match the return type of a gcc2
     
    15731721; return 0; }
    15741722EOF
    1575 if { (eval echo $progname:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1723if { (eval echo $progname:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    15761724  rm -rf conftest*
    15771725  ac_cv_lib_svld_dlopen=yes
     
    15921740  echo "$ac_t""no" 1>&6
    15931741echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
    1594 echo "$progname:1594: checking for dld_link in -ldld" >&5
     1742echo "$progname:1716: checking for dld_link in -ldld" >&5
    15951743if test "X${ac_cv_lib_dld_dld_link+set}" = Xset; then
    15961744  echo $ac_n "(cached) $ac_c" 1>&6
     
    15991747LIBS="-ldld  $LIBS"
    16001748cat > conftest.$ac_ext <<EOF
    1601 #line 1601 "ltconfig"
     1749#line 1723 "ltconfig"
    16021750/* Override any gcc2 internal prototype to avoid an error.  */
    16031751/* We use char because int might match the return type of a gcc2
     
    16121760; return 0; }
    16131761EOF
    1614 if { (eval echo $progname:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1762if { (eval echo $progname:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16151763  rm -rf conftest*
    16161764  ac_cv_lib_dld_dld_link=yes
     
    16311779  echo "$ac_t""no" 1>&6
    16321780echo $ac_n "checking for shl_load""... $ac_c" 1>&6
    1633 echo "$progname:1633: checking for shl_load" >&5
     1781echo "$progname:1755: checking for shl_load" >&5
    16341782if test "X${ac_cv_func_shl_load+set}" = Xset; then
    16351783  echo $ac_n "(cached) $ac_c" 1>&6
    16361784else
    16371785  cat > conftest.$ac_ext <<EOF
    1638 #line 1638 "ltconfig"
     1786#line 1760 "ltconfig"
    16391787/* System header to define __stub macros and hopefully few prototypes,
    16401788    which can conflict with char shl_load(); below.  */
     
    16611809; return 0; }
    16621810EOF
    1663 if { (eval echo $progname:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1811if { (eval echo $progname:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16641812  rm -rf conftest*
    16651813  ac_cv_func_shl_load=yes
     
    16791827  echo "$ac_t""no" 1>&6
    16801828echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    1681 echo "$progname:1681: checking for shl_load in -ldld" >&5
     1829echo "$progname:1803: checking for shl_load in -ldld" >&5
    16821830if test "X${ac_cv_lib_dld_shl_load+set}" = Xset; then
    16831831  echo $ac_n "(cached) $ac_c" 1>&6
     
    16861834LIBS="-ldld  $LIBS"
    16871835cat > conftest.$ac_ext <<EOF
    1688 #line 1688 "ltconfig"
     1836#line 1810 "ltconfig"
    16891837#include "confdefs.h"
    16901838/* Override any gcc2 internal prototype to avoid an error.  */
     
    17001848; return 0; }
    17011849EOF
    1702 if { (eval echo $progname:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1850if { (eval echo $progname:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17031851  rm -rf conftest*
    17041852  ac_cv_lib_dld_shl_load=yes
     
    17421890  fi
    17431891
    1744   case "$lt_cv_dlopen" in
     1892  case $lt_cv_dlopen in
    17451893  dlopen)
    17461894for ac_hdr in dlfcn.h; do
    17471895ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17481896echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1749 echo "$progname:1749: checking for $ac_hdr" >&5
     1897echo "$progname:1871: checking for $ac_hdr" >&5
    17501898if eval "test \"`echo 'X$''{'ac_cv_header_$ac_safe'+set}'`\" = Xset"; then
    17511899  echo $ac_n "(cached) $ac_c" 1>&6
    17521900else
    17531901  cat > conftest.$ac_ext <<EOF
    1754 #line 1754 "ltconfig"
     1902#line 1876 "ltconfig"
    17551903#include <$ac_hdr>
    17561904int fnord = 0;
     
    17581906EOF
    17591907ac_try="$ac_compile >/dev/null 2>conftest.out"
    1760 { (eval echo $progname:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1908{ (eval echo $progname:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17611909ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    17621910if test -z "$ac_err"; then
     
    17861934
    17871935  echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
    1788 echo "$progname:1788: checking whether a program can dlopen itself" >&5
     1936echo "$progname:1910: checking whether a program can dlopen itself" >&5
    17891937if test "X${lt_cv_dlopen_self+set}" = Xset; then
    17901938  echo $ac_n "(cached) $ac_c" 1>&6
     
    17941942  else
    17951943    cat > conftest.$ac_ext <<EOF
    1796 #line 1796 "ltconfig"
     1944#line 1918 "ltconfig"
    17971945
    17981946#if HAVE_DLFCN_H
     
    18341982#endif
    18351983
    1836 fnord() { int i=42;}
    1837 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
     1984void fnord() { int i=42; }
     1985int main() {
     1986    void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
    18381987    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
    18391988               if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
    18401989
    18411990EOF
    1842 if { (eval echo $progname:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     1991if { (eval echo $progname:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    18431992then
    18441993  lt_cv_dlopen_self=yes
     
    18592008    LDFLAGS="$LDFLAGS $link_static_flag"
    18602009  echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
    1861 echo "$progname:1861: checking whether a statically linked program can dlopen itself" >&5
     2010echo "$progname:1984: checking whether a statically linked program can dlopen itself" >&5
    18622011if test "X${lt_cv_dlopen_self_static+set}" = Xset; then
    18632012  echo $ac_n "(cached) $ac_c" 1>&6
     
    18672016  else
    18682017    cat > conftest.$ac_ext <<EOF
    1869 #line 1869 "ltconfig"
     2018#line 1992 "ltconfig"
    18702019
    18712020#if HAVE_DLFCN_H
     
    19072056#endif
    19082057
    1909 fnord() { int i=42;}
    1910 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
     2058void fnord() { int i=42; }
     2059int main() {
     2060    void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
    19112061    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
    19122062    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
    19132063
    19142064EOF
    1915 if { (eval echo $progname:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2065if { (eval echo $progname:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
    19162066then
    19172067  lt_cv_dlopen_self_static=yes
     
    19322082  esac
    19332083
    1934   case "$lt_cv_dlopen_self" in
     2084  case $lt_cv_dlopen_self in
    19352085  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
    19362086  *) enable_dlopen_self=unknown ;;
    19372087  esac
    19382088
    1939   case "$lt_cv_dlopen_self_static" in
     2089  case $lt_cv_dlopen_self_static in
    19402090  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
    19412091  *) enable_dlopen_self_static=unknown ;;
     
    19542104
    19552105# Only quote variables if we're using ltmain.sh.
    1956 case "$ltmain" in
     2106case $ltmain in
    19572107*.sh)
    19582108  # Now quote all the things that may contain metacharacters.
     
    19792129    compiler_c_o need_locks exclude_expsyms include_expsyms; do
    19802130
    1981     case "$var" in
     2131    case $var in
    19822132    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
    19832133    old_postinstall_cmds | old_postuninstall_cmds | \
     
    19952145  done
    19962146
    1997   case "$ltecho" in
     2147  case $ltecho in
    19982148  *'\$0 --fallback-echo"')
    19992149    ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
     
    21842334pic_mode=$pic_mode
    21852335
     2336# What is the maximum length of a command?
     2337max_cmd_len=$max_cmd_len
     2338
    21862339# Does compiler simultaneously support -c and -o options?
    21872340compiler_c_o=$compiler_c_o
     
    23722525fi
    23732526
    2374 case "$ltmain" in
     2527case $ltmain in
    23752528*.sh)
    23762529  echo >> "$ofile"
    23772530  if test -z "$tagname"; then
    2378     case "$host_os" in
     2531    case $host_os in
    23792532    aix3*)
    23802533      cat <<\EOF >> "$ofile"
     
    23902543      ;;
    23912544    esac
    2392     case "$host" in
     2545    case $host in
    23932546    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
    23942547      cat <<'EOF' >> "$ofile"
     
    25062659#
    25072660#      dll = open(filename, O_RDONLY|O_BINARY);
    2508 #      if (!dll)
     2661#      if (dll < 1)
    25092662#       return 1;
    25102663#
Note: See TracChangeset for help on using the changeset viewer.