diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-08-01 19:24:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-08-01 19:24:55 +0000 |
commit | 9b119644fcae6fa62749747e013cbc0b3c215217 (patch) | |
tree | 5f331f8ecabadaa470b3e3b97a8aef613cd983d4 /gdb/configure.in | |
parent | 931cde32b14f43f734f59253f975554021592e05 (diff) | |
download | gdb-9b119644fcae6fa62749747e013cbc0b3c215217.zip gdb-9b119644fcae6fa62749747e013cbc0b3c215217.tar.gz gdb-9b119644fcae6fa62749747e013cbc0b3c215217.tar.bz2 |
* gdbtk.c (Tcl_Alloc): Don't provide our own version of this if
_WIN32.
(Tcl_Realloc, Tcl_Free): Likewise.
* configure.in: Check for cygwin32 environment. Define and
substitute WIN32LIBS and WIN32LDAPP. Always set configdir to
unix; setting it to win was for an old Tcl/Tk configuration
scheme.
* aclocal.m4 (CY_AC_LOAD_TKCONFIG): Substitute TK_BUILD_INCLUDES.
* Makefile.in (TK_CFLAGS): Add @TK_BUILD_INCLUDES@.
(WIN32LDAPP, WIN32LIBS): Define.
(CLIBS): Add $(WIN32LIBS).
(gdb): Use $(WIN32LDAPP).
* configure: Rebuild.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index d17a640..d9fe00a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -280,14 +280,25 @@ case "$host" in esac ]) -case "${target}" in -*-cygwin32) - configdir="win" - ;; -*) - configdir="unix" - ;; -esac +# In the cygwin32 environment, we need some additional flags. +AC_CACHE_CHECK([for cygwin32], gdb_cv_os_cygwin32, +[AC_EGREP_CPP(lose, [ +#ifdef __CYGWIN32__ +lose +#endif],[gdb_cv_os_cygwin32=yes],[gdb_cv_os_cygwin32=no])]) + +WIN32LIBS= +WIN32LDAPP= +AC_SUBST(WIN32LIBS) +AC_SUBST(WIN32LDAPP) + +if test x$gdb_cv_os_cygwin32 = xyes; then + if test x$enable_ide = xyes; then + WIN32LIBS="-ladvapi32" + fi +fi + +configdir="unix" if test "${enable_gdbtk}" = "yes"; then @@ -335,6 +346,11 @@ if test "${enable_gdbtk}" = "yes"; then # after Tcl/Tk. LIBS="${LIBS} ${TCL_LIBS} ${TK_LIBS}" CONFIG_OBS="${CONFIG_OBS} gdbtk.o" + + if test x$gdb_cv_os_cygwin32 = xyes; then + WIN32LIBS="${WIN32LIBS} -luser32" + WIN32LDAPP="-Wl,--subsystem,windows" + fi fi fi fi |