Commit 3ef3fcae authored by Nick Mathewson's avatar Nick Mathewson 👁
Browse files

r9081@totoro: nickm | 2006-10-19 11:00:51 -0400

 Try to detect windows properly when cross-compiling

parent df40c2e1
......@@ -33,6 +33,7 @@ Changes in version - 2006-10-??
- Stop triggering asserts if the controller tries to extend hidden
service circuits.
- Correctly set maximum connection limit on Cygwin.
- Try to detect windows correctly when cross-compiling.
Changes in version - 2006-10-07
......@@ -122,7 +122,8 @@ AC_SUBST(TORGROUP)
dnl If WIN32 is defined and non-zero, we are building for win32
AC_MSG_CHECKING([for win32])
AC_TRY_RUN([int main(int c, char **v) {
int main(int c, char **v) {
#ifdef WIN32
#if WIN32
return 0;
......@@ -134,14 +135,29 @@ AC_TRY_RUN([int main(int c, char **v) {
bwin32=true; AC_MSG_RESULT([yes]),
bwin32=false; AC_MSG_RESULT([no])
bwin32=false; AC_MSG_RESULT([no]),
bwin32=cross; AC_MSG_RESULT([cross])
if test $bwin32 = cross; then
AC_MSG_CHECKING([for win32 (cross)])
#ifdef WIN32
int main(int c, char **v) {return 0;}
int main(int c, char **v) {return x(y);}
bwin32=true; AC_MSG_RESULT([yes]),
bwin32=false; AC_MSG_RESULT([no]))
if test $bwin32 = true; then
AC_DEFINE(MS_WINDOWS, 1, [Define to 1 if we are building for Windows.])
AC_SEARCH_LIBS(socket, [socket])
AC_SEARCH_LIBS(gethostbyname, [nsl])
AC_SEARCH_LIBS(dlopen, [dl])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment