X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=configure.in;h=5dd40ce28c4f07a34dd7200261981df1b04a9c9d;hb=dbdb27ec2d5ddeb8a214181881ab616ebe47b0cf;hp=424346344c536638cca109fe8123079f3b35f916;hpb=479759c861f07d40b18c9673919991a95eb85f5b;p=deliverable%2Fbinutils-gdb.git diff --git a/configure.in b/configure.in index 424346344c..5dd40ce28c 100644 --- a/configure.in +++ b/configure.in @@ -481,9 +481,14 @@ case "${target}" in noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" ;; cris-*-* | crisv32-*-*) + libgcj_ex_libffi=`echo ${libgcj} | sed -e 's/target-libffi//'` case "${target}" in - *-*-elf | *-*-aout) + *-*-aout) noconfigdirs="$noconfigdirs ${libgcj}";; + *-*-elf) + noconfigdirs="$noconfigdirs ${libgcj_ex_libffi}";; + *-*-linux*) + noconfigdirs="$noconfigdirs ${libgcj_ex_libffi} target-newlib target-libgloss";; *) noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";; esac @@ -893,7 +898,6 @@ case "${host}" in host_makefile_frag="config/mh-cygwin" ;; *-mingw32*) - host_makefile_frag="config/mh-mingw32" ;; *-interix*) host_makefile_frag="config/mh-interix" @@ -1625,30 +1629,9 @@ case "${host}" in ;; esac -# If no --enable-shared nor --disable-shared is specified, we set up -# LD_LIBRARY_PATH when we build for gcc. -case $enable_shared in -"") - if test -d ${srcdir}/gcc; then - set_lib_path=yes - else - set_lib_path=no - fi - ;; -*) - set_lib_path=$enable_shared - ;; -esac - -# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the -# binutils tools will find libbfd.so. -case "${set_lib_path}" in - no) SET_LIB_PATH= ;; - *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;; -esac - case "${host}" in *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; + *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; esac @@ -1945,8 +1928,10 @@ fi # fixed in future. It's still worthwhile to use a cache file for each # directory. I think. -# Pass the appropriate --host, --build, and --cache-file arguments. -target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}" +# Pass the appropriate --build, --host, --target and --cache-file arguments. +# We need to pass --target, as newer autoconf's requires consistency +# for target_alias and gcc doesn't manage it consistently. +target_configargs="--cache-file=./config.cache --build=${build_alias} --host=${target_alias} --target=${target_alias} ${target_configargs}" FLAGS_FOR_TARGET= case " $target_configdirs " in @@ -2115,7 +2100,6 @@ AC_SUBST_FILE(alphaieee_frag) AC_SUBST_FILE(ospace_frag) # Miscellanea: directories, flags, etc. -AC_SUBST(SET_LIB_PATH) AC_SUBST(RPATH_ENVVAR) AC_SUBST(BUILD_PREFIX) AC_SUBST(BUILD_PREFIX_1) @@ -2294,24 +2278,4 @@ case ${enable_werror} in esac AC_SUBST(stage2_werror_flag) -# If gcc is built natively with shared library enabled, set -# $RPATH_ENVVAR to make sure the newly built gcc shared librares are -# used. -SET_GCC_LIB_PATH= -if test -d ${srcdir}/gcc && test x${is_cross_compiler} = xno; then - case "${set_lib_path}" in - no) ;; - *) - eval "d=\$$RPATH_ENVVAR" - if test x"$d" != x; then - d="$pwd/gcc:$d" - else - d="$pwd/gcc" - fi - SET_GCC_LIB_PATH="\$(RPATH_ENVVAR)=$d; export \$(RPATH_ENVVAR);" - ;; - esac -fi -AC_SUBST(SET_GCC_LIB_PATH) - AC_OUTPUT(Makefile)