/[svn]/libgig/trunk/aclocal.m4
ViewVC logotype

Diff of /libgig/trunk/aclocal.m4

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

revision 57 by schoenebeck, Thu Jan 1 23:46:41 2004 UTC revision 58 by schoenebeck, Mon May 3 14:16:59 2004 UTC
# Line 1  Line 1 
1  # aclocal.m4t generated automatically by aclocal 1.6.3 -*- Autoconf -*-  # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-
2    
3  # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002  # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
4  # Free Software Foundation, Inc.  # Free Software Foundation, Inc.
# Line 837  fi])]) Line 837  fi])])
837  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
838    
839  # serial 47 AC_PROG_LIBTOOL  # serial 47 AC_PROG_LIBTOOL
840  # Debian $Rev: 149 $  # Debian $Rev: 203 $
841    
842    
843  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
# Line 1456  AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], Line 1456  AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1456  AC_MSG_CHECKING([the maximum length of command line arguments])  AC_MSG_CHECKING([the maximum length of command line arguments])
1457  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1458    i=0    i=0
1459    testring="ABCD"    teststring="ABCD"
1460    
1461    case $build_os in    case $build_os in
1462    msdosdjgpp*)    msdosdjgpp*)
# Line 1495  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d Line 1495  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
1495      # 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
1496      # maximum length that is only half of the actual maximum length, but      # maximum length that is only half of the actual maximum length, but
1497      # we can't tell.      # we can't tell.
1498      while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \      while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1499                 = "XX$testring") >/dev/null 2>&1 &&                 = "XX$teststring") >/dev/null 2>&1 &&
1500              new_result=`expr "X$testring" : ".*" 2>&1` &&              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1501              lt_cv_sys_max_cmd_len=$new_result &&              lt_cv_sys_max_cmd_len=$new_result &&
1502              test $i != 17 # 1/2 MB should be enough              test $i != 17 # 1/2 MB should be enough
1503      do      do
1504        i=`expr $i + 1`        i=`expr $i + 1`
1505        testring=$testring$testring        teststring=$teststring$teststring
1506      done      done
1507      testring=      teststring=
1508      # Add a significant safety factor because C++ compilers can tack on massive      # Add a significant safety factor because C++ compilers can tack on massive
1509      # amounts of additional arguments before passing them to the linker.      # amounts of additional arguments before passing them to the linker.
1510      # It appears as though 1/2 is a usable value.      # It appears as though 1/2 is a usable value.
# Line 1743  AC_CACHE_CHECK([if $compiler supports -c Line 1743  AC_CACHE_CHECK([if $compiler supports -c
1743     mkdir out     mkdir out
1744     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1745    
    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers  
    # that will create temporary files in the current directory regardless of  
    # the output directory.  Thus, making CWD read-only will cause this test  
    # to fail, enabling locking or at least warning the user not to do parallel  
    # builds.  
    chmod -w .  
   
