13 |
|
|
14 |
|
dnl Checks for programs. |
15 |
|
AC_PROG_CC |
16 |
– |
AC_PROG_CXX |
16 |
|
AC_PROG_CPP |
17 |
+ |
AC_PROG_CXX |
18 |
|
AC_PROG_MAKE_SET |
19 |
|
AC_PROG_INSTALL |
20 |
|
|
188 |
|
#endif |
189 |
|
], [AC_MSG_RESULT(yes); HAVE_I386=yes], AC_MSG_RESULT(no)) |
190 |
|
|
191 |
< |
dnl Check for GAS |
191 |
> |
dnl Check for GAS. |
192 |
|
HAVE_GAS=no |
193 |
|
AC_MSG_CHECKING(for GAS .p2align feature) |
194 |
|
cat >conftest.S << EOF |
198 |
|
if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi |
199 |
|
AC_MSG_RESULT($HAVE_GAS) |
200 |
|
|
201 |
< |
dnl Check for GCC 2.7 or higher |
201 |
> |
dnl Check for GCC 2.7 or higher. |
202 |
|
HAVE_GCC27=no |
203 |
|
AC_MSG_CHECKING(for GCC 2.7 or higher) |
204 |
|
AC_EGREP_CPP(yes, |
207 |
|
#endif |
208 |
|
], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no)) |
209 |
|
|
210 |
< |
dnl Set "-fomit-frame-pointer" on GCC |
210 |
> |
dnl Set "-fomit-frame-pointer" on GCC. |
211 |
|
if [[ "x$HAVE_GCC27" = "xyes" ]]; then |
212 |
|
CFLAGS="$CFLAGS -fomit-frame-pointer" |
213 |
|
CXXFLAGS="$CXXFLAGS -fomit-frame-pointer" |
214 |
|
fi |
215 |
|
|
216 |
< |
dnl Select appropriate CPU source and REGPARAM define |
216 |
> |
dnl Select appropriate CPU source and REGPARAM define. |
217 |
|
if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then |
218 |
|
DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\"" |
219 |
|
if [[ "x$HAVE_GAS" = "xyes" ]]; then |
226 |
|
CPUSRCS="$CPUSRCS cpuemu.cpp" |
227 |
|
fi |
228 |
|
|
229 |
< |
dnl Generate Makefile |
229 |
> |
dnl Generate Makefile. |
230 |
|
AC_SUBST(DEFINES) |
231 |
|
AC_SUBST(STATICLIBS) |
232 |
|
AC_SUBST(SYSSRCS) |