Opened 7 years ago

Closed 7 years ago

#4826 closed Bug (fixed)

If CXX is exported to value like /usr/bin/g++ the ./configure fails to set HAVE_CXX and fails later on compile due to missing libutp

Reported by: samuli Owned by: jordan
Priority: Normal Milestone: 2.51
Component: Transmission Version: 2.50
Severity: Normal Keywords:
Cc:

Description

$ export CXX=/usr/bin/g++ $ ./configure

checking for /usr/bin/g++... no checking µTP... no

$ make

In file included from net.c:46:0: tr-utp.h:32:24: fatal error: libutp/utp.h: No such file or directory compilation terminated. make[1]: * [net.o] Error 1

Downstream bug report is:

http://bugs.gentoo.org/407137

I'm unsure of correct patch for this, and just dropped the broken check:

--- configure.ac +++ configure.ac @@ -73,7 +73,6 @@

AC_PROG_CC AC_PROG_CXX

-AC_CHECK_PROG([HAVE_CXX],[$CXX],[yes],[no])

AC_C_INLINE if test "x$GCC" = "xyes" ; then

@@ -209,11 +208,7 @@

AC_MSG_CHECKING([µTP]) build_utp="no"

-if test "x$HAVE_CXX" = "xyes" ; then

  • have_utp="yes"

-else

  • have_utp="no"

-fi +have_utp="yes"

AC_ARG_ENABLE([utp],

AS_HELP_STRING([--enable-utp],[build µTP support]), [want_utp=${enableval}],

Change History (2)

comment:1 Changed 7 years ago by jordan

  • Milestone changed from None Set to 2.51
  • Owner set to jordan
  • Status changed from new to assigned

comment:2 Changed 7 years ago by jordan

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r13268.

Note: See TracTickets for help on using tickets.