Mercurial > hg > xemacs-beta
diff configure.ac @ 3228:80361b938eaa
[xemacs-hg @ 2006-02-04 02:25:47 by vins]
Fix /bin/gcc no-X xpm builds on cygwin.
author | vins |
---|---|
date | Sat, 04 Feb 2006 02:25:52 +0000 |
parents | 15139dbf89f4 |
children | 8d7c2461057a |
line wrap: on
line diff
--- a/configure.ac Sat Feb 04 01:56:06 2006 +0000 +++ b/configure.ac Sat Feb 04 02:25:52 2006 +0000 @@ -2162,9 +2162,9 @@ dnl XEmacs supported mingw and cygnus have made this incompatible change dnl so we just go with the flow. case "$opsys" in mingw* | cygwin*) - cygwin_include=`eval "gcc -print-file-name=libc.a"` ; - cygwin_include=`eval "dirname $cygwin_include"` ; - cygwin_include="-I$cygwin_include/../include" ; + cygwin_include=`eval gcc -print-search-dirs | sed -ne s'/install: //p'` + cygwin_include=`eval "cd $cygwin_include/../../../..; pwd"` + cygwin_include="-I$cygwin_include/include" ; extra_includes="$cygwin_include/mingw $cygwin_include" ; case "$opsys" in mingw*) XE_APPEND($extra_includes, c_switch_system) ;; @@ -3938,9 +3938,8 @@ incpath_xpm= case "$opsys" in cygwin*) - cygwin_top=`eval "gcc -print-file-name=libc.a"` ; - cygwin_top=`eval "dirname ${cygwin_top}"`; - cygwin_top="${cygwin_top}/.."; + cygwin_top=`eval gcc -print-search-dirs | sed -ne s'/install: //p'` + cygwin_top=`eval "cd $cygwin_top/../../../..; pwd"` case "$window_system" in dnl use "standard" search pattern x11) ;;