IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 18, 2005, 2:31:42 PM (21 years ago)
Author:
desonia
Message:

changes relate to compiling on OS/X with GCC 4.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r4816 r4819  
    1212AC_SUBST(PSLIB_LT_VERSION,$PSLIB_LT_VERSION)
    1313
     14dnl Determine the location of GNU sed
     15AC_CHECK_PROGS([SED],[gsed sed])
     16if test "${SED}" == ""
     17then
     18  AC_MSG_ERROR([GNU SED is required.])
     19fi
     20AC_SUBST(SED,[${SED}])
     21
    1422SUBDIR="etc src test" dnl don't include 'swig', as it is optional
    1523
    1624SRCPATH="`pwd`/src"
    1725SRCDIRS="sys astro db fft fits imageops math mathtypes types xml"
    18 SRCINC=`echo "${SRCDIRS=}" | sed "s|\(\\w\+\)|-I\${SRCPATH=}/\1|g"`
    19 
    20 SRCSUBLIBS=`echo "${SRCDIRS=}" | sed "s|\(\\w\+\)|\1/libpslib\1.la|g"`
     26SRCINC=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|-I\${SRCPATH=}/\1|g"`
     27
     28SRCSUBLIBS=`echo "${SRCDIRS=}" | ${SED} "s|\(\\w\+\)|\1/libpslib\1.la|g"`
    2129AC_SUBST(SRCSUBLIBS,${SRCSUBLIBS=})
    2230CFLAGS="${CFLAGS=} -I${SRCPATH=} ${SRCINC=}"
     
    3745case $host in
    3846  *-apple-darwin*)
    39     CFLAGS="${CFLAGS=} -Wno-long-double"
     47dnl    CFLAGS="${CFLAGS=} -Wno-long-double"
     48dnl GCC 4.0 on OSX seems to hate that.
    4049    ;;
    4150esac
     
    193202PSLIB_LIBS="${PSLIB_LIBS=} `${XML_CONFIG} --libs`"
    194203PSLIB_CFLAGS="${PSLIB_CFLAGS=} `${XML_CONFIG} --cflags`"
     204
    195205
    196206dnl ------------------- SWIG options ---------------------
Note: See TracChangeset for help on using the changeset viewer.