103 |
|
x86_64* ) HAVE_X86_64=yes;; |
104 |
|
esac |
105 |
|
|
106 |
+ |
dnl Check if we should really be assuming x86_64 even if we detected HAVE_I386 above. |
107 |
+ |
if [[ "x$HAVE_I386" = "xyes" ]]; then |
108 |
+ |
AC_TRY_RUN([ |
109 |
+ |
int main(void) { |
110 |
+ |
#if defined(__x86_64__) |
111 |
+ |
return 0; |
112 |
+ |
#else |
113 |
+ |
return 1; |
114 |
+ |
#endif |
115 |
+ |
} |
116 |
+ |
], [ |
117 |
+ |
HAVE_I386=no |
118 |
+ |
HAVE_X86_64=yes |
119 |
+ |
]) |
120 |
+ |
fi |
121 |
+ |
|
122 |
|
dnl Checks for programs. |
123 |
|
AC_PROG_CC |
124 |
|
AC_PROG_CC_C_O |
139 |
|
MONSRCS="$mon_srcdir/mon.cpp $mon_srcdir/mon_6502.cpp $mon_srcdir/mon_z80.cpp $mon_srcdir/mon_cmd.cpp $mon_srcdir/mon_disass.cpp $mon_srcdir/mon_ppc.cpp $mon_srcdir/mon_lowmem.cpp $mon_srcdir/disass/floatformat.c $mon_srcdir/disass/i386-dis.c $mon_srcdir/disass/m68k-dis.c $mon_srcdir/disass/m68k-opc.c $mon_srcdir/disass/mips-dis.c $mon_srcdir/disass/mips-opc.c $mon_srcdir/disass/mips16-opc.c" |
140 |
|
CXXFLAGS="$CXXFLAGS -I$mon_srcdir -I$mon_srcdir/disass" |
141 |
|
AC_CHECK_LIB(ncurses, tgetent, , |
142 |
< |
AC_CHECK_LIB(termcap, tgetent, , |
143 |
< |
AC_CHECK_LIB(termlib, tgetent, , |
144 |
< |
AC_CHECK_LIB(terminfo, tgetent, , |
145 |
< |
AC_CHECK_LIB(Hcurses, tgetent, , |
146 |
< |
AC_CHECK_LIB(curses, tgetent)))))) |
142 |
> |
[AC_CHECK_LIB(termcap, tgetent, , |
143 |
> |
[AC_CHECK_LIB(termlib, tgetent, , |
144 |
> |
[AC_CHECK_LIB(terminfo, tgetent, , |
145 |
> |
[AC_CHECK_LIB(Hcurses, tgetent, , |
146 |
> |
[AC_CHECK_LIB(curses, tgetent)])])])])]) |
147 |
|
AC_CHECK_LIB(readline, readline) |
148 |
|
else |
149 |
|
AC_MSG_RESULT(no) |
488 |
|
have_dev_ptc=1 |
489 |
|
] |
490 |
|
) |
475 |
– |
|
491 |
|
dnl (end of code from openssh-3.2.2p1 configure.ac) |
492 |
|
|
478 |
– |
|
493 |
|
dnl Check for systems where POSIX-style non-blocking I/O (O_NONBLOCK) |
494 |
|
dnl doesn't work or is unimplemented. On these systems (mostly older |
495 |
|
dnl ones), use the old BSD-style FIONBIO approach instead. [tcl.m4] |
996 |
|
AC_LANG_SAVE |
997 |
|
AC_LANG_CPLUSPLUS |
998 |
|
AC_TRY_RUN([ |
999 |
+ |
#define HAVE_UNISTD_H 1 |
1000 |
+ |
#define HAVE_MACH_VM 1 |
1001 |
+ |
#define HAVE_MACH_TASK_SELF 1 |
1002 |
|
#define HAVE_MACH_EXCEPTIONS 1 |
1003 |
|
#define CONFIGURE_TEST_SIGSEGV_RECOVERY |
1004 |
|
#include "vm_alloc.cpp" |