Use -dumpversion for gcc version

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@13440 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-04-11 23:08:37 +00:00
parent 59595637f8
commit 9e1f6036e8
5 changed files with 60 additions and 14 deletions

View file

@ -1,3 +1,11 @@
2002-04-11 Adam Fedor <fedor@gnu.org>
* configure.in (gcc version): Use -dumpversion to check gcc
version.
* Documentation/README.MinGW: Minor updates.
* Documentation/machines.texi: Add FreeBSD 4.x
Wed Apr 10 14:39:24 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Instance/documentation.make (internal-doc-install_): Install all

View file

@ -50,11 +50,11 @@ Installing and setting up MINGW and MSYS
----------------------------------------
Next, download msys-1.06 or later from
http://sourceforge.net/project/mingw
http://sourceforge.net/projects/mingw
and install it.
Next, download MinGW-1.1 or later from
http://sourceforge.net/project/mingw
http://sourceforge.net/projects/mingw
and extract this into c:/msys/version-number/mingw
This will unpack the mingw source tree within the msys hierarchy.
@ -105,7 +105,7 @@ GNUstep-base (release, snapshot, or cvs core module)
Setting up the GNUstep make environment
---------------------------------------
In the GNUstep-make (core/make) package, do 'configure
In the GNUstep-make (core/make) package, do './configure
--prefix=C:/GNUstep' You can of course use a different prefix to
install the GNUstep system in an alternative location, but it is
important that the path you use is a full windows style path with a
@ -195,9 +195,9 @@ libiconv
Get the binary package from
http://www.fh-frankfurt.de/~igor/projects/libxml
Unpack this and
cp iconv.h $GNUSTEP_SYSTEM_ROOT/Headers
cp iconv.lib $GNUSTEP_SYSTEM_ROOT/Libraries/ix86/mingw32/libiconv.a
cp iconv.dll $GNUSTEP_SYSTEM_ROOT/Tools/ix86/mingw32/iconv.dll
cp include/iconv.h $GNUSTEP_SYSTEM_ROOT/Headers
cp lib/iconv.lib $GNUSTEP_SYSTEM_ROOT/Libraries/ix86/mingw32/libiconv.a
cp lib/iconv.dll $GNUSTEP_SYSTEM_ROOT/Tools/ix86/mingw32/iconv.dll
libxml2
Needed for XML parsing support, for MacOS-X compatible
@ -208,7 +208,9 @@ libxml2
Get the binary package from
http://www.fh-frankfurt.de/~igor/projects/libxml
Unpack this and
cd include
tar -cf - libxml | (cd $GNUSTEP_SYSTEM_ROOT/Headers; tar -xvf -)
cd ../lib
cp libxml2.lib $GNUSTEP_SYSTEM_ROOT/Libraries/ix86/mingw32/libxml2.a
cp libxml2.dll $GNUSTEP_SYSTEM_ROOT/Tools/ix86/mingw32
@ -227,7 +229,7 @@ openssl
Building and installing GNUstep-base
------------------------------------
Go gnustep-base (or from CVS into the core/base directory), and type
Go to gnustep-base (or from CVS into the core/base directory), and type
make install
@ -236,6 +238,23 @@ base library and some tools, and install the whole lot (along with some
system resources).
Troubleshooting
---------------
[1] Running 'make' gives 'premission denied' and/or a dialog box
about a missing DLL.
mv /bin/make /bin/make.old
So now you will be using /mingw/bin/make.exe
[2] When running configure in ffcall, I get 'no acceptable ld found...'. Use:
LD=ld ./configure ...
[3] When installing ffcall (avcall.h) "The system cannot find..."
make install INSTALL=install
Good Sites for Pre-Compiled Binaries
------------------------------------

View file

