[pcre-dev] [Bug 1321] New: Make --enable-cpp without availeb…

Kezdőlap
Üzenet törlése
Szerző: Petr Pisar
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] [Bug 1321] New: Make --enable-cpp without availebl C++ compiler fatal
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1321
           Summary: Make --enable-cpp without availebl C++ compiler fatal
           Product: PCRE
           Version: N/A
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: ppisar@???
                CC: pcre-dev@???



I got a report by user he cannot compile PCRE. It turned out he was missing C++
compiler in his system.

Could you consider making ./configure --enable-cpp fatal if no C++ compiler is
available?

I can see current configure.ac already checks for C++ and contains tests like

test "x$enable_cpp" = "xyes" -a -n "$CXX"

I propose to append

  if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
    AC_MSG_ERROR([You need a C++ compiler for C++ support.])
  fi


Otherwise the make run fails with a little bit cryptic message:

  CXX      libpcrecpp_la-pcrecpp.lo
libtool: compile: unrecognized option `-DHAVE_CONFIG_H'
libtool: compile: Try `libtool --help' for more information.



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email