summaryrefslogtreecommitdiff
path: root/configure1.in
diff options
context:
space:
mode:
authorBrian Fox <bfox@gnu.org>1993-09-24 07:07:22 +0000
committerBrian Fox <bfox@gnu.org>1993-09-24 07:07:22 +0000
commitd19841bf7243c09565b3bf32943c8d66482caf68 (patch)
tree2cd3fcbcebcfe5326e546397391c657c86dcd1e3 /configure1.in
parent4aac17e14506eef6a4dcfdca1ad53ea4a124184b (diff)
downloademacs-d19841bf7243c09565b3bf32943c8d66482caf68.tar.gz
Avoid forcing the search of /usr/include before fixed include files by
resetting C_SWITCH_X_SITE if it is "-I/usr/include".
Diffstat (limited to 'configure1.in')
-rwxr-xr-xconfigure1.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure1.in b/configure1.in
index 48883384d15..1f2818814d3 100755
--- a/configure1.in
+++ b/configure1.in
@@ -1065,6 +1065,11 @@ esac
[ -n "${x_libraries}" ] && LD_SWITCH_X_SITE="-L${x_libraries}"
[ -n "${x_includes}" ] && C_SWITCH_X_SITE="-I${x_includes}"
+# Avoid forcing the search of /usr/include before fixed include files.
+if [ "$C_SWITCH_X_SITE" = "-I/usr/include" ]; then
+ C_SWITCH_X_SITE=" "
+fi
+
case "${window_system}" in
x11 )
HAVE_X_WINDOWS=yes