Finding automatically g++ include directories for dependencies
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 1999 15:36:04 +0000 (15:36 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 30 Sep 1999 15:36:04 +0000 (15:36 +0000)
conf/MachineDef.Linux

index 73daf859a0bd517b78bd55f28397b3f56f7bf5ed..2e854b80a1cc6155b5dc118b689903830c569aff 100644 (file)
@@ -31,9 +31,11 @@ CLIBFOPT      =
 
 # Additional directories for dependencies
 
 
 # Additional directories for dependencies
 
-DEPINC        = -I/usr/local/include/g++ -I/usr/local/include \
-               -I/usr/local/i686-pc-linux-gnu/include \
-               -I/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.60/include
+DEPINC       = `rm -f /tmp/d.cxx; touch /tmp/d.cxx ; \
+                 g++ -v -c /tmp/d.cxx -o /dev/null 2>&1 | \
+                 awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \
+                 if(i==1) printf "%s",$$sub(" ","-I")" "; \
+                 if(substr($$0,1,10) == "\#include <") i=1}' ; rm /tmp/d.cxx`
                
 LD            = g++
 LDFLAGS       = $(OPT)
                
 LD            = g++
 LDFLAGS       = $(OPT)