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

Diff of /linuxsampler/trunk/aclocal.m4

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

revision 52 by schoenebeck, Sun Jan 18 20:31:31 2004 UTC revision 53 by schoenebeck, Mon Apr 26 17:15:51 2004 UTC
# Line 895  fi])]) Line 895  fi])])
895  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
896    
897  # serial 47 AC_PROG_LIBTOOL  # serial 47 AC_PROG_LIBTOOL
898  # Debian $Rev: 149 $  # Debian $Rev: 203 $
899    
900    
901  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
# Line 1514  AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], Line 1514  AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1514  AC_MSG_CHECKING([the maximum length of command line arguments])  AC_MSG_CHECKING([the maximum length of command line arguments])
1515  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1516    i=0    i=0
1517    testring="ABCD"    teststring="ABCD"
1518    
1519    case $build_os in    case $build_os in
1520    msdosdjgpp*)    msdosdjgpp*)
# Line 1553  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d Line 1553  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
1553      # 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
1554      # maximum length that is only half of the actual maximum length, but      # maximum length that is only half of the actual maximum length, but
1555      # we can't tell.      # we can't tell.
1556      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` \
1557                 = "XX$testring") >/dev/null 2>&1 &&                 = "XX$teststring") >/dev/null 2>&1 &&
1558              new_result=`expr "X$testring" : ".*" 2>&1` &&              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1559              lt_cv_sys_max_cmd_len=$new_result &&              lt_cv_sys_max_cmd_len=$new_result &&
1560              test $i != 17 # 1/2 MB should be enough              test $i != 17 # 1/2 MB should be enough
1561      do      do
1562        i=`expr $i + 1`        i=`expr $i + 1`
1563        testring=$testring$testring        teststring=$teststring$teststring
1564      done      done
1565      testring=      teststring=
1566      # Add a significant safety factor because C++ compilers can tack on massive      # Add a significant safety factor because C++ compilers can tack on massive
1567      # amounts of additional arguments before passing them to the linker.      # amounts of additional arguments before passing them to the linker.
1568      # It appears as though 1/2 is a usable value.      # It appears as though 1/2 is a usable value.
# Line 1801  AC_CACHE_CHECK([if $compiler supports -c Line 1801  AC_CACHE_CHECK([if $compiler supports -c
1801     mkdir out     mkdir out
1802     printf "$lt_simple_compile_test_code" > conftest.$ac_ext     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1803    
    # 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 .  
   
1804     lt_compiler_flag="-o out/conftest2.$ac_objext"     lt_compiler_flag="-o out/conftest2.$ac_objext"
1805     # Insert the option either (1) after the last *FLAGS variable, or     # Insert the option either (1) after the last *FLAGS variable, or
1806     # (2) before a word containing "conftest.", or (3) at the end.     # (2) before a word containing "conftest.", or (3) at the end.
# Line 1965  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER] Line 1958  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER]
1958  library_names_spec=  library_names_spec=
1959  libname_spec='lib$name'  libname_spec='lib$name'
1960  soname_spec=  soname_spec=
1961  shrext=".so"  shrext_cmds=".so"
1962  postinstall_cmds=  postinstall_cmds=
1963  postuninstall_cmds=  postuninstall_cmds=
1964  finish_cmds=  finish_cmds=
# Line 2078  bsdi4*) Line 2071  bsdi4*)
2071    
2072  cygwin* | mingw* | pw32*)  cygwin* | mingw* | pw32*)
2073    version_type=windows    version_type=windows
2074    shrext=".dll"    shrext_cmds=".dll"
2075    need_version=no    need_version=no
2076    need_lib_prefix=no    need_lib_prefix=no
2077    
# Line 2143  darwin* | rhapsody*) Line 2136  darwin* | rhapsody*)
2136    soname_spec='${libname}${release}${major}$shared_ext'    soname_spec='${libname}${release}${major}$shared_ext'
2137    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
2138    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
2139    shrext='$(test .$module = .yes && echo .so || echo .dylib)'    shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2140    # 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.
2141    if test "$GCC" = yes; then    if test "$GCC" = yes; then
2142      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 2226  hpux9* | hpux10* | hpux11*) Line 2219  hpux9* | hpux10* | hpux11*)
2219    need_version=no    need_version=no
2220    case "$host_cpu" in    case "$host_cpu" in
2221    ia64*)    ia64*)
2222      shrext='.so'      shrext_cmds='.so'
2223      hardcode_into_libs=yes      hardcode_into_libs=yes
2224      dynamic_linker="$host_os dld.so"      dynamic_linker="$host_os dld.so"
2225      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
# Line 2241  hpux9* | hpux10* | hpux11*) Line 2234  hpux9* | hpux10* | hpux11*)
2234      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2235      ;;      ;;
2236     hppa*64*)     hppa*64*)
2237       shrext='.sl'       shrext_cmds='.sl'
2238       hardcode_into_libs=yes       hardcode_into_libs=yes
2239       dynamic_linker="$host_os dld.sl"       dynamic_linker="$host_os dld.sl"
2240       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH       shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
# Line 2252  hpux9* | hpux10* | hpux11*) Line 2245  hpux9* | hpux10* | hpux11*)
2245       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec       sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2246       ;;       ;;
2247     *)     *)
2248      shrext='.sl'      shrext_cmds='.sl'
2249      dynamic_linker="$host_os dld.sl"      dynamic_linker="$host_os dld.sl"
2250      shlibpath_var=SHLIB_PATH      shlibpath_var=SHLIB_PATH
2251      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH      shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
# Line 2323  linux*) Line 2316  linux*)
2316    
2317    # Append ld.so.conf contents to the search path    # Append ld.so.conf contents to the search path
2318    if test -f /etc/ld.so.conf; then    if test -f /etc/ld.so.conf; then
2319      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' ' '`
2320      sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2321    fi    fi
2322    
2323    # 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 2357  netbsd*) Line 2350  netbsd*)
2350      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2351      dynamic_linker='NetBSD (a.out) ld.so'      dynamic_linker='NetBSD (a.out) ld.so'
2352    else    else
2353      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}'
2354      soname_spec='${libname}${release}${shared_ext}$major'      soname_spec='${libname}${release}${shared_ext}$major'
2355      dynamic_linker='NetBSD ld.elf_so'      dynamic_linker='NetBSD ld.elf_so'
2356    fi    fi
# Line 2406  openbsd*) Line 2399  openbsd*)
2399    
2400  os2*)  os2*)
2401    libname_spec='$name'    libname_spec='$name'
2402    shrext=".dll"    shrext_cmds=".dll"
2403    need_lib_prefix=no    need_lib_prefix=no
2404    library_names_spec='$libname${shared_ext} $libname.a'    library_names_spec='$libname${shared_ext} $libname.a'
2405    dynamic_linker='OS/2 ld.exe'    dynamic_linker='OS/2 ld.exe'
# Line 2997  bsdi4*) Line 2990  bsdi4*)
2990    ;;    ;;
2991    
2992  cygwin*)  cygwin*)
2993    # win32_libid is a shell function defined in ltmain.sh    # func_win32_libid is a shell function defined in ltmain.sh
2994    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2995    lt_cv_file_magic_cmd='win32_libid'    lt_cv_file_magic_cmd='func_win32_libid'
2996    ;;    ;;
2997    
2998  mingw* | pw32*)  mingw* | pw32*)
2999    # Base MSYS/MinGW do not provide the 'file' command needed by    # Base MSYS/MinGW do not provide the 'file' command needed by
3000    # 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'.
3001    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)?'
3002    lt_cv_file_magic_cmd='$OBJDUMP -f'    lt_cv_file_magic_cmd='$OBJDUMP -f'
3003    ;;    ;;
# Line 3066  linux*) Line 3059  linux*)
3059    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
3060    ;;    ;;
3061    
3062  netbsd*)  netbsd* | knetbsd*-gnu)
3063    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3064      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)$'
3065    else    else
# Line 3415  aix3*) Line 3408  aix3*)
3408    fi    fi
3409    ;;    ;;
3410    
3411  aix4*)  aix4* | aix5*)
3412    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3413      test "$enable_shared" = yes && enable_static=no      test "$enable_shared" = yes && enable_static=no
3414    fi    fi
# Line 3863  case $host_os in Line 3856  case $host_os in
3856        # explicitly linking system object files so we need to strip them        # explicitly linking system object files so we need to strip them
3857        # 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
3858        # dependencies.        # dependencies.
3859        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'
3860        ;;        ;;
3861      *)      *)
3862        if test "$GXX" = yes; then        if test "$GXX" = yes; then
# Line 4060  case $host_os in Line 4053  case $host_os in
4053          ;;          ;;
4054      esac      esac
4055      ;;      ;;
4056    netbsd*)    netbsd* | knetbsd*-gnu)
4057      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4058        _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'
4059        wlarc=        wlarc=
# Line 4566  aix3*) Line 4559  aix3*)
4559      postinstall_cmds='$RANLIB $lib'      postinstall_cmds='$RANLIB $lib'
4560    fi    fi
4561    ;;    ;;
4562  aix4*)  aix4* | aix5*)
4563    test "$enable_shared" = yes && enable_static=no    test "$enable_shared" = yes && enable_static=no
4564    ;;    ;;
4565  esac  esac
# Line 4921  objext="$ac_objext" Line 4914  objext="$ac_objext"
4914  libext="$libext"  libext="$libext"
4915    
4916  # Shared library suffix (normally ".so").  # Shared library suffix (normally ".so").
4917  shrext='$shrext'  shrext_cmds='$shrext_cmds'
4918    
4919  # Executable file suffix (normally "").  # Executable file suffix (normally "").
4920  exeext="$exeext"  exeext="$exeext"
# Line 5550  AC_MSG_CHECKING([for $compiler option to Line 5543  AC_MSG_CHECKING([for $compiler option to
5543              ;;              ;;
5544          esac          esac
5545          ;;          ;;
5546        netbsd*)        netbsd* | knetbsd*-gnu)
5547          ;;          ;;
5548        osf3* | osf4* | osf5*)        osf3* | osf4* | osf5*)
5549          case $cc_basename in          case $cc_basename in
# Line 5861  ifelse([$1],[CXX],[ Line 5854  ifelse([$1],[CXX],[
5854    cygwin* | mingw*)    cygwin* | mingw*)
5855      _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'
5856    ;;    ;;
5857      linux*)
5858        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5859      ;;
5860    *)    *)
5861      _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'
5862    ;;    ;;
# Line 5990  EOF Line 5986  EOF
5986        fi        fi
5987        ;;        ;;
5988    
5989      netbsd*)      netbsd* | knetbsd*-gnu)
5990        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5991          _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'
5992          wlarc=          wlarc=
# Line 6029  EOF Line 6025  EOF
6025        ;;        ;;
6026    
6027    linux*)    linux*)
6028      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6029          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'
6030          _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"          _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6031        supports_anon_versioning=no        supports_anon_versioning=no
# Line 6048  $echo "local: *; };" >> $output_objdir/$ Line 6044  $echo "local: *; };" >> $output_objdir/$
6044        else        else
6045          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6046        fi        fi
6047          _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6048      else      else
6049        _LT_AC_TAGVAR(ld_shlibs, $1)=no        _LT_AC_TAGVAR(ld_shlibs, $1)=no
6050      fi      fi
# Line 6229  $echo "local: *; };" >> $output_objdir/$ Line 6226  $echo "local: *; };" >> $output_objdir/$
6226        # Tell ltmain to make .lib files, not .a files.        # Tell ltmain to make .lib files, not .a files.
6227        libext=lib        libext=lib
6228        # Tell ltmain to make .dll files, not .so files.        # Tell ltmain to make .dll files, not .so files.
6229        shrext=".dll"        shrext_cmds=".dll"
6230        # FIXME: Setting linknames here is a bad hack.        # FIXME: Setting linknames here is a bad hack.
6231        _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='
6232        # 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 6407  $echo "local: *; };" >> $output_objdir/$ Line 6404  $echo "local: *; };" >> $output_objdir/$
6404        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6405        ;;        ;;
6406    
6407      netbsd*)      netbsd* | knetbsd*-gnu)
6408        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6409          _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
6410        else        else

Legend:
Removed from v.52  
changed lines
  Added in v.53

  ViewVC Help
Powered by ViewVC