From: Frank Ch. Eigler Date: Wed, 25 Mar 1998 16:48:04 +0000 (+0000) Subject: * As suggested by crash, made --with-sim-gpu2 option active only on -sky- target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd5eafcd7c35f523ddbd734c5465d97e15702694;p=binutils-gdb.git * As suggested by crash, made --with-sim-gpu2 option active only on -sky- target. --- diff --git a/gdb/configure b/gdb/configure index 01c4dff10fb..80e55aab515 100755 --- a/gdb/configure +++ b/gdb/configure @@ -3451,12 +3451,16 @@ fi # Check whether --with-sim-gpu2 or --without-sim-gpu2 was given. if test "${with_sim_gpu2+set}" = set; then withval="$with_sim_gpu2" - if test -d "${withval}" -then - LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11" -else - { echo "configure: error: "Directory ${withval} does not exist."" 1>&2; exit 1; }; -fi + case "${target}" in + mips*-sky-*) + if test -d "${withval}" + then + LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11" + else + echo "configure: warning: Directory ${withval} does not exist." 1>&2 + fi ;; + *) echo "configure: warning: --with-sim-gpu2 option invalid for target ${target}" 1>&2 +esac fi # end-sanitize-sky @@ -3603,7 +3607,7 @@ links="${links} nm.h" fi # start-sanitize-gdbtk echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:3607: checking whether ln -s works" >&5 +echo "configure:3611: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3638,19 +3642,19 @@ fi echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6 -echo "configure:3642: checking for Cygwin32 environment" >&5 +echo "configure:3646: checking for Cygwin32 environment" >&5 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_cygwin32=yes else @@ -3667,19 +3671,19 @@ echo "$ac_t""$am_cv_cygwin32" 1>&6 CYGWIN32= test "$am_cv_cygwin32" = yes && CYGWIN32=yes echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6 -echo "configure:3671: checking for Mingw32 environment" >&5 +echo "configure:3675: checking for Mingw32 environment" >&5 if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_mingw32=yes else @@ -3698,7 +3702,7 @@ test "$am_cv_mingw32" = yes && MINGW32=yes echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:3702: checking for executable suffix" >&5 +echo "configure:3706: checking for executable suffix" >&5 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/gdb/configure.in b/gdb/configure.in index 128758f592d..49fd0d38e4f 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -436,12 +436,16 @@ AC_PATH_X # Enable GPU2 library for MIPS simulator AC_ARG_WITH(sim-gpu2, [ --with-sim-gpu2=path Use GPU2 library under given directory], -[if test -d "${withval}" -then - LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11" -else - AC_MSG_ERROR("Directory ${withval} does not exist."); -fi])dnl +[case "${target}" in + mips*-sky-*) + if test -d "${withval}" + then + LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11" + else + AC_MSG_WARN([Directory ${withval} does not exist.]) + fi ;; + *) AC_MSG_WARN([--with-sim-gpu2 option invalid for target ${target}]) +esac])dnl # end-sanitize-sky AC_SUBST(ENABLE_CFLAGS)