@ -2,7 +2,7 @@
@setfilename machines.info
@ifclear HOWTO
@c Machine Specific, Darwin 1.x/PowerPC, , (DIR)
@node Machine Specific, Darwin 1.x/PowerPC, , (DIR)
@node Machine Specific
@chapter Machines
@end ifclear
@ -14,6 +14,7 @@ more popular operating systems. Some machines marked with
@menu
* Darwin 1.x/PowerPC::
* Debian/DEC-Alpha::
* FreeBSD 4.x::
* FreeBSD 3.x::
* FreeBSD 2.x::
* GNU-Linux/Intel::
@ -77,7 +78,7 @@ configure (gnustep-make) like this:
@c -----------------------------------------
@node Debian/DEC-Alpha, FreeBSD 3.x, Darwin 1.x/PowerPC, Machine Specific
@node Debian/DEC-Alpha, FreeBSD 4.x, Darwin 1.x/PowerPC, Machine Specific
@section Debian/DEC-Alpha
@table @samp
@ -92,7 +93,25 @@ Unknown
@end table
@c -----------------------------------------
@node FreeBSD 3.x, FreeBSD 2.x, Debian/DEC-Alpha, Machine Specific
@node FreeBSD 4.x, FreeBSD 3.x, Debian/DEC-Alpha, Machine Specific
@section FreeBSD 3.x
@table @samp
@item Recommended compiler
@item Extra libs needed
Unknown
@item Special Instructions
If you're using zsh, some shell variables may not be set correctly when
executing GNUstep.sh. Try turing on SH_WORD_SPLIT (e.g. 'zsh
--sh-word-split', 'zsh -o shwordsplit', 'zsh -y' or by setting 'setopt
SH_WORD_SPLIT' in one of zsh's startup files.)
@end table
@c -----------------------------------------
@node FreeBSD 3.x, FreeBSD 2.x, FreeBSD 4.x, Machine Specific
@section FreeBSD 3.x
@c contact: David Lazaro <khelekir@encomix.es>

4
configure vendored
View file

@ -2212,7 +2212,7 @@ if test ! ${GCC} = "yes" ; then
AUTO_DEPENDENCIES=""
echo "$ac_t""no: it's not gcc" 1>&6
else
# Running gcc --version we get something like 2.95.4 or
# Running gcc -dumpversion we get something like 2.95.4 or
# egcs-2.91.66 or 3.0.2 or 3.1 20011211
# We want to discard anything but the major number.
# Explanation of the regexp -
@ -2221,7 +2221,7 @@ else
# subpattern)
# \([^0-9].*\) matches a non numeric char followed by anything
# /\2/ replace the whole lot with the 2^nd subpattern
gs_cv_gcc_major_version=`${CC} --version | sed "s/\(^[^0-9]*\)\([0-9][0-9]*\)\([^0-9].*\)/\2/"`;
gs_cv_gcc_major_version=`${CC} -dumpversion | sed "s/\(^[^0-9]*\)\([0-9][0-9]*\)\([^0-9].*\)/\2/"`;
if test "${gs_cv_gcc_major_version}" -ge "3" ; then
AUTO_DEPENDENCIES=yes

View file

@ -411,7 +411,7 @@ if test ! ${GCC} = "yes" ; then
AUTO_DEPENDENCIES=""
AC_MSG_RESULT(no: it's not gcc)
else
# Running gcc --version we get something like 2.95.4 or
# Running gcc -dumpversion we get something like 2.95.4 or
# egcs-2.91.66 or 3.0.2 or 3.1 20011211
# We want to discard anything but the major number.
# Explanation of the regexp -
@ -420,7 +420,7 @@ else
# subpattern)
# \([^0-9].*\) matches a non numeric char followed by anything
# /\2/ replace the whole lot with the 2^nd subpattern
gs_cv_gcc_major_version=`${CC} --version | sed "s/\(^[[^0-9]]*\)\([[0-9]][[0-9]]*\)\([[^0-9]].*\)/\2/"`;
gs_cv_gcc_major_version=`${CC} -dumpversion | sed "s/\(^[[^0-9]]*\)\([[0-9]][[0-9]]*\)\([[^0-9]].*\)/\2/"`;
if test "${gs_cv_gcc_major_version}" -ge "3" ; then
AUTO_DEPENDENCIES=yes