IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7425


Ignore:
Timestamp:
Jun 8, 2006, 3:52:10 AM (20 years ago)
Author:
rhl
Message:

Fixed --with-jpeg (no more refs to FFTW3\!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r7412 r7425  
    242242
    243243dnl ------------------ libjpeg options ---------------------
     244
    244245AC_ARG_WITH(jpeg,
    245246[AS_HELP_STRING(--with-jpeg=DIR,Specify location of libjpeg.)],
     
    248249AC_ARG_WITH(jpeg-include,
    249250[AS_HELP_STRING(--with-jpeg-include=DIR,Specify libjpeg include directory.)],
    250 [FFTW3_CFLAGS="-I$withval"])
     251[JPEG_CFLAGS="-I$withval"])
    251252AC_ARG_WITH(fftw3-lib,
    252253[AS_HELP_STRING(--with-jpeg-lib=DIR,Specify libjpeg library directory.)],
    253254[JPEG_LDFLAGS="-L$withval"])
    254 PSLIB_CFLAGS="${PSLIB_CFLAGS=} ${JPEG_CFLAGS}"
    255 PSLIB_LIBS="${PSLIB_LIBS=} $JPEG_LDFLAGS -ljpeg"
    256255
    257256dnl Store off CFLAGS/LDFLAGS so that they can be restored after tests
     
    259258TMP_LDFLAGS=${LDFLAGS}
    260259
    261 CFLAGS="${TMP_CFLAGS} ${PSLIB_CFLAGS}"
    262 LDFLAGS="${TMP_LDFLAGS} ${PSLIB_LIBS}"
    263 AC_CHECK_HEADERS([jpeglib.h],[],
     260CFLAGS="${TMP_CFLAGS} ${JPEG_CFLAGS}"
     261LDFLAGS="${TMP_LDFLAGS} ${JPEG_LDFLAGS}"
     262
     263AC_CHECK_HEADERS([jpeglib.h],[TMP_CFLAGS="$CFLAGS" # keep the change],
    264264  [AC_MSG_ERROR([libjpeg headers not found.  Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])]
    265265)
    266 AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[],
     266
     267AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[TMP_LDFLAGS="$LDFLAGS" # keep the change],
    267268  [AC_MSG_ERROR([libjpeg library not found.  Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])]
    268269)
    269 LIBS=${TMP_LIBS}
    270 
    271 dnl restore the CFLAGS/LDFLAGS
     270
     271dnl restore the CFLAGS/LDFLAGS in case we decide to make missing libjpeg only a warning
    272272CFLAGS=${TMP_CFLAGS}
    273273LDFLAGS=${TMP_LDFLAGS}
    274 
    275 AC_SUBST([JPEG_CFLAGS])
    276274
    277275dnl ------------------- XML2 options ---------------------
Note: See TracChangeset for help on using the changeset viewer.