diff options
author | Christopher Faylor <me@cgf.cx> | 2000-12-03 05:16:33 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-12-03 05:16:33 +0000 |
commit | 6c057e82df0c5cc7291e7e81b679f7dcaccb131a (patch) | |
tree | 460c0645b2c3fcf4431025c94bf99b31e988f9f6 /winsup/cygwin/configure.in | |
parent | 6b6a8cefad468dc1dfc92da06ccb45363e346736 (diff) | |
download | newlib-6c057e82df0c5cc7291e7e81b679f7dcaccb131a.zip newlib-6c057e82df0c5cc7291e7e81b679f7dcaccb131a.tar.gz newlib-6c057e82df0c5cc7291e7e81b679f7dcaccb131a.tar.bz2 |
* Makefile.in: Use CXX to build the DLL.
* configure.in: Find correct c++ compiler.
* configure: Regenerate.
* path.cc (normalize_posix_path): Put correct drive at beginning of \foo style
paths.
(chdir): Don't send non-posix path to cygcwd.set.
Diffstat (limited to 'winsup/cygwin/configure.in')
-rw-r--r-- | winsup/cygwin/configure.in | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/winsup/cygwin/configure.in b/winsup/cygwin/configure.in index a04d27e..befd406 100644 --- a/winsup/cygwin/configure.in +++ b/winsup/cygwin/configure.in @@ -47,18 +47,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 case "$with_cross_host" in ""|*cygwin*) |