Lots of changes
[deliverable/binutils-gdb.git] / sim / ppc / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.3)dnl
3 AC_INIT(Makefile.in)
4
5 AC_CONFIG_HEADER(config.h:config.in)
6
7 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
8 AC_CANONICAL_SYSTEM
9 AC_ARG_PROGRAM
10
11 . ${srcdir}/../../bfd/configure.host
12
13 AC_PROG_CC
14 AC_SUBST(CFLAGS)
15 AC_SUBST(HDEFINES)
16 AR=${AR-ar}
17 AC_SUBST(AR)
18 AC_PROG_RANLIB
19
20 # Put a plausible default for CC_FOR_BUILD in Makefile.
21 AC_C_CROSS
22 if test "x$cross_compiling" = "xno"; then
23 CC_FOR_BUILD='$(CC)'
24 else
25 CC_FOR_BUILD=gcc
26 fi
27 AC_SUBST(CC_FOR_BUILD)
28
29 AC_CHECK_HEADERS(string.h strings.h stdlib.h time.h sys/times.h)
30
31 AC_OUTPUT(Makefile,
32 [case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
33
34 if test x"$enable_sim_cflags" != x"" -a x"$enable_sim_cflags" != x"no"; then
35 if test "$enable_sim_cflags" = "yes"; then
36 enable_sim_cflags="-fomit-frame-pointer,-O2"
37 fi
38 echo "Setting SIM_CFLAGS=$enable_sim_cflags" | sed -e "s/,/ /g" 1>&6
39 (echo; echo "# --enable-sim-cflags=$enable_sim_cflags";
40 echo "SIM_CFLAGS = $enable_sim_cflags" | sed -e "s/,/ /g") >> Makefile
41 else
42 echo "Setting SIM_CFLAGS=" 1>&6
43 (echo; echo "# no --enable-sim-cflags"; echo "SIM_CFLAGS =") >> Makefile
44 fi
45
46 $srcdir/config.make Makefile CONFIG_FILE --enable-sim-config "$enable_sim_config" \
47 "" "std-config.h" "no" "std-config.h" "yes" "std-config.h" "*" "$enable_sim_config" 1>&6
48
49 $srcdir/config.make Makefile IGEN_OPCODE_RULES --enable-sim-opcode "$enable_sim_opcode" \
50 "" "ppc-opcode-simple" "no" "ppc-opcode-simple" "yes" "ppc-opcode-simple" \
51 "complex" "ppc-opcode-complex" "simple" "ppc-opcode-simple" 1>&6
52
53 $srcdir/config.make Makefile DGEN_FLAGS --enable-sim-switch "$enable_sim_switch" \
54 "" "" "no" "" "yes" "-s" 1>&6
55
56 $srcdir/config.make Makefile IGEN_DUPLICATE --enable-sim-duplicate "$enable_sim_duplicate" \
57 "" "" "no" "" "yes" "-e" 1>&6
58
59 $srcdir/config.make Makefile IGEN_FILTER --enable-sim-filter "$enable_sim_filter" \
60 "" "-f 64" "no" "" "yes" "-f 64" "*" "$enable_sim_filter" 1>&6
61
62 flags=""
63 if test x"$enable_sim_inline" != x""; then
64 case "$enable_sim_inline" in
65 no) flags="";;
66 0) flags=" -DDEFAULT_INLINE=0";;
67 yes | 2) flags=" -DDEFAULT_INLINE=2";;
68 1) flags=" -DDEFAULT_INLINE=1";;
69 *) for x in `echo "$enable_sim_inline" | sed -e "s/,/ /g"`; do
70 case "$x" in
71 *_INLINE=*) flags="$flags -D$x";;
72 *_INLINE) flags="$flags -D$x=2";;
73 *=*) x=`sed -e "s/=/_INLINE=/"`; flags="$flags -D$x";;
74 *) flags="$flags -D$x""_INLINE=2";;
75 esac
76 done;;
77 esac
78 fi
79 if test x"$flags" != x""; then
80 echo "Setting INLINE_CFLAGS=$flags" 1>&6
81 (echo; echo "# --enable-sim-inline=$enable_sim_inline"; echo "INLINE_CFLAGS =$flags") >> Makefile
82 else
83 echo "Setting INLINE_CFLAGS=" 1>&6
84 (echo; echo "# no --enable-sim-inline"; echo "INLINE_CFLAGS =") >> Makefile
85 fi
86
87 $srcdir/config.hdr config.h WITH_BSWAP --enable-sim-bswap "$enable_sim_bswap" "yes" 1
88
89 case "$target" in
90 *powerpc-*) endian="BIG_ENDIAN";;
91 *powerpcle-*) endian="LITTLE_ENDIAN";;
92 *) echo "Unknown $target" 1>&6; endian="0";;
93 esac
94
95 $srcdir/config.hdr config.h WITH_TARGET_BYTE_ORDER --enable-sim-endian "$enable_sim_endian" \
96 "" "0" "no" "0" "yes" "$endian" \
97 "b" "BIG_ENDIAN" "big" "BIG_ENDIAN" "big-endian" "BIG_ENDIAN" \
98 "B" "BIG_ENDIAN" "BIG" "BIG_ENDIAN" "BIG-ENDIAN" "BIG_ENDIAN" \
99 "l" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" \
100 "L" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" 1>&6
101
102 $srcdir/config.hdr config.h WITH_HOST_BYTE_ORDER --enable-sim-hostendian "$enable_sim_hostendian" \
103 "b" "BIG_ENDIAN" "big" "BIG_ENDIAN" "big-endian" "BIG_ENDIAN" \
104 "B" "BIG_ENDIAN" "BIG" "BIG_ENDIAN" "BIG-ENDIAN" "BIG_ENDIAN" \
105 "l" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" \
106 "L" "LITTLE_ENDIAN" "little" "LITTLE_ENDIAN" "little-endian" "LITTLE_ENDIAN" 1>&6
107
108 $srcdir/config.hdr config.h WITH_SMP --enable-sim-smp "$enable_sim_smp" \
109 "" "0" "no" "0" "yes" "2" "*" "$enable_sim_smp" 1>&6
110
111 $srcdir/config.hdr config.h WITH_TARGET_WORD_BITSIZE --enable-sim-bitsize "$enable_sim_bitsize" \
112 "yes" "32" "32" "32" "32" "64" "64" 1>&6
113
114 $srcdir/config.hdr config.h WITH_HOST_WORD_BITSIZE --enable-sim-hostbitsize "$enable_sim_hostbitsize" \
115 "yes" "32" "32" "32" "32" "64" "64" 1>&6
116
117 $srcdir/config.hdr config.h WITH_ENVIRONMENT --enable-sim-env "$enable_sim_env" \
118 "yes" "0" \
119 "operating" "OPERATING_ENVIRONMENT" "os" "OPERATING_ENVIRONMENT" "oea" "OPERATING_ENVIRONMENT" \
120 "virtual" "VIRTUAL_ENVIRONMENT" "vea" "VIRTUAL_ENVIRONMENT" 1>&6
121
122 $srcdir/config.hdr config.h WITH_TIME_BASE --enable-sim-timebase "$enable_sim_timebase" \
123 "no" "0" "yes" "1" 1>&6
124
125 $srcdir/config.hdr config.h WITH_ALIGNMENT --enable-sim-alignment "$enable_sim_alignment" \
126 "no" "NONSTRICT_ALIGNMENT" "nonstrict" "NONSTRICT_ALIGNMENT" \
127 "yes" "STRICT_ALIGNMENT" "strict" "STRICT_ALIGNMENT" 1>&6
128
129 $srcdir/config.hdr config.h WITH_FLOATING_POINT --enable-sim-float "$enable_sim_float" \
130 "no" "SOFT_FLOATING_POINT" "soft" "SOFT_FLOATING_POINT" \
131 "yes" "HARD_FLOATING_POINT" "hard" "HARD_FLOATING_POINT" 1>&6
132
133 $srcdir/config.hdr config.h WITH_TRACE --enable-sim-trace "$enable_sim_trace" \
134 "no" "0" "yes" "1" 1>&6
135
136 $srcdir/config.hdr config.h WITH_ASSERT --enable-sim-assert "$enable_sim_assert" \
137 "no" "0" "yes" "1" 1>&6
138
139 $srcdir/config.hdr config.h WITH_MON --enable-sim-monitor "$enable_sim_monitor" \
140 "no" "0" "yes" "MONITOR_INSTRUCTION_ISSUE|MONITOR_LOAD_STORE_UNIT" \
141 "instruction" "MONITOR_INSTRUCTION_ISSUE" \
142 "memory" "MONITOR_LOAD_STORE_UNIT" 1>&6
This page took 0.033582 seconds and 5 git commands to generate.