diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-10-24 07:54:21 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-10-24 07:54:21 +0000 |
commit | 122edc03deab9cd69503317231d4a53ae6a304ce (patch) | |
tree | 3a71627aa95134287a4306d61424ef9c159ee389 /sim/mips/configure | |
parent | dad6f1f326c4ff68c7473a192fe9545818c479bb (diff) | |
download | gdb-122edc03deab9cd69503317231d4a53ae6a304ce.zip gdb-122edc03deab9cd69503317231d4a53ae6a304ce.tar.gz gdb-122edc03deab9cd69503317231d4a53ae6a304ce.tar.bz2 |
Add basic igen configuration to autoconf. Disable.
Diffstat (limited to 'sim/mips/configure')
-rwxr-xr-x | sim/mips/configure | 36 |
1 files changed, 27 insertions, 9 deletions
diff --git a/sim/mips/configure b/sim/mips/configure index 4a896af..416b466 100755 --- a/sim/mips/configure +++ b/sim/mips/configure @@ -1768,21 +1768,38 @@ fi +# +# Select the sim generator & architecture +# +sim_gen=NO +case "${target}" in +# start-sanitize-r5900 +# mips64r59*-*-*) sim_gen=IGEN ;; +# end-sanitize-r5900 +# start-sanitize-vr5400 +# mips64vr54*-*-*) sim_gen=IGEN ;; +# end-sanitize-vr5400 +# mips16*-*-*) sim_gen=M16 ;; + *) sim_gen=NO ;; +esac + + + for ac_hdr in string.h strings.h stdlib.h stdlib.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1776: checking for $ac_hdr" >&5 +echo "configure:1793: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1781 "configure" +#line 1798 "configure" #include "confdefs.h" #include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out` if test -z "$ac_err"; then rm -rf conftest* @@ -1809,7 +1826,7 @@ fi done echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6 -echo "configure:1813: checking for fabs in -lm" >&5 +echo "configure:1830: checking for fabs in -lm" >&5 ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1817,7 +1834,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lm $LIBS" cat > conftest.$ac_ext <<EOF -#line 1821 "configure" +#line 1838 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -1828,7 +1845,7 @@ int main() { fabs() ; return 0; } EOF -if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -1858,12 +1875,12 @@ fi for ac_func in aint anint sqrt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:1862: checking for $ac_func" >&5 +echo "configure:1879: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <<EOF -#line 1867 "configure" +#line 1884 "configure" #include "confdefs.h" /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */ @@ -1886,7 +1903,7 @@ $ac_func(); ; return 0; } EOF -if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2092,6 +2109,7 @@ s%@sim_trace@%$sim_trace%g s%@sim_profile@%$sim_profile%g s%@SIMCONF@%$SIMCONF%g s%@SIM_SUBTARGET@%$SIM_SUBTARGET%g +s%@sim_gen@%$sim_gen%g CEOF EOF |