diff options
| author | Rich Felker <dalias@aerifal.cx> | 2013-07-18 20:37:19 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2013-07-18 20:37:19 -0400 | 
| commit | df065781ee913681ba86a636a2516cb0162cab19 (patch) | |
| tree | f320cdbb899b5ba4df8b536e37f746f14da324c1 | |
| parent | 3e7f186ea18d7362e3e117f6e848b5514d8266d1 (diff) | |
| download | musl-df065781ee913681ba86a636a2516cb0162cab19.tar.gz | |
fix invalid C in new trycppif tests in configure script
an empty program is not valid and would be reasonable grounds for the
compiler to give an error, which would break these tests.
| -rwxr-xr-x | configure | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -56,7 +56,8 @@ while eval "fnmatch '*/' \"\${$1}\"" ; do eval "$1=\${$1%/}" ; done  trycppif () {  printf "checking preprocessor condition %s... " "$1" -echo "#if $1" > "$tmpc" +echo "typedef int x;" > "$tmpc" +echo "#if $1" >> "$tmpc"  echo "#error yes" >> "$tmpc"  echo "#endif" >> "$tmpc"  if $CC $2 -c -o /dev/null "$tmpc" >/dev/null 2>&1 ; then | 
