Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm building the source from a package called OIS.

The package always installs in usr/local/include/OIS

I tried using the ./configure --includedir=/usr/local/include flag but it seems that only changes the prefix not the suffix (OIS).

I could just copy the files but I'm not sure if this would break anything in the header files.

Can someone guide me where I could possibly edit so that when I run make install it would install in /usr/local/include and not /usr/local/include/OIS?

The reason I want to do this is because all the header files have "file.h" when in fact they're in "OIS/file.h". I would have to change this in all the header files so I want to change the install directory to avoid doing that, and in the future in case there's an update to the source.

share|improve this question
1  
Or you could just pass -I to the compiler like you're supposed to... –  Ignacio Vazquez-Abrams Nov 22 '10 at 7:20
    
I'm sorry, I'm not familiar with the -I flag. Could you show me a link to the documentation so I can read more about it? –  Tek Nov 22 '10 at 7:29
    
    
Why don't you just install it from the repository? –  Dennis Williamson Nov 22 '10 at 7:32
1  
But normally the <package>-config script or <package>.pc file should direct the compiler as to what flags it should use. –  Ignacio Vazquez-Abrams Nov 22 '10 at 7:32
show 2 more comments

1 Answer

up vote 1 down vote accepted

Instead of specifying a different directory to install under as you ask, use the <package>-config script or <package>.pc pkgconfig data file to get the appropriate flags to pass to the compiler.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.