diff --git a/m4/ipopt.m4 b/m4/ipopt.m4
index 78f082b0cc063264b7648ffc1e669ca0d3957d45..d93c86ab5d8fed2f70797c82fdbff61204e38d4f 100644
--- a/m4/ipopt.m4
+++ b/m4/ipopt.m4
@@ -47,19 +47,6 @@ AS_IF([test x$with_ipopt != xno], [
     CPPFLAGS="$CPPFLAGS $IPOPT_CPPFLAGS"
     LIBS="$LIBS $IPOPT_LIBS"
 
-    AC_LANG_PUSH([C++])
-
-    # if header is found...
-    AS_IF([test x$HAVE_IPOPT = x1], [
-       AC_LINK_IFELSE([AC_LANG_PROGRAM(
-	    [#include "IpIpoptApplication.hpp"],
-	    [Ipopt::SmartPtr<Ipopt::IpoptApplication> app = new Ipopt::IpoptApplication();])],
-	[],
-	[HAVE_IPOPT="0"
-	AC_MSG_WARN(IPOpt does not seem to work!)])
-    ])
-
-    AC_LANG_POP([C++])
 ])
 
 with_ipopt="no"