From: David Lindes
Subject: configure's g++ -E doesn't use CXXFLAGS... To: address@hidden Date: Tue, 9 Sep 2003 20:00:39 -0700 X-Sent: 13 hours, 31 minutes, 48 seconds ago Hi there, Perhaps this is already a known issue, but when I try to run ./configure out of the Sablotron version 1.0 source tree, using the following command line: ./configure LDFLAGS=-L/opt/third-party/lib CXXFLAGS=-I/opt/third-party/include CFLAGS=-I/opt/third-party/include (/opt/third-party is where a bunch of stuff is installed in the environment I tried this in...) I get this output: checking where to find xml parser... expat (new) checking expat.h usability... yes checking expat.h presence... no configure: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: expat.h: proceeding with the preprocessor's result configure: WARNING: ## ------------------------------------ ## configure: WARNING: ## Report this to address@hidden ## configure: WARNING: ## ------------------------------------ ## checking for expat.h... no configure: error: Couldn't find the expat header file(s) It says to report the bug, so this is it. FYI, here's some info from config.log: configure:9119: checking where to find xml parser configure:9123: checking for XML_Parse in -lexpat configure:9154: g++ -o conftest -I/opt/third-party/include -L/opt/third-party/lib conftest.cc -lexpat >&5 configure:9157: $? = 0 configure:9160: test -s conftest configure:9163: $? = 0 configure:9175: result: yes configure:9261: result: expat (new) configure:9284: checking expat.h usability configure:9297: g++ -c -I/opt/third-party/include conftest.cc >&5 configure:9300: $? = 0 configure:9303: test -s conftest.o configure:9306: $? = 0 configure:9316: result: yes configure:9320: checking expat.h presence configure:9331: g++ -E conftest.cc configure:9342: expat.h: No such file or directory configure:9337: $? = 1 configure: failed program was: | #line 9322 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define ENABLE_DOM 1 | /* end confdefs.h. */ | #include