IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3136


Ignore:
Timestamp:
Feb 4, 2005, 2:53:10 PM (21 years ago)
Author:
desonia
Message:

added some basic checks for the existance of dependent packages (headers, etc).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.in

    r3127 r3136  
    2020CFLAGS="${CFLAGS=} -Wall -std=c99 -D_GNU_SOURCE"
    2121FFLAGS="-fno-second-underscore -O -fno-f2c"
    22 LDFLAGS=-release 5
     22LDFLAGS="-release 5"
    2323
    2424dnl Setup the info for psLib for pkg-config
    2525PSLIB_CFLAGS="-I${includedir=}"
    26 PSLIB_LIBS="-L$libdir -lpslib"
     26PSLIB_LIBS="-L${libdir} -lpslib"
    2727
    2828dnl ----------------- CFITSIO options --------------------
     
    3939CFLAGS="${CFLAGS=} $CFITSIO_CFLAGS"
    4040PSLIB_LIBS="${PSLIB_LIBS=} $CFITSIO_LDFLAGS -lcfitsio"
     41AC_CHECK_HEADERS([fitsio.h],[],
     42   [AC_MSG_ERROR([CFITSIO is required.  Obtain it at  http://heasarc.gsfc.nasa.gov/docs/software/fitsio or use --with-cfitsio to specify location.])])
    4143
    4244dnl ------------------ FFTW3 options ---------------------
     
    5355CFLAGS="${CFLAGS=} $FFTW3_CFLAGS"
    5456PSLIB_LIBS="${PSLIB_LIBS=} $FFTW3_LDFLAGS -lfftw3f"
     57AC_CHECK_HEADERS([fftw3.h],[],
     58   [AC_MSG_ERROR([FFTW version 3 with float support is required.  Obtain it at http://www.fftw.org/or use --with-fftw3 to specify location.])])
    5559
    5660dnl -------------------- GSL options ---------------------
    57 AC_ARG_WITH(gsl,
    58 [AS_HELP_STRING([--with-gsl=DIR],[Specify location of GSL.])],
    59 [AC_CHECK_PROG(GSL_CONFIG, $withval/bin/gsl-config, $withval/bin/gsl-config)],
    60 [AC_CHECK_PROG(GSL_CONFIG, gsl-config, `which gsl-config`)])
    61 if test "$GSL_CONFIG" != ""
    62 then
    63     CFLAGS="${CFLAGS=} `${GSL_CONFIG} --cflags`"
    64     PSLIB_LIBS="${PSLIB_LIBS=} `${GSL_CONFIG} --libs`"
    65 fi
    66 
     61AC_ARG_WITH(gsl-config,
     62[AS_HELP_STRING([--with-gsl-config=FILE],[Specify location of gsl-config.])],
     63[GSL_CONFIG=$withval],
     64[GSL_CONFIG=`which gsl-config`])
     65AC_CHECK_FILE($GSL_CONFIG,[],
     66    [AC_MSG_ERROR([GSL is required.  Obtain it at http://www.gnu.org/software/gsl or use --with-gsl-config to specify location.])])
     67CFLAGS="${CFLAGS=} `${GSL_CONFIG} --cflags`"
     68PSLIB_LIBS="${PSLIB_LIBS=} `${GSL_CONFIG} --libs`"
     69   
    6770dnl ------------------- XML2 options ---------------------
    68 AC_ARG_WITH(xml,
    69 [AS_HELP_STRING([--with-xml=DIR],[Specify location of libxml2.])],
    70 [AC_CHECK_PROG(XML_CONFIG, $withval/bin/xml2-config, $withval/bin/xml2-config)],
    71 [AC_CHECK_PROG(XML_CONFIG, xml2-config, `which xml2-config`)])
    72 if test "$XML_CONFIG" != ""
    73 then
    74     CFLAGS="${CFLAGS=} `${XML_CONFIG} --cflags`"
    75     PSLIB_LIBS="${PSLIB_LIBS=} `${XML_CONFIG} --libs`"
    76 fi
     71AC_ARG_WITH(xml2-config,
     72[AS_HELP_STRING([--with-xml2-config=FILE],[Specify location of xml2-config.])],
     73[XML_CONFIG=$withval],
     74[XML_CONFIG=`which xml2-config`])
     75AC_CHECK_FILE($XML_CONFIG,[],
     76    [AC_MSG_ERROR([GNOME XML C parser is required.  Obtain it at http://www.xmlsoft.org or use --with-xml2-config to specify location.])])
     77CFLAGS="${CFLAGS=} `${XML_CONFIG} --cflags`"
     78PSLIB_LIBS="${PSLIB_LIBS=} `${XML_CONFIG} --libs`"
    7779
    7880dnl ------------------- SWIG options ---------------------
    7981AC_ARG_WITH(swig,
    8082[AS_HELP_STRING([--with-swig=FILE],[Specify location of SWIG executable.])],
    81 [AC_CHECK_PROG(SWIG, $withval, $withval)],
    82 [AC_CHECK_PROG(SWIG, swig, `which swig`)])
    83 if test "$SWIG" == ""
    84 then
    85      AC_MSG_ERROR([SWIG is required.  Obtain it at www.swig.org or use --with-swig to specify its install location.]);
    86 fi
     83[SWIG=$withval],
     84[SWIG=`which swig`])
     85AC_CHECK_FILE($SWIG,[],
     86     [AC_MSG_ERROR([SWIG is required.  Obtain it at www.swig.org or use --with-swig to specify its install location.])])
    8787AC_SUBST(SWIG,$SWIG)
    8888
     
    9494if test "$PERL" == ""
    9595then
    96      AC_MSG_ERROR([PERL is required.  Use --with-perl to specify its install location.]);
     96     AC_MSG_ERROR([PERL is required.  Use --with-perl to specify its install location.])
    9797fi
    9898AC_SUBST(PERL,$PERL)
Note: See TracChangeset for help on using the changeset viewer.