The R Project SVN R

Rev

Rev 49237 | Rev 68796 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 49237 Rev 55685
Line 1019... Line 1019...
1019
# the location of the communication and MPI libs are included too.
1019
# the location of the communication and MPI libs are included too.
1020
# If we don't find anything, use the default library path according
1020
# If we don't find anything, use the default library path according
1021
# to the aix ld manual.
1021
# to the aix ld manual.
1022
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1022
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1023
[m4_require([_LT_DECL_SED])dnl
1023
[m4_require([_LT_DECL_SED])dnl
1024
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1024
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],[
1025
lt_aix_libpath_sed='
1025
lt_aix_libpath_sed='
1026
    /Import File Strings/,/^$/ {
1026
    /Import File Strings/,/^$/ {
1027
	/^0/ {
1027
	/^0/ {
1028
	    s/^0  *\(.*\)$/\1/
1028
	    s/^0  *\(.*\)$/\1/
1029
	    p
1029
	    p
Line 4824... Line 4824...
4824
	# Try to use the -exported_symbol ld option, if it does not
4824
	# Try to use the -exported_symbol ld option, if it does not
4825
	# work, assume that -exports_file does not work either and
4825
	# work, assume that -exports_file does not work either and
4826
	# implicitly export all symbols.
4826
	# implicitly export all symbols.
4827
        save_LDFLAGS="$LDFLAGS"
4827
        save_LDFLAGS="$LDFLAGS"
4828
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4828
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4829
        AC_LINK_IFELSE(int foo(void) {},
4829
        AC_LINK_IFELSE([AC_LANG_SOURCE([[int foo(void) {}]])],
4830
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4830
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4831
        )
4831
        )
4832
        LDFLAGS="$save_LDFLAGS"
4832
        LDFLAGS="$save_LDFLAGS"
4833
      else
4833
      else
4834
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4834
	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'