I'm installing in a fresh location and include/event2 is still there. I don't speak configure so I may be doing something wrong. It's enough to change the Makefile.am, isn't it?
Here are my commands:
$ cd /tmp/openmpi-1.7.3 Â # fresh download
$Â cp ../ompi-trunk/opal/mca/event/libevent2021/libevent/include/Makefile.am ./opal/mca/event/libevent2021/libevent/include/
$ ./configure --prefix=/tmp/ompi_install --disable-dependency-tracking --disable-silent-rules --enable-ipv6 --enable-mpi-thread-multiple --without-devel-headers Â && make all
$ rm -rf /tmp/ompi_install/*
$ make install
$ ls /tmp/ompi_install/include/event2 Â # bunch of files in there.
I tried with and without `--without-devel-headers`, same result.Â Here's my patch:
diff --git a/opal/mca/event/libevent2021/libevent/include/Makefile.am b/opal/mca/event/libevent2021/libevent/include/Makefile.am
index 5153db2..0446a17 100644
@@ -38,10 +38,12 @@ EXTRA_SRC = $(EVENT2_EXPORT)
Â ## the source header filename to derive the installed header filename.
Â ## With nobase_ the installed path is $(includedir)/event2/ev*.h.
-nobase_include_HEADERS = $(EVENT2_EXPORT)
-nobase_nodist_include_HEADERS = ./event2/event-config.h
-noinst_HEADERS = $(EVENT2_EXPORT)
-nodist_noinst_HEADERS = ./event2/event-config.h
+# Open MPI: comment this out, because we don't want these header files
+# if INSTALL_LIBEVENT
+# nobase_include_HEADERS = $(EVENT2_EXPORT)
+# nobase_nodist_include_HEADERS = ./event2/event-config.h
+# noinst_HEADERS = $(EVENT2_EXPORT)
+# nodist_noinst_HEADERS = ./event2/event-config.h
On 5 November, 2013 at 11:05:37 AM, Jeff Squyres (jsquyres) (jsquyres_at_[hidden]) wrote:
> On Nov 5, 2013, at 7:44 AM, Dominique Orban
> > Thanks for patch. Unless I'm completely confused, it is still
> not resolving the issue. I downloaded Open-MPI 1.7.3 and replaced
> the Makefile.am with the one obtained from a fresh svn checkout
> (I checked that your changes are in there).
> > But `make install` still leaves me with an `event2` subdirectory
> of `include`. I used the `--without-devel-headers` configure
> flag to be sure.
> Are you installing over an old install, and "event2" is just left
> over from a previous installation? We won't remove old stuff
> from $prefix during "make install".
> Jeff Squyres
> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/