Mercurial > mplayer.hg
changeset 1272:89e9625b3c7d
rework autodetection of assembler used by gcc, the correct assembler is detected
now, in case the user has specified a certain version of the compiler with the
"-cc=..." option.
author | jkeil |
---|---|
date | Wed, 04 Jul 2001 10:45:20 +0000 |
parents | 2864e32cd267 |
children | 17c13bef14f4 |
files | configure |
diffstat | 1 files changed, 19 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Wed Jul 04 09:47:56 2001 +0000 +++ b/configure Wed Jul 04 10:45:20 2001 +0000 @@ -6,6 +6,9 @@ # # Changes in reversed order: # +# 2001/07/04 by Juergen Keil +# - autodetect the assembler binary used by the GCC C compiler +# # 2001/07/03 by Nick Kurshev # - added universal way of configuring SUBDIRS # - moved configurable stuff of depended SUBDIRS to SUBDIRS @@ -19,9 +22,14 @@ # 2001/06/04 by Nick Kurshev # - added hard checking of gcc and soft of assembler # -# 2001/05/40 by LGB +# 2001/05/30 by LGB # - added --prefix support # +# 2001/05/?? by Juergen Keil +# - autodetect OSS & Sun style audio +# - cpu feature detection for non-linux x86 systems +# - converted from bash to bourne shell script +# # 2001/05/22 by Nick Kurshev # - added definition of CPU clone # @@ -207,10 +215,7 @@ # --- Check for C compiler: _cc=gcc -_as=`gcc -print-prog-name=as` -if [ x"_$as" = x ]; then - _as=as -fi +_as=auto _x11=auto _x11libdir= @@ -309,6 +314,15 @@ fi # --- +# now that we know what compiler should be used for compilation, try to find +# out which assembler is used by the $_cc compiler +if [ "$_as" = auto ]; then + _as=`$_cc -print-prog-name=as` + if [ "_$as" = "" ]; then + _as=as + fi +fi + if [ -r /proc/cpuinfo ]; then # linux with /proc mounted, extract cpu information from it