ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure.ac
(Generate patch)

Comparing BasiliskII/src/Unix/configure.ac (file contents):
Revision 1.75 by asvitkine, 2009-03-03T08:04:42Z vs.
Revision 1.79 by asvitkine, 2010-07-28T01:10:24Z

# Line 103 | Line 103 | case "$target_cpu" in
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
# Line 123 | Line 139 | if [[ "x$WANT_MON" = "xyes" ]]; then
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)
# Line 472 | Line 488 | AC_CHECK_FILE([/dev/ptc],
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]
# Line 982 | Line 996 | AC_CACHE_CHECK([whether your system supp
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"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines