Fixed C++ compiler detection in the 'configure' script.

This commit is contained in:
stainless
2001-09-04 00:48:14 +00:00
parent 09bf8429df
commit 4830aa3afc
3 changed files with 5 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ OBJS=${CHIPSOBJ} ${CPUOBJ} ${WINOBJ} ${WINDOSOBJ} ${GUIOBJ} ${VIDEOBJ} ${ZIPOBJ}
@CC@ @CFLAGS@ -o $@ -c $<
%.o: %.cpp
@CXX@ @CFLAGS@ -o $@ -c $<
@CXX@ @CXXFLAGS@ -o $@ -c $<
%.o: %.asm
@NASMPATH@ @NFLAGS@ -o $@ $<

3
zsnes/src/configure vendored
View File

@@ -537,7 +537,7 @@ fi
echo -- Where is our compiler, and who are we compiling for?
CFLAGS="-pipe -I. -Wall"
CXXFLAGS=CFLAGS
CXXFLAGS=$CFLAGS
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
@@ -2323,6 +2323,7 @@ done
CXXFLAGS=$CFLAGS
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure

View File

@@ -16,6 +16,7 @@ dnl See also: remarks supplied in the debug checking area below
AC_INIT(init.asm)
echo -- Where is our compiler, and who are we compiling for?
CFLAGS="-pipe -I. -Wall"
CXXFLAGS=$CFLAGS
AC_PROG_CC
AC_PROG_CXX
AC_PATH_PROG(NASMPATH,nasm,[AC_MSG_ERROR(nasm 0.98 is required)])
@@ -179,6 +180,7 @@ dnl Checks for library functions.
AC_SUBST(ZSNESEXE)
AC_SUBST(GL_DRAW)
AC_SUBST(NFLAGS)
CXXFLAGS=$CFLAGS
AC_OUTPUT(Makefile)
echo
echo You may now run make to compile $ZSNESEXE