Ticket #47882: patch-configure.diff
File patch-configure.diff, 3.9 KB (added by Schamschula (Marius Schamschula), 9 years ago) |
---|
-
configure
old new 177 177 exit 178 178 fi 179 179 180 # 11. CHECK TO SEE WHETHER THIS SYSTEM HAS GCC INSTALLED180 # 11. CHECK TO SEE WHETHER THIS SYSTEM HAS GCC/CLANG INSTALLED 181 181 182 echo $ECHO_N "Checking for gcc 183 whichout=` which gcc2> conf.stderr`182 echo $ECHO_N "Checking for gcc/clang ............. $ECHO_C" 183 whichout=`echo $CC 2> conf.stderr` 184 184 rm -f conf.* 185 185 if test "`echo $whichout | sed 's/\([a-z]*\).*/\1/'`" = "no" ; then whichout="" ; fi 186 186 if test "$whichout" != "" ; then 187 187 echo "YES" 188 188 else 189 echo "NO" ; echo "ERROR: Required program gcc could not be found." >&2 ; exit189 echo "NO" ; echo "ERROR: Required program cc could not be found." >&2 ; exit 190 190 fi 191 191 192 192 # 12. CHECK TO SEE WHETHER THIS SYSTEM HAS GNU READLINE HEADERS 193 193 194 194 echo $ECHO_N "Checking for libreadline-dev ............. $ECHO_C" 195 if printf '#include <stdio.h>\n#include <readline/readline.h>\nint main() { return 0; }\n' | gcc-x c - -o conf.out > conf.stdout 2> conf.stderr195 if printf '#include <stdio.h>\n#include <readline/readline.h>\nint main() { return 0; }\n' | $CC -x c - -o conf.out > conf.stdout 2> conf.stderr 196 196 then 197 197 rm -f conf.* 198 198 echo "YES" … … 208 208 # 13. CHECK TO SEE WHETHER THIS SYSTEM HAS CFITSIO HEADERS 209 209 210 210 echo $ECHO_N "Checking for libcfitsio-dev ............. $ECHO_C" 211 if printf '#include <fitsio.h>\nint main() { return 0; }\n' | gcc-x c - -o conf.out > conf.stdout 2> conf.stderr211 if printf '#include <fitsio.h>\nint main() { return 0; }\n' | $CC -x c - -o conf.out > conf.stdout 2> conf.stderr 212 212 then 213 213 rm -f conf.* 214 214 echo "YES" … … 224 224 # 14. CHECK TO SEE WHETHER THIS SYSTEM HAS GSL HEADERS 225 225 226 226 echo $ECHO_N "Checking for libgsl0-dev ............. $ECHO_C" 227 if printf '#include <gsl/gsl_version.h>\nint main() { return 0; }\n' | gcc`gsl-config --cflags` -x c - -o conf.out > conf.stdout 2> conf.stderr227 if printf '#include <gsl/gsl_version.h>\nint main() { return 0; }\n' | $CC `gsl-config --cflags` -x c - -o conf.out > conf.stdout 2> conf.stderr 228 228 then 229 229 rm -f conf.* 230 230 echo "YES" … … 250 250 # 15. CHECK TO SEE WHETHER THIS SYSTEM HAS FFTW HEADERS 251 251 252 252 echo $ECHO_N "Checking for libfftw3-dev ............. $ECHO_C" 253 if printf '#include <fftw3.h>\nint main() { return 0; }\n' | gcc-x c - -o conf.out > conf.stdout 2> conf.stderr253 if printf '#include <fftw3.h>\nint main() { return 0; }\n' | $CC -x c - -o conf.out > conf.stdout 2> conf.stderr 254 254 then 255 255 rm -f conf.* 256 256 echo "YES" … … 260 260 rm -f conf.* 261 261 echo "NO" 262 262 echo $ECHO_N "Checking for libfftw2-dev ............. $ECHO_C" 263 if printf '#include <fftw.h>\nint main() { return 0; }\n' | gcc-x c - -o conf.out > conf.stdout 2> conf.stderr263 if printf '#include <fftw.h>\nint main() { return 0; }\n' | $CC -x c - -o conf.out > conf.stdout 2> conf.stderr 264 264 then 265 265 rm -f conf.* 266 266 echo "YES" … … 290 290 # 17. CHECK TO SEE WHETHER THIS SYSTEM HAS LIBPNG HEADERS 291 291 292 292 echo $ECHO_N "Checking for libpng-dev ............. $ECHO_C" 293 if printf '#include <stdlib.h>\n#include <stdio.h>\n#include <png.h>\nint main() { return 0; }\n' | gcc-x c - -o conf.out > conf.stdout 2> conf.stderr293 if printf '#include <stdlib.h>\n#include <stdio.h>\n#include <png.h>\nint main() { return 0; }\n' | $CC -x c - -o conf.out > conf.stdout 2> conf.stderr 294 294 then 295 295 rm -f conf.* 296 296 echo "YES" … … 304 304 # 18. CHECK TO SEE WHETHER THIS SYSTEM HAS KPATHSEA HEADERS 305 305 306 306 echo $ECHO_N "Checking for libkpathsea-dev ............. $ECHO_C" 307 if printf '#include <stdlib.h>\n#include <stdio.h>\n#include <kpathsea/kpathsea.h>\nint main() { return 0; }\n' | gcc-x c - -o conf.out > conf.stdout 2> conf.stderr307 if printf '#include <stdlib.h>\n#include <stdio.h>\n#include <kpathsea/kpathsea.h>\nint main() { return 0; }\n' | $CC -x c - -o conf.out > conf.stdout 2> conf.stderr 308 308 then 309 309 rm -f conf.* 310 310 echo "YES"