Changed HOSTCC-like variables to HOST_CC... unlabeled-1.1.2
authorcls%seawood.org
Fri, 23 Jul 1999 15:44:49 +0000
branchunlabeled-1.1.2
changeset 729 15f052f8fec75392f33fafbdda7894e1488db37c
parent 712 efb6e4cfeb5365afe628ce59cd27ab5310f81bf9
child 743 949926dd0156a8c4d49be9f3c10b8c159aa600ac
push idunknown
push userunknown
push dateunknown
Changed HOSTCC-like variables to HOST_CC...
configure.in
--- a/configure.in
+++ b/configure.in
@@ -23,18 +23,18 @@ dnl =
 dnl = Dont change the following lines.  Doing so breaks:
 dnl =
 dnl = CFLAGS="-foo" ./configure
 dnl =
 dnl ========================================================
 CFLAGS="${CFLAGS=}"
 CXXFLAGS="${CXXFLAGS=}"
 LDFLAGS="${LDFLAGS=}"
-HOSTCFLAGS="${HOSTCFLAGS=}"
-HOSTLDFLAGS="${HOSTLDFLAGS=}"
+HOST_CFLAGS="${HOST_CFLAGS=}"
+HOST_LDFLAGS="${HOST_LDFLAGS=}"
 
 dnl ========================================================
 dnl =
 dnl = Check --enable options that may affect the compiler
 dnl =
 dnl ========================================================
 AC_ARG_ENABLE(pthreads,
     [  --enable-pthreads           Use system pthreads library as thread subsystem],
@@ -84,39 +84,39 @@ dnl ====================================
 if test "$target" != "$host"; then
     echo "cross compiling from $host to $target"
     cross_compiling=yes
 
     _SAVE_CC="$CC"
     _SAVE_CFLAGS="$CFLAGS"
     _SAVE_LDFLAGS="$LDFLAGS"
 
-    AC_MSG_CHECKING([for host compiler])
-    if test -z "$HOSTCC"; then
-	AC_CHECK_PROGS(HOSTCC, gcc cc /usr/ucb/cc, "")
-	if test -z "$HOSTCC"; then
+    AC_MSG_CHECKING([for $host compiler])
+    if test -z "$HOST_CC"; then
+	AC_CHECK_PROGS(HOST_CC, gcc cc /usr/ucb/cc, "")
+	if test -z "$HOST_CC"; then
 	    AC_MSG_ERROR([no acceptable cc found in \$PATH])
 	fi
     fi
-    AC_MSG_RESULT([$HOSTCC])
-    if test -z "$HOSTCFLAGS"; then
-	HOSTCFLAGS="$CFLAGS"
+    AC_MSG_RESULT([$HOST_CC])
+    if test -z "$HOST_CFLAGS"; then
+	HOST_CFLAGS="$CFLAGS"
     fi
-    if test -z "$HOSTLDFLAGS"; then
-	HOSTLDFLAGS="$LDFLAGS"
+    if test -z "$HOST_LDFLAGS"; then
+	HOST_LDFLAGS="$LDFLAGS"
     fi
 
-    CC="$HOSTCC"
-    CFLAGS="$HOSTCFLAGS"
-    LDFLAGS="$HOSTLDFLAGS"
+    CC="$HOST_CC"
+    CFLAGS="$HOST_CFLAGS"
+    LDFLAGS="$HOST_LDFLAGS"
 
-    AC_MSG_CHECKING([whether the host compiler ($HOSTCC $HOSTCFLAGS $HOSTLDFLAGS) works])
+    AC_MSG_CHECKING([whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works])
     AC_TRY_COMPILE([], [return(0);], 
-	[ac_cv_prog_hostcc_works=1 AC_MSG_RESULT([yes])],
-	AC_MSG_ERROR([installation or configuration problem: host compiler $HOSTCC cannot create executables.]) )
+	[ac_cv_prog_host_cc_works=1 AC_MSG_RESULT([yes])],
+	AC_MSG_ERROR([installation or configuration problem: $host compiler $HOST_CC cannot create executables.]) )
     
     CC=$_SAVE_CC
     CFLAGS=$_SAVE_CFLAGS
     LDFLAGS=$_SAVE_LDFLAGS
 
     if test -z "$CC"; then
 	AC_CHECK_PROGS(CC, "${target_alias}-gcc" "${target}-gcc", :)
     fi
