aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-02-14 14:25:18 +0000
committerJim Blandy1993-02-14 14:25:18 +0000
commit1bba56f6d77f7d2be7865be96b0e1ed9f4c2d528 (patch)
tree34aa4413ff5c46e7d4ba19d5b590a4361cc0d131
parent73eff16445bcbd050835501c6578af5a1163bc40 (diff)
downloademacs-1bba56f6d77f7d2be7865be96b0e1ed9f4c2d528.tar.gz
emacs-1bba56f6d77f7d2be7865be96b0e1ed9f4c2d528.zip
* configure (progname): New option `--with-gcc'. Make it clearer
how we are trying to guess whether or not we have GCC. * INSTALL: Document the `--with-gcc' option, and improve description of `--with-x' options.
-rwxr-xr-xconfigure1.in52
1 files changed, 41 insertions, 11 deletions
diff --git a/configure1.in b/configure1.in
index c64177799b2..19f1835b986 100755
--- a/configure1.in
+++ b/configure1.in
@@ -64,6 +64,12 @@ The --with-x, --with-x11 and --with-x10 options specify what window
64 system to use; if all are omitted, use X11 if present. If you 64 system to use; if all are omitted, use X11 if present. If you
65 don't want X, specify \`--with-x=no'. 65 don't want X, specify \`--with-x=no'.
66 66
67The --with-gcc option says that the build process should use GCC to
68 compile Emacs. If you have GCC but don't want to use it,
69 specify \`--with-gcc=no'. \`configure' tries to guess whether
70 or not you have GCC by searching your executable path, but if
71 it guesses incorrectly, you may need to use this.
72
67The --srcdir=DIR option specifies that the configuration and build 73The --srcdir=DIR option specifies that the configuration and build
68 processes should look for the Emacs source code in DIR, when 74 processes should look for the Emacs source code in DIR, when
69 DIR is not the current directory. This option doesn't work yet. 75 DIR is not the current directory. This option doesn't work yet.
@@ -130,6 +136,22 @@ Set it to either \`yes' or \`no'."
130 eval "${opt}=\"${val}\"" 136 eval "${opt}=\"${val}\""
131 ;; 137 ;;
132 138
139 ## Has the user specified whether or not they want GCC?
140 "with_gcc" )
141 ## Make sure the value given was either "yes" or "no".
142 case "${val}" in
143 y | ye | yes ) val=yes ;;
144 n | no ) val=no ;;
145 * )
146 (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value.
147Set it to either \`yes' or \`no'."
148 echo "${short_usage}") >&2
149 exit 1
150 ;;
151 esac
152 eval "${opt}=\"${val}\""
153 ;;
154
133 ## Has the user specified a source directory? 155 ## Has the user specified a source directory?
134 "srcdir" ) 156 "srcdir" )
135 ## If the value was omitted, get it from the next argument. 157 ## If the value was omitted, get it from the next argument.
@@ -749,17 +771,25 @@ esac
749 771
750 772
751#### Choose a compiler. 773#### Choose a compiler.
752echo "Checking for GCC." 774echo "Checking compilers."
753temppath=`echo $PATH | sed 's/^:/.:/ 775if [ "${with_gcc}" = "" ]; then
754 s/::/:.:/g 776 echo " Searching load path for GCC."
755 s/:$/:./ 777 temppath=`echo $PATH | sed 's/^:/.:/
756 s/:/ /g'` 778 s/::/:.:/g
757default_cc=`( 779 s/:$/:./
758 for dir in ${temppath}; do 780 s/:/ /g'`
759 if [ -f ${dir}/gcc ]; then echo gcc; exit 0; fi 781 default_cc=`(
760 done 782 for dir in ${temppath}; do
761 echo cc 783 if [ -f ${dir}/gcc ]; then echo gcc; exit 0; fi
762)` 784 done
785 echo cc
786 )`
787else
788 case ${with_gcc} in
789 "yes" ) default_cc="gcc" ;;
790 "no" ) default_cc="cc" ;;
791 esac
792fi
763 793
764case "${default_cc}" in 794case "${default_cc}" in
765 "gcc" ) 795 "gcc" )