This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Get libgui building under cygwin


This is YA variation of the change that I made to tk, tcl.
It's checked in.

cgf

2001-10-12  Christopher Faylor  <cgf@redhat.com>

        * win/configure.in: Add detection for -mwin32 option requirement under
        cygwin.
        * win/configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/libgui/configure.in,v
retrieving revision 1.9
diff -p -r1.9 configure.in
*** configure.in	2001/09/08 22:34:45	1.9
--- configure.in	2001/10/12 05:19:35
*************** if test "$GCC" = "yes"; then
*** 50,56 ****
  else
     LIBGUI_CFLAGS=
  fi
- AC_SUBST(LIBGUI_CFLAGS) 
  
  AC_CACHE_CHECK([for cygwin32], ide_cv_os_cygwin32,
  [AC_EGREP_CPP(lose, [
--- 50,55 ----
*************** ac_win_build="no"
*** 61,66 ****
--- 60,79 ----
  if test x$ide_cv_os_cygwin32 = xyes; then
    ac_win_build="yes"
  fi
+ 
+ case "${target}" in
+ *-*-cygwin*)
+         touch ac$$.c
+         if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
+             case "$LIBGUI_CFLAGS" in
+                 *-mwin32*) ;;
+                 *) LIBGUI_CFLAGS="-mwin32 $LIBGUI_CFLAGS" ;;
+             esac
+         fi
+         rm -f ac$$.o ac$$.c
+         ;;
+ esac
+ AC_SUBST(LIBGUI_CFLAGS) 
  
  tmp="`cd $srcdir/library; pwd`"
  if test x"$ac_cv_prog_CC" = xcl ; then


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]