1746     lt_compiler_flag="-o out/conftest2.$ac_objext"     lt_compiler_flag="-o out/conftest2.$ac_objext"
1747     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
1748     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 1907  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER] Line 1900  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER]
1900  library_names_spec=  library_names_spec=
1901  libname_spec='lib$name'  libname_spec='lib$name'
1902  soname_spec=  soname_spec=
1903  shrext=".so"  shrext_cmds=".so"
1904  postinstall_cmds=  postinstall_cmds=
1905  postuninstall_cmds=  postuninstall_cmds=
1906  finish_cmds=  finish_cmds=
# Line 2020  bsdi4*) Line 2013  bsdi4*)
2013    
2014  cygwin* | mingw* | pw32*)  cygwin* | mingw* | pw32*)
2015    version_type=windows    version_type=windows
2016    shrext=".dll"    shrext_cmds=".dll"
2017    need_version=no    need_version=no
2018    need_lib_prefix=no    need_lib_prefix=no
2019    
# Line 2085  darwin* | rhapsody*) Line 2078  darwin* | rhapsody*)
2078    soname_spec='${libname}${release}${major}$shared_ext'    soname_spec='${libname}${release}${major}$shared_ext'
2079    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
2080    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
2081    shrext='$(test .$module = .yes && echo .so || echo .dylib)'    shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2082    # 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.
2083    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2084      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 2168  hpux9* | hpux10* | hpux11*) Line 2161  hpux9* | hpux10* | hpux11*)
2161    need_version=no    need_version=no
2162    case "$host_cpu" in    case "$host_cpu" in
2163    ia64*)    ia64*)
2164      shrext='.so'      shrext_cmds='.so'
2165      hardcode_into_libs=yes      hardcode_into_libs=yes
2166      dynamic_linker="$host_os dld.so"      dynamic_linker="$host_os dld.so"
2167      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
# Line 2183  hpux9* | hpux10* | hpux11*) Line 2176  hpux9* | hpux10* | hpux11*)
2176      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2177      ;;      ;;
2178     hppa*64*)     hppa*64*)
2179       shrext='.sl'       shrext_cmds='.sl'
2180       hardcode_into_libs=yes       hardcode_into_libs=yes
2181       dynamic_linker="$host_os dld.sl"       dynamic_linker="$host_os dld.sl"
2182       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
# Line 2194  hpux9* | hpux10* | hpux11*) Line 2187  hpux9* | hpux10* | hpux11*)
2187       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2188       ;;       ;;
2189     *)     *)
2190      shrext='.sl'      shrext_cmds='.sl'
2191      dynamic_linker="$host_os dld.sl"      dynamic_linker="$host_os dld.sl"
2192      shlibpath_var=SHLIB_PATH      shlibpath_var=SHLIB_PATH
2193      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
# Line 2265  linux*) Line 2258  linux*)
2258    
2259    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
2260    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
2261      ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`      lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
2262      sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2263    fi    fi
2264    
2265    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
# Line 2299  netbsd*) Line 2292  netbsd*)
2292      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2293      dynamic_linker='NetBSD (a.out) ld.so'      dynamic_linker='NetBSD (a.out) ld.so'
2294    else    else
2295      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2296      soname_spec='${libname}${release}${shared_ext}$major'      soname_spec='${libname}${release}${shared_ext}$major'
2297      dynamic_linker='NetBSD ld.elf_so'      dynamic_linker='NetBSD ld.elf_so'
2298    fi    fi
# Line 2348  openbsd*) Line 2341  openbsd*)
2341    
2342  os2*)  os2*)
2343    libname_spec='$name'    libname_spec='$name'
2344    shrext=".dll"    shrext_cmds=".dll"
2345    need_lib_prefix=no    need_lib_prefix=no
2346    library_names_spec='$libname${shared_ext} $libname.a'    library_names_spec='$libname${shared_ext} $libname.a'
2347    dynamic_linker='OS/2 ld.exe'    dynamic_linker='OS/2 ld.exe'
# Line 2939  bsdi4*) Line 2932  bsdi4*)
2932    ;;    ;;
2933    
2934  cygwin*)  cygwin*)
2935    # win32_libid is a shell function defined in ltmain.sh    # func_win32_libid is a shell function defined in ltmain.sh
2936    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2937    lt_cv_file_magic_cmd='win32_libid'    lt_cv_file_magic_cmd='func_win32_libid'
2938    ;;    ;;
2939    
2940  mingw* | pw32*)  mingw* | pw32*)
2941    # Base MSYS/MinGW do not provide the 'file' command needed by    # Base MSYS/MinGW do not provide the 'file' command needed by
2942    # win32_libid shell function, so use a weaker test based on 'objdump'.    # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2943    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2944    lt_cv_file_magic_cmd='$OBJDUMP -f'    lt_cv_file_magic_cmd='$OBJDUMP -f'
2945    ;;    ;;
# Line 3008  linux*) Line 3001  linux*)
3001    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
3002    ;;    ;;
3003    
3004  netbsd*)  netbsd* | knetbsd*-gnu)
3005    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3006      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3007    else    else
# Line 3357  aix3*) Line 3350  aix3*)
3350    fi    fi
3351    ;;    ;;
3352    
3353  aix4*)  aix4* | aix5*)
3354    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3355      test "$enable_shared" = yes && enable_static=no      test "$enable_shared" = yes && enable_static=no
3356    fi    fi
# Line 3805  case $host_os in Line 3798  case $host_os in
3798        # explicitly linking system object files so we need to strip them        # explicitly linking system object files so we need to strip them
3799        # from the output so that they don't get included in the library        # from the output so that they don't get included in the library
3800        # dependencies.        # dependencies.
3801        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3802        ;;        ;;
3803      *)      *)
3804        if test "$GXX" = yes; then        if test "$GXX" = yes; then
# Line 4002  case $host_os in Line 3995  case $host_os in
3995          ;;          ;;
3996      esac      esac
3997      ;;      ;;
3998    netbsd*)    netbsd* | knetbsd*-gnu)
3999      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4000        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4001        wlarc=        wlarc=
# Line 4508  aix3*) Line 4501  aix3*)
4501      postinstall_cmds='$RANLIB $lib'      postinstall_cmds='$RANLIB $lib'
4502    fi    fi
4503    ;;    ;;
4504  aix4*)  aix4* | aix5*)
4505    test "$enable_shared" = yes && enable_static=no    test "$enable_shared" = yes && enable_static=no
4506    ;;    ;;
4507  esac  esac
# Line 4863  objext="$ac_objext" Line 4856  objext="$ac_objext"
4856  libext="$libext"  libext="$libext"
4857    
4858  # Shared library suffix (normally ".so").  # Shared library suffix (normally ".so").
4859  shrext='$shrext'  shrext_cmds='$shrext_cmds'
4860    
4861  # Executable file suffix (normally "").  # Executable file suffix (normally "").
4862  exeext="$exeext"  exeext="$exeext"
# Line 5492  AC_MSG_CHECKING([for $compiler option to Line 5485  AC_MSG_CHECKING([for $compiler option to
5485              ;;              ;;
5486          esac          esac
5487          ;;          ;;
5488        netbsd*)        netbsd* | knetbsd*-gnu)
5489          ;;          ;;
5490        osf3* | osf4* | osf5*)        osf3* | osf4* | osf5*)
5491          case $cc_basename in          case $cc_basename in
# Line 5803  ifelse([$1],[CXX],[ Line 5796  ifelse([$1],[CXX],[
5796    cygwin* | mingw*)    cygwin* | mingw*)
5797      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5798    ;;    ;;
5799      linux*)
5800        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5801      ;;
5802    *)    *)
5803      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5804    ;;    ;;
# Line 5932  EOF Line 5928  EOF
5928        fi        fi
5929        ;;        ;;
5930    
5931      netbsd*)      netbsd* | knetbsd*-gnu)
5932        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5933          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5934          wlarc=          wlarc=
# Line 5971  EOF Line 5967  EOF
5967        ;;        ;;
5968    
5969    linux*)    linux*)
5970      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5971          tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'          tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5972          _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"          _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5973        supports_anon_versioning=no        supports_anon_versioning=no
# Line 5990  $echo "local: *; };" >> $output_objdir/$ Line 5986  $echo "local: *; };" >> $output_objdir/$
5986        else        else
5987          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5988        fi        fi
5989          _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5990      else      else
5991        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5992      fi      fi
# Line 6171  $echo "local: *; };" >> $output_objdir/$ Line 6168  $echo "local: *; };" >> $output_objdir/$
6168        # Tell ltmain to make .lib files, not .a files.        # Tell ltmain to make .lib files, not .a files.
6169        libext=lib        libext=lib
6170        # Tell ltmain to make .dll files, not .so files.        # Tell ltmain to make .dll files, not .so files.
6171        shrext=".dll"        shrext_cmds=".dll"
6172        # FIXME: Setting linknames here is a bad hack.        # FIXME: Setting linknames here is a bad hack.
6173        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6174        # The linker will automatically build a .lib file if we build a DLL.        # The linker will automatically build a .lib file if we build a DLL.
# Line 6349  $echo "local: *; };" >> $output_objdir/$ Line 6346  $echo "local: *; };" >> $output_objdir/$
6346        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6347        ;;        ;;
6348    
6349      netbsd*)      netbsd* | knetbsd*-gnu)
6350        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6351          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6352        else        else

Legend:
Removed from v.57  
changed lines
  Added in v.58

  ViewVC Help
Powered by ViewVC