Changeset 7412
- Timestamp:
- Jun 7, 2006, 12:57:54 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.ac (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r7404 r7412 169 169 TMP_LIBS=${LIBS} 170 170 AC_CHECK_LIB(cfitsio,ffopen,[], 171 [AC_MSG_ERROR([CFITSIO library not found. Obtain it at http://heasarc.gsfc.nasa.gov/docs/software/fitsio or use --with-cfitsio to specify location.])] 171 [AC_MSG_ERROR([CFITSIO library not found. Obtain it at http://heasarc.gsfc.nasa.gov/docs/software/fitsio or use --with-cfitsio to specify location.])],[-lm] 172 172 ) 173 173 dnl Now check if CFITSIO supports fits_open_diskfile, i.e., is at least version 2.501 … … 175 175 [CFITSIO_DISKFILE=1], 176 176 [AC_MSG_WARN([The CFITSIO library version is rather old. Suggested version is 2.501 or greater.]) 177 CFITSIO_DISKFILE=0] 177 CFITSIO_DISKFILE=0],[-lm] 178 178 ) 179 179 LIBS=${TMP_LIBS} … … 207 207 LDFLAGS="${TMP_LDFLAGS} ${PSLIB_LIBS}" 208 208 AC_CHECK_HEADERS([fftw3.h],[], 209 [AC_MSG_ERROR([FFTW version 3 (-- with-float) headers not found. Obtain it at http://www.fftw.org/or use --with-fftw3 to specify location.])]209 [AC_MSG_ERROR([FFTW version 3 (--enable-float) headers not found. Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])] 210 210 ) 211 211 AC_CHECK_LIB(fftw3f,fftwf_plan_dft_2d,[], 212 [AC_MSG_ERROR([FFTW version 3 (-- with-float) library not found. Obtain it at http://www.fftw.org/or use --with-fftw3 to specify location.])],[-lm]212 [AC_MSG_ERROR([FFTW version 3 (--enable-float) library not found. Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])],[-lm] 213 213 ) 214 214 LIBS=${TMP_LIBS} … … 241 241 AC_SUBST([GSL_CFLAGS]) 242 242 243 dnl libjpeg ------------------------------------------------------------------- 244 245 AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],[AC_MSG_ERROR([jpeg library not found.])]) 243 dnl ------------------ libjpeg options --------------------- 244 AC_ARG_WITH(jpeg, 245 [AS_HELP_STRING(--with-jpeg=DIR,Specify location of libjpeg.)], 246 [JPEG_CFLAGS="-I$withval/include" 247 JPEG_LDFLAGS="-L$withval/lib"]) 248 AC_ARG_WITH(jpeg-include, 249 [AS_HELP_STRING(--with-jpeg-include=DIR,Specify libjpeg include directory.)], 250 [FFTW3_CFLAGS="-I$withval"]) 251 AC_ARG_WITH(fftw3-lib, 252 [AS_HELP_STRING(--with-jpeg-lib=DIR,Specify libjpeg library directory.)], 253 [JPEG_LDFLAGS="-L$withval"]) 254 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${JPEG_CFLAGS}" 255 PSLIB_LIBS="${PSLIB_LIBS=} $JPEG_LDFLAGS -ljpeg" 256 257 dnl Store off CFLAGS/LDFLAGS so that they can be restored after tests 258 TMP_CFLAGS=${CFLAGS} 259 TMP_LDFLAGS=${LDFLAGS} 260 261 CFLAGS="${TMP_CFLAGS} ${PSLIB_CFLAGS}" 262 LDFLAGS="${TMP_LDFLAGS} ${PSLIB_LIBS}" 263 AC_CHECK_HEADERS([jpeglib.h],[], 264 [AC_MSG_ERROR([libjpeg headers not found. Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])] 265 ) 266 AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[], 267 [AC_MSG_ERROR([libjpeg library not found. Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])] 268 ) 269 LIBS=${TMP_LIBS} 270 271 dnl restore the CFLAGS/LDFLAGS 272 CFLAGS=${TMP_CFLAGS} 273 LDFLAGS=${TMP_LDFLAGS} 274 275 AC_SUBST([JPEG_CFLAGS]) 246 276 247 277 dnl ------------------- XML2 options ---------------------
Note:
See TracChangeset
for help on using the changeset viewer.
