# HG changeset patch # User David J. MacKenzie # Date 784832912 0 # Node ID 27b7a34664e3b96213c5606f50601285e84f87f2 # Parent ff043fec91539f0fa5beb54d8df0a51029861fac Don't add -I, -L, -R options for cc if their arguments would be empty. diff -r ff043fec9153 -r 27b7a34664e3 configure.in --- a/configure.in Mon Nov 14 08:03:41 1994 +0000 +++ b/configure.in Mon Nov 14 17:08:32 1994 +0000 @@ -897,9 +897,13 @@ 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