diff options
author | Christopher Faylor <me@cgf.cx> | 2000-12-03 05:40:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-12-03 05:40:45 +0000 |
commit | 8494f61e7caa353ce2073fa7e021a862aed7cf10 (patch) | |
tree | ba59a014b76c7a226939dd7504caa40f0c1ee930 /winsup/configure.in | |
parent | b0a187e20478d81b53dc9d40c35e6df65a94c7e0 (diff) | |
download | newlib-8494f61e7caa353ce2073fa7e021a862aed7cf10.zip newlib-8494f61e7caa353ce2073fa7e021a862aed7cf10.tar.gz newlib-8494f61e7caa353ce2073fa7e021a862aed7cf10.tar.bz2 |
* Makefile.common: Eliminate checks for libgcc.a and libstdc++.a. Use CXX for
g++ compiles.
* configure.in: Find correct c++ compiler.
* configure: Regenerate.
Diffstat (limited to 'winsup/configure.in')
-rwxr-xr-x | winsup/configure.in | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/winsup/configure.in b/winsup/configure.in index 0e30b5a..2ab6fb1 100755 --- a/winsup/configure.in +++ b/winsup/configure.in @@ -44,18 +44,27 @@ dnl normal versions of a library), tasteless as that idea is. else CFLAGS="-O2" fi - if test "$ac_test_CXXFLAGS" != set; then - CXXFLAGS='$(CFLAGS)' - fi else GCC= test "${CFLAGS+set}" = set || CFLAGS="-g" fi ]) +AC_DEFUN(LIB_AC_PROG_CXX, +[AC_BEFORE([$0], [AC_PROG_CPP])dnl +AC_CHECK_TOOL(CXX, g++, g++) +if test -z "$CXX"; then + AC_CHECK_PROG(CXX, c++, c++, , , ) + test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) +fi + +CXXFLAGS='$(CFLAGS)' +]) + AC_CANONICAL_SYSTEM LIB_AC_PROG_CC +LIB_AC_PROG_CXX SUBDIRS='w32api cygwin mingw' case "$with_cross_host" in |