IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7440


Ignore:
Timestamp:
Jun 8, 2006, 11:42:19 AM (20 years ago)
Author:
rhl
Message:

No need to probe for libjpeg now that it's properly handled by pslib's configure.ac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/configure.ac

    r7438 r7440  
    3131)
    3232
    33 dnl ------------------ libjpeg options ---------------------
    34 
    35 AC_ARG_WITH(jpeg,
    36 [AS_HELP_STRING(--with-jpeg=DIR,Specify location of libjpeg.)],
    37 [JPEG_CFLAGS="-I$withval/include"
    38  JPEG_LDFLAGS="-L$withval/lib"])
    39 AC_ARG_WITH(jpeg-include,
    40 [AS_HELP_STRING(--with-jpeg-include=DIR,Specify libjpeg include directory.)],
    41 [JPEG_CFLAGS="-I$withval"])
    42 AC_ARG_WITH(fftw3-lib,
    43 [AS_HELP_STRING(--with-jpeg-lib=DIR,Specify libjpeg library directory.)],
    44 [JPEG_LDFLAGS="-L$withval"])
    45 
    46 dnl Store off CFLAGS/LDFLAGS so that they can be restored after tests
    47 TMP_CFLAGS=${CFLAGS}
    48 TMP_LDFLAGS=${LDFLAGS}
    49 
    50 CFLAGS="${TMP_CFLAGS} ${JPEG_CFLAGS}"
    51 LDFLAGS="${TMP_LDFLAGS} ${JPEG_LDFLAGS}"
    52 
    53 AC_CHECK_HEADERS([jpeglib.h],[TMP_CFLAGS="$CFLAGS" # keep the change],
    54   [AC_MSG_ERROR([libjpeg headers not found.  Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])]
    55 )
    56 
    57 AC_CHECK_LIB(jpeg,jpeg_CreateCompress,[TMP_LDFLAGS="$LDFLAGS" # keep the change],
    58   [AC_MSG_ERROR([libjpeg library not found.  Obtain libjpeg from http://www.ijg.org/ or use --with-jpeg to specify location.])]
    59 )
    60 
    61 dnl restore the CFLAGS/LDFLAGS in case we decide to make missing libjpeg only a warning
    62 CFLAGS=${TMP_CFLAGS}
    63 LDFLAGS=${TMP_LDFLAGS}
    64 
    6533dnl ------------------------------------------------------------
    6634
Note: See TracChangeset for help on using the changeset viewer.