From d7aa59cb41d9988e8c0dd4c5d88bfc5e41294212 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 10 Aug 2010 01:55:31 -0600 Subject: [PATCH] Fix more libtool system header includes --- bootstrap.sh | 17 +++++++++++------ src/adaptation/Makefile.am | 5 +++++ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index ad5b5c064a..a123ac56da 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -115,12 +115,17 @@ bootstrap_libtoolize() { chmod u-w $makefile # Libtool 2.2.6b we bundle is slightly broken with non-portable dependencies - sed 's//\"libltdl\/lt_system.h\"/g' $src/ltdl.h | - sed 's//\"libltdl\/lt_error.h\"/g' | - sed 's//\"libltdl\/lt_dlloader.h\"/g' > $src/ltdl.h.new; - chmod u+w $src/ltdl.h - mv $src/ltdl.h.new $src/ltdl.h - chmod u-w $src/ltdl.h + # HACK: Make it backward-compatible by linking the bundled headers. + for f in ltdl.h libltdl/lt_error.h libltdl/lt_system.h libltdl/lt_dlloader.h libltdl/slist.h; do + echo "Fixing $f ..." + sed 's//\"libltdl\/lt_system.h\"/g' $src/$f | + sed 's//\"libltdl\/lt__glibc.h\"/g' | + sed 's//\"libltdl\/lt_error.h\"/g' | + sed 's//\"libltdl\/lt_dlloader.h\"/g' > $src/$f.new; + chmod u+w $src/$f + mv $src/$f.new $src/$f + chmod u-w $src/$f + done fi } diff --git a/src/adaptation/Makefile.am b/src/adaptation/Makefile.am index 5ecd433aec..e8d2480699 100644 --- a/src/adaptation/Makefile.am +++ b/src/adaptation/Makefile.am @@ -12,6 +12,11 @@ if USE_ECAP SUBDIRS += ecap endif +if USE_LOADABLE_MODULES +## LTDL headers require their local include path... +INCLUDES += $(INCLTDL) +endif + noinst_LTLIBRARIES = libadaptation.la ## start with the code shared among all adaptation schemes -- 2.47.3