@@ -144,21 +144,21 @@ if test "$target" != "$host"; then
     fi
 else
     AC_PROG_CC
     AC_PROG_CXX
     AC_PROG_RANLIB
     AC_PATH_PROGS(AS, as, $CC)
     AC_PATH_PROGS(AR, ar, :)
     AC_PATH_PROGS(DLLTOOL, dlltool, :)
-    if test -z "$HOSTCC"; then
-	HOSTCC="$CC"
+    if test -z "$HOST_CC"; then
+	HOST_CC="$CC"
     fi
-    if test -z "$HOSTCFLAGS"; then
-	HOSTCFLAGS="$CFLAGS"
+    if test -z "$HOST_CFLAGS"; then
+	HOST_CFLAGS="$CFLAGS"
     fi
 fi
 
 dnl ========================================================
 dnl Checks for programs.
 dnl ========================================================
 AC_PROG_INSTALL
 AC_PROG_LN_S
@@ -172,17 +172,17 @@ LIB_SUFFIX=a
 DLL_SUFFIX=so
 MKSHLIB='$(CCC) -shared -o $@'
 
 dnl ========================================================
 dnl Override of system specific host options
 dnl ========================================================
 case "$host" in
 *-linux*)
-    HOSTCFLAGS="$HOSTCFLAGS -DXP_UNIX"
+    HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
     ;;
 esac
 
 dnl ========================================================
 dnl Override of system specific target options
 dnl ========================================================
 case "$target" in
 i?86-*-linux*)
@@ -325,18 +325,18 @@ dnl AC_CHECK_FUNCS(ftime getcwd gethostn
 
 dnl ========================================================
 dnl Substitution of found variables.
 dnl ========================================================
 AC_SUBST(CC)
 AC_SUBST(CXX)
 AC_SUBST(CFLAGS)
 AC_SUBST(CXXFLAGS)
-AC_SUBST(HOSTCC)
-AC_SUBST(HOSTCFLAGS)
+AC_SUBST(HOST_CC)
+AC_SUBST(HOST_CFLAGS)
 
 AC_SUBST(USE_PTHREADS)
 AC_SUBST(USE_BTHREADS)
 AC_SUBST(USE_CPLUS)
 AC_SUBST(USE_IPV6)
 
 AC_SUBST(MDCPUCFG_H)
 AC_SUBST(MOZ_TARGET)
@@ -355,17 +355,17 @@ AC_SUBST(AR)
 AC_SUBST(DLLTOOL)
 AC_SUBST(WINDRES)
 AC_SUBST(RANLIB)
 AC_SUBST(PERL)
 
 dnl ========================================================
 dnl Generate output files.
 dnl ========================================================
-AC_OUTPUT(
+AC_OUTPUT([
 Makefile 
 config/Makefile
 config/autoconf.mk
 lib/Makefile 
 lib/ds/Makefile 
 lib/libc/Makefile 
 lib/libc/include/Makefile 
 lib/libc/src/Makefile 
@@ -396,13 +396,12 @@ pr/src/memory/Makefile
 pr/src/misc/Makefile 
 pr/src/pthreads/Makefile 
 pr/src/threads/Makefile 
 pr/src/threads/combined/Makefile 
 pr/tests/Makefile 
 pr/tests/dll/Makefile 
 pr/tests/w16gui/Makefile 
 tools/Makefile 
-)
+])
 
 dnl lib/prstreams/tests/testprstrm/Makefile 
 dnl lib/tests/windows/makefile 
-