From: David J. MacKenzie Date: Mon, 14 Nov 1994 17:08:32 +0000 (+0000) Subject: Don't add -I, -L, -R options for cc if their X-Git-Tag: emacs-19.34~5945 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea199426bb18d98a91145555c8c222477dfaa8ba;p=emacs.git Don't add -I, -L, -R options for cc if their arguments would be empty. --- diff --git a/configure.in b/configure.in index 6b75ffa32b9..21063584eb1 100644 --- a/configure.in +++ b/configure.in @@ -897,9 +897,13 @@ else window_system=x11 fi -test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}" -test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" -test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}" +if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then + LD_SWITCH_X_SITE="-L${x_libraries}" + LD_SWITCH_X_SITE_AUX="-R${x_libraries}" +fi +if test "${x_includes}" != NONE && test -n "${x_includes}"; then + C_SWITCH_X_SITE="-I${x_includes}" +fi if test x"${x_includes}" = x; then bitmapdir=/usr/include/X11/bitmaps